Crash on angular dimensions tool

A forum dedicated to the Draft, Arch and BIM workbenches development.
User avatar
rockn
Posts: 1586
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Wed Jul 09, 2014 9:57 am

Yeah !
There is now something wrong. The dimension tool create now two dimensions when I use Ctrl+Alt key to dimension a line or an angle. :

Code: Select all

Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
Indiquez le premier point :
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
A little like when we add dimension in Construction Mode :

Code: Select all

Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'Gui.ViewProviderPythonFeature' object has no attribute 'Transparency'
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'Gui.ViewProviderPythonFeature' object has no attribute 'Transparency'
There is no problem when you dimension two point (selection without CTRl or Alt key)
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11584
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Wed Jul 09, 2014 2:47 pm

There is something really weird, in no place I can find that wrong "Value" attrubute... Can you look exactly when that message appears? After you start the command, or after you select the first edge, etc...
User avatar
rockn
Posts: 1586
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Wed Jul 09, 2014 3:37 pm

On first run it appears on the p3 clic.
and after it appears on the clic to activate the tool (on clic on the button) ... :|
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11584
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Wed Jul 09, 2014 3:59 pm

This is really strange, I can reproduce none of those errors (the construction/transparency issue is indeed a bug, it'll be fixed on next commit). Can you give me the most simple step-by-step procedure to make the "...object has no attribute 'Value'" message appear?
User avatar
rockn
Posts: 1586
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Wed Jul 09, 2014 4:32 pm

Open FC,
Draft WB,
New doc,
Draw a line,
Draw another line,
Activate dimensions tool,
Ctrl+Alt and select the two lines.
Clic on point to place the dim line.
Message appears on clic.

File of this :
Angle.fcstd
(4.97 KiB) Downloaded 31 times

Code: Select all

Python 2.7.6 (default, Mar 22 2014, 23:03:41) 
[GCC 4.8.2] on linux2
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import WebGui
>>> from StartPage import StartPage
>>> WebGui.openBrowserHTML(StartPage.handle(),'file://' + App.getResourceDir() + 'Mod/Start/StartPage/','Start page')
>>> Gui.activateWorkbench("DraftWorkbench")
>>> App.newDocument("Sans nom")
>>> App.setActiveDocument("Sans_nom")
>>> App.ActiveDocument=App.getDocument("Sans_nom")
>>> Gui.ActiveDocument=Gui.getDocument("Sans_nom")
>>> import Draft
>>> points=[FreeCAD.Vector(-3.16855859756,-0.918302774429,0.0),FreeCAD.Vector(11.5426139832,-0.346098810434,0.0)]
>>> Draft.makeWire(points,closed=False,face=False,support=None)
>>> import Draft
>>> points=[FreeCAD.Vector(-3.00243473053,-2.3026664257,0.0),FreeCAD.Vector(8.94000911713,5.4313120842,0.0)]
>>> Draft.makeWire(points,closed=False,face=False,support=None)
>>> import Draft
>>> Draft.makeAngularDimension(center=FreeCAD.Vector(-0.717555742154,-0.822968868044,0.0),angles=[6.85787456396,0.0388762777623],p3=FreeCAD.Vector(8.94000911713,2.14575600624,0.0),normal=FreeCAD.Vector(0.0,0.0,1.0))
>>> import Draft
>>> Draft.makeAngularDimension(center=FreeCAD.Vector(-0.717555742154,-0.822968868044,0.0),angles=[6.85787456396,0.0388762777623],p3=FreeCAD.Vector(8.94000911713,2.14575600624,0.0),normal=FreeCAD.Vector(0.0,0.0,1.0))
>>>

Code: Select all

Draft workbench activated
Indiquez le premier point :
Indiquez le point suivant :
Indiquez le premier point :
Indiquez le point suivant :
Indiquez le premier point :
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'

Code: Select all

OS: Ubuntu 14.04 LTS
Word size: 64-bit
Version: 0.14.3692 (Git)
Branch: master
Hash: 1124a5751456ac6b8f9d6f1b470281ca67e572e2
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11584
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Wed Jul 09, 2014 4:52 pm

Still nothing wrong happening for me... This is crazy, I have the same libraries and same code revision as yours...
Does it happen too if you do it directly from python? Like, in a blank document:

Code: Select all

import Draft
Draft.makeAngularDimension(center=FreeCAD.Vector(-0.717555742154,-0.822968868044,0.0),angles=[6.85787456396,0.0388762777623],p3=FreeCAD.Vector(8.94000911713,2.14575600624,0.0),normal=FreeCAD.Vector(0.0,0.0,1.0))
User avatar
rockn
Posts: 1586
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Wed Jul 09, 2014 4:57 pm

Crash

Code: Select all

jo@jo-desktop-trusty:~$ cd Logiciels/FreeCAD/free-cad-code/build/bin/
jo@jo-desktop-trusty:~/Logiciels/FreeCAD/free-cad-code/build/bin$ gdb ./FreeCADGNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./FreeCAD...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/jo/Logiciels/FreeCAD/free-cad-code/build/bin/FreeCAD 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FreeCAD 0.14, Libs: 0.14R3692 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

[New Thread 0x7fffdd68f700 (LWP 7476)]
[New Thread 0x7fffdce8e700 (LWP 7477)]
[New Thread 0x7fffd4fdc700 (LWP 7478)]
[New Thread 0x7fffcbfff700 (LWP 7479)]
[New Thread 0x7fffcb7fe700 (LWP 7480)]
[Thread 0x7fffcbfff700 (LWP 7479) exited]
[New Thread 0x7fffcbfff700 (LWP 7482)]
[New Thread 0x7fffc2a25700 (LWP 7484)]
[New Thread 0x7fff797fc700 (LWP 7485)]
[New Thread 0x7fff78ca3700 (LWP 7486)]
[New Thread 0x7fff72f4e700 (LWP 7487)]
[New Thread 0x7fff7274d700 (LWP 7488)]
[Thread 0x7fffcb7fe700 (LWP 7480) exited]
FreeCAD: SoType.cpp:739: SbBool SoType::isDerivedFrom(SoType) const: Assertion `!this->isBad()' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff443cf79 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  0x00007ffff443cf79 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff4440388 in __GI_abort () at abort.c:89
#2  0x00007ffff4435e36 in __assert_fail_base (
    fmt=0x7ffff4587718 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x7ffff3fcfcbb "!this->isBad()", 
    file=file@entry=0x7ffff3fcfc9b "SoType.cpp", line=line@entry=739, 
    function=function@entry=0x7ffff3fd00e0 "SbBool SoType::isDerivedFrom(SoType) const") at assert.c:92
#3  0x00007ffff4435ee2 in __GI___assert_fail (
    assertion=0x7ffff3fcfcbb "!this->isBad()", 
    file=0x7ffff3fcfc9b "SoType.cpp", line=739, 
    function=0x7ffff3fd00e0 "SbBool SoType::isDerivedFrom(SoType) const")
    at assert.c:101
#4  0x00007ffff3cbd7c1 in SoType::isDerivedFrom(SoType) const ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#5  0x00007fff65c2f56d in ?? ()
   from /usr/lib/python2.7/dist-packages/pivy/_coin.so
#6  0x00007ffff62230d4 in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#7  0x00007ffff6223059 in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#8  0x00007ffff622517d in PyEval_EvalCodeEx ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#9  0x00007ffff6225310 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#10 0x00007ffff61ece23 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#11 0x00007ffff614030d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#12 0x00007ffff61ece23 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#13 0x00007ffff61ab837 in PyEval_CallObjectWithKeywords ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#14 0x00007ffff74501a3 in Py::Callable::apply(Py::Tuple const&) const ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#15 0x00007ffff76e0525 in Gui::ViewProviderPythonFeatureImp::attach(App::DocumentObject*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#16 0x00007ffff76e50ee in Gui::ViewProviderPythonFeatureT<Gui::ViewProviderDocumentObject>::onChanged(App::Property const*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#17 0x00007ffff6cbb8d5 in App::Property::hasSetValue() ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADApp.so
#18 0x00007ffff6cd1ffe in App::PropertyPythonObject::setPyObject(_object*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADApp.so
---Type <return> to continue, or q <return> to quit---
#19 0x00007ffff6cc1489 in App::PropertyContainerPy::setCustomAttributes(char const*, _object*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADApp.so
#20 0x00007ffff6cc054e in App::PropertyContainerPy::_setattr(char*, _object*)
    () from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADApp.so
#21 0x00007ffff76da079 in Gui::ViewProviderPy::_setattr(char*, _object*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#22 0x00007ffff76cabdf in Gui::ViewProviderDocumentObjectPy::_setattr(char*, _object*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#23 0x00007ffff76ccb2f in Gui::ViewProviderPythonFeaturePy::_setattr(char*, _object*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#24 0x00007ffff6773191 in Base::PyObjectBase::__setattr(_object*, char*, _object*) () from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADBase.so
#25 0x00007ffff61d2adf in PyObject_SetAttr ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#26 0x00007ffff62201da in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#27 0x00007ffff622517d in PyEval_EvalCodeEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#28 0x00007ffff6225310 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
---Type <return> to continue, or q <return> to quit---
#29 0x00007ffff61ece23 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#30 0x00007ffff614030d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#31 0x00007ffff61ece23 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#32 0x00007ffff6220816 in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#33 0x00007ffff622517d in PyEval_EvalCodeEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#34 0x00007ffff6225310 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#35 0x00007ffff61ece23 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#36 0x00007ffff614030d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#37 0x00007ffff61ece23 in PyObject_Call ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#38 0x00007ffff61ab837 in PyEval_CallObjectWithKeywords ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#39 0x00007ffff61c56e8 in PyInstance_New ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#40 0x00007ffff61ece23 in PyObject_Call ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#41 0x00007ffff6220816 in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#42 0x00007ffff622517d in PyEval_EvalCodeEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#43 0x00007ffff6222dd8 in PyEval_EvalFrameEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#44 0x00007ffff622517d in PyEval_EvalCodeEx ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#45 0x00007ffff6225462 in PyEval_EvalCode ()
   from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#46 0x00007ffff75d8890 in Gui::InteractiveInterpreter::runCode(PyCodeObject*) const () from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#47 0x00007ffff75d871e in Gui::InteractiveInterpreter::runSource(char const*) const () from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#48 0x00007ffff75d8aa8 in Gui::InteractiveInterpreter::push(char const*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#49 0x00007ffff75dab0a in Gui::PythonConsole::runSource(QString const&) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#50 0x00007ffff75da06e in Gui::PythonConsole::keyPressEvent(QKeyEvent*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#51 0x00007ffff56293d4 in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#52 0x00007ffff59cafce in QFrame::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#53 0x00007ffff5a4742b in QAbstractScrollArea::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#54 0x00007ffff5a64a25 in QPlainTextEdit::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#55 0x00007ffff55d9e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#56 0x00007ffff55e16f1 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#57 0x00007ffff7450c89 in Gui::GUIApplication::notify(QObject*, QEvent*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#58 0x00007ffff4e634dd in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#59 0x00007ffff5678ff7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#60 0x00007ffff5679399 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#61 0x00007ffff56533f7 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#62 0x00007ffff567bb02 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#63 0x00007fffee149e04 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#64 0x00007fffee14a048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#65 0x00007fffee14a0ec in g_main_context_iteration ()
---Type <return> to continue, or q <return> to quit---
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007ffff4e907a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#67 0x00007ffff567bbb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#68 0x00007ffff4e620af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#69 0x00007ffff4e623a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#70 0x00007ffff4e67b79 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#71 0x00007ffff744c366 in Gui::Application::runApplication() ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#72 0x00000000004084d2 in main ()
(gdb) 
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
ulrich1a
Posts: 1905
Joined: Sun Jul 07, 2013 12:08 pm

Re: Crash on angular dimensions tool

Postby ulrich1a » Wed Jul 09, 2014 9:47 pm

I am getting the crash also:
It seems to be an string issue.

Code: Select all

FreeCAD 0.14, Libs: 0.14R3699 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Draft workbench activated
Pick first point:
Pick next point:
Pick first point:
Pick next point:
Pick first point:
Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3465, in attach
    self.updateData(vobj.Object,None)
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3654, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3654, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Some identical Messages deleted


Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3654, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3654, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

Traceback (most recent call last):
  File "/home/ulrich/Sourcen/FreeCAD/Build64_20140608/Mod/Draft/Draft.py", line 3513, in updateData
    self.text.string = self.text3d.string = self.string
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 3795, in __setattr__
    field.setValue(value)
  File "/usr/lib/python2.7/dist-packages/pivy/coin.py", line 27371, in setValue
    return _coin.SoMFString_setValue(self, *args)
<type 'exceptions.NotImplementedError'>: Wrong number or type of arguments for overloaded function 'SoMFString_setValue'.
  Possible C/C++ prototypes are:
    SoMFString::setValue(SbString const &)
    SoMFString::setValue(char const *)
    SoMFString::setValue(SoMFString const *)

FreeCAD: SoAsciiText.cpp:870: void SoAsciiTextP::setUpGlyphs(SoState*, SoAsciiText*): Assertion `length' failed.
Abgebrochen
Ulrich

OS: Debian GNU/Linux testing (jessie)
Word size: 64-bit
Version: 0.14.3699 (Git)
Branch: master
Hash: e6893b2b7857989d19d8f80cd6585760970268e1
Python version: 2.7.7
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.1
User avatar
yorik
Site Admin
Posts: 11584
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Thu Jul 10, 2014 3:07 pm

These ar different errors... :cry:

@ulrich it seems your version of pivy doesn't take utf8 strings, although it claims to be coin4.
Can you try this in the python console?

Code: Select all

from pivy import coin
print coin.COIN_VERSION
@rockn can you try this? in Draft.py, around line 3453, you'll find this line:

Code: Select all

self.arc = coin.SoType.fromName("SoBrepEdgeSet").createInstance()
From your backtrace I have the impression that that line might cause the problem. Can you add this line before:

Code: Select all

print "before creating self.arc"
and after:

Code: Select all

print  "after creating self.arc"
And create an angular dim again, let's see if we can locate where this error happens...
User avatar
rockn
Posts: 1586
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Thu Jul 10, 2014 3:15 pm

Hi ! :)

Code: Select all

Draft workbench activated
Indiquez le premier point :
Indiquez le point suivant :
Indiquez le premier point :
Indiquez le point suivant :
Indiquez le premier point :
before creating self.arc
after creating self.arc
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
before creating self.arc
after creating self.arc
Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad