Crash on angular dimensions tool

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

Re: Crash on angular dimensions tool

Postby rockn » Mon Jul 07, 2014 2:55 pm

it crash at

Code: Select all

sg.addChild(t1)

Code: Select all

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 12700)]
[New Thread 0x7fffdce8e700 (LWP 12701)]
[New Thread 0x7fffd4fdc700 (LWP 12702)]
[New Thread 0x7fffcbfff700 (LWP 12703)]
[New Thread 0x7fffcb7fe700 (LWP 12704)]
[Thread 0x7fffcbfff700 (LWP 12703) exited]
[New Thread 0x7fffcbfff700 (LWP 12706)]
[New Thread 0x7fffc2a25700 (LWP 12708)]
[New Thread 0x7fff797fc700 (LWP 12709)]
[New Thread 0x7fff78bfb700 (LWP 12710)]
[New Thread 0x7fff72e20700 (LWP 12711)]
[New Thread 0x7fff7261f700 (LWP 12712)]
[Thread 0x7fffcb7fe700 (LWP 12704) exited]
[Thread 0x7fff7261f700 (LWP 12712) exited]
FreeCAD: SoAsciiText.cpp:870: void SoAsciiTextP::setUpGlyphs(SoState*, SoAsciiText*): Assertion `length' 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) 

Code: Select all

(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=0x7ffff3fec67f "length", 
    file=file@entry=0x7ffff3fec66f "SoAsciiText.cpp", line=line@entry=870, 
    function=function@entry=0x7ffff3fec8c0 "void SoAsciiTextP::setUpGlyphs(SoState*, SoAsciiText*)") at assert.c:92
#3  0x00007ffff4435ee2 in __GI___assert_fail (
    assertion=0x7ffff3fec67f "length", file=0x7ffff3fec66f "SoAsciiText.cpp", 
    line=870, 
    function=0x7ffff3fec8c0 "void SoAsciiTextP::setUpGlyphs(SoState*, SoAsciiText*)") at assert.c:101
#4  0x00007ffff3dbf6e7 in SoAsciiTextP::setUpGlyphs(SoState*, SoAsciiText*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#5  0x00007ffff3dbfeb6 in SoAsciiText::computeBBox(SoAction*, SbBox3f&, SbVec3f&) () from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#6  0x00007ffff3dfa11f in SoShape::getBBox(SoAction*, SbBox3f&, SbVec3f&) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#7  0x00007ffff3dfa2ee in SoShape::getBoundingBox(SoGetBoundingBoxAction*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#8  0x00007ffff3d8eaeb in SoNode::getBoundingBoxS(SoAction*, SoNode*) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#9  0x00007ffff3b54c04 in SoAction::traverse(SoNode*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#10 0x00007ffff3ca4294 in SoChildList::traverse(SoAction*, int, int) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#11 0x00007ffff3d847fa in SoGroup::getBoundingBox(SoGetBoundingBoxAction*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#12 0x00007ffff3da1a5e in SoSeparator::getBoundingBox(SoGetBoundingBoxAction*)
    () from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#13 0x00007ffff3d8eaeb in SoNode::getBoundingBoxS(SoAction*, SoNode*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#14 0x00007ffff3b54c04 in SoAction::traverse(SoNode*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#15 0x00007ffff3b557d2 in SoAction::apply(SoNode*) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
#16 0x00007ffff769d527 in Gui::View3DInventorViewer::renderScene() ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#17 0x00007ffff769d26c in Gui::View3DInventorViewer::actualRedraw() ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#18 0x00007ffff369aeb2 in SoQtRenderArea::redraw() ()
   from /usr/lib/x86_64-linux-gnu/libSoQt.so.20
#19 0x00007ffff3e1e1a6 in SoSensorManager::processDelayQueue(int) ()
   from /usr/lib/x86_64-linux-gnu/libCoin.so.80
---Type <return> to continue, or q <return> to quit---
#20 0x00007ffff3694c93 in SoQtP::slot_idleSensor() ()
   from /usr/lib/x86_64-linux-gnu/libSoQt.so.20
#21 0x00007ffff4e7787a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007ffff4e7ba31 in QObject::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ffff55d9e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007ffff55e04a0 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007ffff7450c89 in Gui::GUIApplication::notify(QObject*, QEvent*) ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#26 0x00007ffff4e634dd in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007ffff4e93323 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007ffff4e905f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007fffee149e04 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fffee14a048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fffee14a0ec in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007ffff4e907a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#33 0x00007ffff567bbb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007ffff4e620af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x00007ffff4e623a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#36 0x00007ffff4e67b79 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x00007ffff744c366 in Gui::Application::runApplication() ()
   from /home/jo/Logiciels/FreeCAD/free-cad-code/build/lib/libFreeCADGui.so
#38 0x00000000004084d2 in main ()
(gdb) 
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11400
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Mon Jul 07, 2014 3:19 pm

wow.. that's not supposed to cause a crash... looks like there is a problem with computing the boundbox. Maybe the problem is because we are adding an empty text? Can you try setting the string content before adding the text to the scenegraph?

Code: Select all

t1 = coin.SoAsciiText()
t1.string.setValue("text 1")
sg.addChild(t1)
User avatar
rockn
Posts: 1562
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Mon Jul 07, 2014 4:52 pm

In fact it is now not crash anymore with your comands.

Code: Select all

[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')
>>> App.newDocument("Sans nom")
>>> App.setActiveDocument("Sans_nom")
>>> App.ActiveDocument=App.getDocument("Sans_nom")
>>> Gui.ActiveDocument=Gui.getDocument("Sans_nom")
>>> from pivy import coin
>>> print coin.COIN_VERSION # to make sure pivy picks the same coin lib as freecad
4.0.0a
>>> sg = FreeCADGui.ActiveDocument.ActiveView.getSceneGraph()
>>> t1 = coin.SoAsciiText()
>>> t2 = coin.SoText2()
>>> sg.addChild(t1)
>>> sg.addChild(t2)
>>> t1.string.setValue("text 1")
>>> t2.string.setValue("text 2")
>>> # if it still doesn't crash, maybe try with some non-ascii characters
>>> t1.string.setValue("çé°€")
>>> 
:cry:
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11400
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Mon Jul 07, 2014 5:16 pm

Ok I'll try then adding a default value before adding the object, we'll see if it solves. But it's strange! the normal straight dimension should crash too, because it's constructed the same way...
User avatar
rockn
Posts: 1562
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Tue Jul 08, 2014 1:05 pm

yorik wrote:Ok I'll try then adding a default value before adding the object, we'll see if it solves. But it's strange! the normal straight dimension should crash too, because it's constructed the same way...
Can I do this at home to test ?
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11400
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Tue Jul 08, 2014 2:08 pm

yes, it's easy... basically open Draft.py, navigate around line 3428, you'll see two lines:

Code: Select all

self.text = coin.SoAsciiText()
self.text3d = coin.SoText2()
just after these two lines, add something like this:

Code: Select all

self.text.string = "default"
self.text3d.string = "default"
This would set the text contents of those 2 objects before they are added to the scenegraph...
User avatar
rockn
Posts: 1562
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Tue Jul 08, 2014 2:20 pm

Thanks.
It's not crash now but :

Code: Select all

Draft workbench activated
Indiquez le premier point :
Traceback (most recent call last):
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3469, in attach
    self.updateData(vobj.Object,None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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 *)

Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
Traceback (most recent call last):
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3469, in attach
    self.updateData(vobj.Object,None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3658, in onChanged
    self.updateData(vobj.Object, None)
  File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3517, 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 *)

Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'FeaturePython' object has no attribute 'Value'
In the gui
the Angle value = 0.0000°
The text is "default"
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11400
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Tue Jul 08, 2014 2:30 pm

Hm... now i think i have an idea... Can you try this? add this:

Code: Select all

.encode("utf8")
to the end of line 3501 and line 3503 so they look like this:

Code: Select all

self.string = DraftGui.displayExternal(a,obj.ViewObject.Decimals,'Angle',su).encode("utf8")
and

Code: Select all

self.string = DraftGui.displayExternal(a,getParam("dimPrecision",2),'Angle',su).encode("utf8")
This might solve the problem...
User avatar
rockn
Posts: 1562
Joined: Wed Sep 28, 2011 10:39 am
Location: Toulouse, France
Contact:

Re: Crash on angular dimensions tool

Postby rockn » Tue Jul 08, 2014 9:33 pm

Ok, now there is just this :

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'
Formations et tutoriels FreeCAD en Français, soutenez moi : https://www.tipeee.com/formations-freecad
User avatar
yorik
Site Admin
Posts: 11400
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Crash on angular dimensions tool

Postby yorik » Tue Jul 08, 2014 10:57 pm

Great! We're almost there. Thanks for the help rockn. Now we just need to locate that wrong Value...