View Issue Details

IDProjectCategoryView StatusLast Update
0004100DraftBugpublic2020-06-19 18:18
Reportercynabr Assigned Tocarlopav  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformx86-64OSlinux mintOS Version18.1serena
Product Version0.18 
Summary0004100: problem with bezier curves. Building curves by points
Descriptionbezier curves and b-spline errors when it build by points introduced earlier (whis tool point).
the problem is solved only by restarting freecad

кривые безье и b-spline выдают ошибку. Для этого надо их построить по точкам ранее созданым с помощью инструмента ТОЧКА. (russian lang).
  • Steps To Reproduce1 open workbench "draft"
    2 create some points
    3 create bezier curve by this points just create.
    4 curve with error
    
    <type 'exceptions.RuntimeError'>
    Traceback (most recent call last):
      File "/usr/share/freecad/Mod/Draft/DraftTools.py", line 915, in action
        self.ui.redraw()
      File "/usr/share/freecad/Mod/Draft/DraftGui.py", line 904, in redraw
        self.checkLocal()
      File "/usr/share/freecad/Mod/Draft/DraftGui.py", line 1261, in checkLocal
        self.labelx.setText(translate("draft", "Global X"))
    RuntimeError: Internal C++ object (PySide.QtGui.QLabel) already deleted.
    <type 'exceptions.RuntimeError'>
    Traceback (most recent call last):
      File "/usr/share/freecad/Mod/Draft/DraftTools.py", line 915, in action
        self.ui.redraw()
      File "/usr/share/freecad/Mod/Draft/DraftGui.py", line 904, in redraw
        self.checkLocal()
      File "/usr/share/freecad/Mod/Draft/DraftGui.py", line 1261, in checkLocal
        self.labelx.setText(translate("draft", "Global X"))
    RuntimeError: Internal C++ object (PySide.QtGui.QLabel) already deleted

    5. if it didn’t work you need repeat steps 1-2-3.
    6. second time the problem is always.
    Additional InformationEnglish thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=38968
    Russian thread: https://forum.freecadweb.org/viewtopic.php?f=29&t=38955
    Tagsbezier curve
    FreeCAD Information

    Activities

    cynabr

    2019-08-27 16:47

    reporter   ~0013469

    Last edited: 2019-08-30 11:13

    link to problem

    openBrain

    2019-08-27 18:44

    developer   ~0013471

    @cynabr : thanks for reporting. However, according guidelines (big yellow banner), could you please first open a forum topic so the community can help validate and identify ? Think about at least telling what precise FC version you're using. Thanks

    cynabr

    2019-08-28 16:51

    reporter   ~0013475

    >> please first open a forum topic so the community can help validate and identify

    I'll try.

    FC version
    OS: Linux Mint 18.1 Serena
    Word size of OS: 64-bit
    Word size of FreeCAD: 64-bit
    Version: 0.18.1.
    Build type: Release
    Python version: 2.7.12
    Qt version: 4.8.7
    Coin version: 4.0.0a
    OCC version: 7.3.0
    Locale: Russian/RussianFederation (ru_RU)

    Today I checked on Windows 7-64bit. Another computer ...
    same problem. The steps are the same. The FС version is the same.
    messages are the same...

    openBrain

    2019-08-28 17:27

    developer   ~0013476

    @cynabr : your version is outdated (as well as the Python & Qt libs it uses). Could you please try to reproduce with latest 0.19 dev version ?

    cynabr

    2019-08-28 17:42

    reporter   ~0013477

    I'll try.
    it version not in the repository.

    carlopav

    2019-08-28 19:32

    developer   ~0013479

    You can find it here: https://github.com/FreeCAD/FreeCAD/releases/tag/0.19_pre
    However better to discuss it first in the forum: there is a section dedicated to arch and Draft.

    cynabr

    2019-08-28 19:53

    reporter   ~0013480

    already found, compile...
    however i don't have
    ibpyside2-dev
    libshiboken2-dev
    pyside2-tools
    python3-pivy
    python3-pyside2.qtcore
    python3-pyside2.qtgui
    python3-pyside2.qtsvg
    python3-pyside2.qtwidgets
    python3-pyside2uic

    On my operating system
    so Python 2 and Qt4
    This is not recommended for newer installations as both Python 2 and Qt4 are obsolete.
    https://www.freecadweb.org/wiki/CompileOnUnix

    cynabr

    2019-08-29 02:53

    reporter   ~0013481

    OS: Linux Mint 18.1 Serena (KDE//usr/share/xsessions/plasma)
    Word size of OS: 64-bit
    Word size of FreeCAD: 64-bit
    Version: 0.19.Unknown
    Build type: Unknown
    Python version: 2.7.12
    Qt version: 4.8.7
    Coin version: 4.0.0a
    OCC version: 6.8.0.oce-0.17
    Locale: Russian/RussianFederation (ru_RU)

    all the same

    <type 'exceptions.RuntimeError'>
    Traceback (most recent call last):
      File "/home/cynabr/opt/freecad-build/Mod/Draft/DraftTools.py", line 925, in action
        self.ui.redraw()
      File "/home/cynabr/opt/freecad-build/Mod/Draft/DraftGui.py", line 979, in redraw
        self.checkLocal()
      File "/home/cynabr/opt/freecad-build/Mod/Draft/DraftGui.py", line 1366, in checkLocal
        self.labelx.setText(translate("draft", "Global X"))
    RuntimeError: Internal C++ object (PySide.QtGui.QLabel) already deleted.

    need new libraries?
    need to update the linux distribution?
    need new libraries?
    need to update the linux distribution?
    I will try later and compile again ...
    freecad19pre.png (116,041 bytes)   
    freecad19pre.png (116,041 bytes)   

    openBrain

    2019-08-29 14:43

    developer   ~0013482

    @cynabr : compiling isn't really needed. You can use a Py3Qt5 AppImage that will embed every needed libs. ;)
    But please open a topic on the forum so you can get more advice.

    cynabr

    2019-08-30 10:45

    reporter   ~0013487

    But please open a topic on the forum so you can get more advice
    I do it. thanks

    Kunda1

    2019-08-30 11:13

    administrator   ~0013489

    Last edited: 2019-08-30 11:14

    @cynabr please also post the forum thread to this ticket so we can track the discussion, thanks.

    Edit: also the link in 0004100:0013469 to demonstrate the issue is broken

    cynabr

    2019-08-30 19:10

    reporter   ~0013492

    Last edited: 2019-09-01 16:09

    https://forum.freecadweb.org/viewtopic.php?f=29&t=38955link Lang ru

    Mod Edit:
    Link to Russian Language Forum Thread

    cynabr

    2019-08-31 04:24

    reporter   ~0013494

    Last edited: 2019-09-01 16:10

    Forum thread

    Mod Edit: Fixed broken BBCode

    cynabr

    2019-08-31 18:25

    reporter   ~0013500

    I install FC ver 19pre
     OS: Linux Mint 18.1 (KDE//usr/share/xsessions/plasma)
    Word size of OS: 64-bit
    Word size of FreeCAD: 64-bit
    Version: 0.19.17935 (Git) AppImage
    Build type: Release
    Branch: master
    Hash: bdc229f51e959caedf24459c1b9c9de7f6567298
    Python version: 3.7.3
    Qt version: 5.12.1
    Coin version: 4.0.0a
    OCC version: 7.3.0
    Locale: Russian/Russia (ru_RU) 
    all the same
     <class 'RuntimeError'>
    Traceback (most recent call last):
      File "/tmp/.mount_FreeCA2mes8U/usr/Mod/Draft/DraftTools.py", line 925, in action
        self.ui.redraw()
      File "/tmp/.mount_FreeCA2mes8U/usr/Mod/Draft/DraftGui.py", line 979, in redraw
        self.checkLocal()
      File "/tmp/.mount_FreeCA2mes8U/usr/Mod/Draft/DraftGui.py", line 1366, in checkLocal
        self.labelx.setText(translate("draft", "Global X"))
    RuntimeError: Internal C++ object (PySide2.QtWidgets.QLabel) already deleted.
     

    Kunda1

    2019-09-01 16:15

    administrator   ~0013507

    Last edited: 2019-09-01 16:16

    @DeepSOIC says he can reproduce this but not reliably.

    source: https://forum.freecadweb.org/viewtopic.php?f=3&t=38968#p330651

    carlopav

    2020-06-14 20:11

    developer   ~0014542

    I think there is a problem with Draft Points command related to the callback mechanism...

    carlopav

    2020-06-14 20:54

    developer   ~0014546

    The problem with Draft Points causing the mess with the following command has been fixed with https://github.com/FreeCAD/FreeCAD/pull/3617
    Perhaps this is the solution to this issue.

    carlopav

    2020-06-19 18:18

    developer   ~0014571

    Fix committed to master branch.

    Related Changesets

    FreeCAD: master 59ed7087

    2020-06-14 20:51:50

    carlopav


    Committer: yorik Details Diff
    Draft: fixes 0004100 Problems with Points command callbacks

    The point callback was not properly removed on continue mode.
    Affected Issues
    0004100
    mod - src/Mod/Draft/draftguitools/gui_points.py Diff File

    Issue History

    Date Modified Username Field Change
    2019-08-27 16:43 cynabr New Issue
    2019-08-27 16:47 cynabr Note Added: 0013469
    2019-08-27 16:50 cynabr Note Edited: 0013469
    2019-08-27 18:44 openBrain Status new => feedback
    2019-08-27 18:44 openBrain Note Added: 0013471
    2019-08-27 18:45 openBrain Tag Attached: #post-to-forum
    2019-08-28 16:51 cynabr Note Added: 0013475
    2019-08-28 16:51 cynabr Status feedback => new
    2019-08-28 17:27 openBrain Note Added: 0013476
    2019-08-28 17:42 cynabr Note Added: 0013477
    2019-08-28 19:32 carlopav Note Added: 0013479
    2019-08-28 19:53 cynabr Note Added: 0013480
    2019-08-29 02:53 cynabr File Added: freecad19pre.png
    2019-08-29 02:53 cynabr Note Added: 0013481
    2019-08-29 14:43 openBrain Note Added: 0013482
    2019-08-30 10:45 cynabr Note Added: 0013487
    2019-08-30 11:13 Kunda1 Note Added: 0013489
    2019-08-30 11:13 Kunda1 Note Edited: 0013469
    2019-08-30 11:14 Kunda1 Note Edited: 0013489
    2019-08-30 19:10 cynabr Note Added: 0013492
    2019-08-30 19:53 DeepSOIC Description Updated
    2019-08-30 19:53 DeepSOIC Additional Information Updated
    2019-08-31 04:24 cynabr Note Added: 0013494
    2019-08-31 18:25 cynabr Note Added: 0013500
    2019-09-01 16:08 Kunda1 Note Edited: 0013492
    2019-09-01 16:09 Kunda1 Note Edited: 0013492
    2019-09-01 16:09 Kunda1 Note Edited: 0013492
    2019-09-01 16:10 Kunda1 Note Edited: 0013494
    2019-09-01 16:11 Kunda1 Tag Detached: #post-to-forum
    2019-09-01 16:15 Kunda1 Note Added: 0013507
    2019-09-01 16:16 Kunda1 Note Edited: 0013507
    2019-09-01 19:12 Kunda1 Tag Attached: bezier curve
    2020-06-14 20:11 carlopav Note Added: 0014542
    2020-06-14 20:54 carlopav Note Added: 0014546
    2020-06-19 18:18 yorik Changeset attached => FreeCAD master 59ed7087
    2020-06-19 18:18 carlopav Note Added: 0014571
    2020-06-19 18:18 carlopav Assigned To => carlopav
    2020-06-19 18:18 carlopav Status new => closed
    2020-06-19 18:18 carlopav Resolution open => fixed