Sketcher in PartDesign breaks after Edit

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Sketcher in PartDesign breaks after Edit

Post by mk2 »

Hello,

i still have a problem with sketcher in PD. I have a fully constrained sketch and want to delete one line, i take the line and press the DEL button, after that the whole program finalizes with the fault

"*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 41"


Whats the problem there?

OS: Ubuntu 14.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5086 (Git)
Build type: None
Branch: master
Hash: 4f5534a87a7e2d224022ff98729a341bf57e7f9e
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17


Kind Regards

mk2
jakob
Posts: 139
Joined: Mon Jul 14, 2014 1:55 pm
Location: Sweden
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by jakob »

If you send me the freecad file I can try it on the windows version if you want.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Sketcher in PartDesign breaks after Edit

Post by bejant »

It would be better if you could upload it to the forum so more people can experiment with it. Don't know if you want to make the file public though...
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Re: Sketcher in PartDesign breaks after Edit

Post by mk2 »

No problem, but in the Moment it's not a special part, the fault and Crash is by every part which is sketched with PartDesign.

Look in an other Post from me at the end of the First Post: viewtopic.php?f=3&t=11420


Trank you
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by abdullah »

mk2 wrote:No problem, but in the Moment it's not a special part, the fault and Crash is by every part which is sketched with PartDesign.

Look in an other Post from me at the end of the First Post: viewtopic.php?f=3&t=11420


Trank you
Make sure you are using the latest FC version. I pushed a fix for sketcher related crashes yesterday.

It is not relevant whether the part is fancy or not. If you can post just something where it crashes and tell us what to do to make it crash, then I will be able to look into it and probably we will have another bug fix tomorrow or the day after.. :D

EDIT: I failed to see your version, you are on the latest version already... I should be able to reproduce the crash in mine:

OS: Ubuntu 14.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5086 (Git)
Build type: None
Branch: master
Hash: 4f5534a87a7e2d224022ff98729a341bf57e7f9e
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Re: Sketcher in PartDesign breaks after Edit

Post by mk2 »

I love this community! :-D

I updated Ubuntu since 6 hours ago, git 5086. In this version the problem is still there.

Can you follow what i mean? If not i will try to explain it more exact, my english is a little bit rusty. :-D
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by abdullah »

You do not need to upload anything. Following your instructions I have managed to reproduce the bug. I will fix it asap.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Sketcher in PartDesign breaks after Edit

Post by sgrogan »

mk2 wrote:I updated Ubuntu since 6 hours ago, git 5086. In this version the problem is still there.
Yes the problem is still half there. The code is updating daily but the "About FreeCAD" information is NOT updating.
I hope to have this all fixed by this weekend.
"fight the good fight"
abassign
Posts: 6
Joined: Thu Jun 18, 2015 2:18 pm

Re: Sketcher in PartDesign breaks after Edit

Post by abassign »

I have exactly the same problem since the last update, with the Windows version (performed by Wine) the problem does not occur. I tried to do the purge and reinstall FreeCAD, but the problem remained the same :( .

Code: Select all

OS: Ubuntu 14.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5086 (Git)
Build type: None
Branch: master
Hash: 4f5534a87a7e2d224022ff98729a341bf57e7f9e
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
The log:

Code: Select all

Msg: FreeCAD 0.16, Libs: 0.16R5086 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Log: Time = Thu Jun 18 16:45:39 2015
Log: AppDataSkipVendor = true
Log: AppHomePath = /usr/lib/freecad/
Log: AppIcon = freecad
Log: BinPath = /usr/lib/freecad/bin/
Log: BuildRepositoryURL = git://git.code.sf.net/p/free-cad/code master
Log: BuildRevision = 5086 (Git)
Log: BuildRevisionBranch = master
Log: BuildRevisionDate = 2015/06/09 19:55:35
Log: BuildRevisionHash = 4f5534a87a7e2d224022ff98729a341bf57e7f9e
Log: BuildVersionMajor = 0
Log: BuildVersionMinor = 16
Log: CopyrightInfo = © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##


Log: Debug = 0
Log: DocPath = /usr/lib/freecad/doc/
Log: ExeName = FreeCAD
Log: ExeVendor = FreeCAD
Log: ExeVersion = 0.16
Log: LoggingFile = 1
Log: LoggingFileName = /home/lab_risv01/.FreeCAD/FreeCAD.log
Log: MaintainerUrl = http://www.freecadweb.org/wiki/index.php?title=Main_Page
Log: PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Log: PYTHONPATH = 
Log: PythonSearchPath = :/usr/bin/../lib/python2.7/:/usr/bin/../lib/python2.7/plat-x86_64-linux-gnu:/usr/bin/../lib/python2.7/lib-tk:/usr/bin/../lib/python2.7/lib-old:/usr/bin/../lib/python2.7/lib-dynload
Log: RunMode = Gui
Log: SplashAlignment = Bottom|Left
Log: SplashInfoColor = #c8c8c8
Log: SplashScreen = freecadsplash
Log: SplashTextColor = #ffffff
Log: StartWorkbench = StartWorkbench
Log: SystemParameter = /home/lab_risv01/.FreeCAD/system.cfg
Log: UserAppData = /home/lab_risv01/.FreeCAD/
Log: UserHomePath = /home/lab_risv01
Log: UserParameter = /home/lab_risv01/.FreeCAD/user.cfg
Log: Verbose = 
Log: Create Application
Log: Run App init script
Log: Init: starting App::FreeCADInit.py
Log: Init:   Searching for modules...
Log: Init:      Initializing /usr/lib/freecad/Mod/Sketcher... done
Log: Init:      Initializing /usr/lib/freecad/Mod/ReverseEngineering... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Image... done
Log: Init:      Initializing /usr/lib/freecad/Mod/PartDesign... done
Log: Init:      Initializing /home/lab_risv01/.FreeCAD/Mod/FreeCAD_assembly2(Init.py not found)... ignore
Log: Init:      Initializing /usr/lib/freecad/Mod/Ship(Init.py not found)... ignore
Log: Init:      Initializing /usr/lib/freecad/Mod/Web... done
Log: Init:      Initializing /usr/lib/freecad/Mod/MeshPart... done
Log: Init:      Initializing /usr/lib/freecad/Mod/OpenSCAD... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Fem... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Spreadsheet... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Start... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Draft... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Test... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Import... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Complete... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Plot(Init.py not found)... ignore
Log: Init:      Initializing /usr/lib/freecad/Mod/Material... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Raytracing... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Mesh... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Part... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Arch... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Robot... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Points... done
Log: Init:      Initializing /home/lab_risv01/.FreeCAD/Mod/FreeCAD_drawing_dimensioning(Init.py not found)... ignore
Log: Init:      Initializing /usr/lib/freecad/Mod/Idf... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Inspection... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Drawing... done
Log: Using /usr/lib/freecad/Mod as module path!
Log: System path after init:
Log:    /usr/lib/freecad/bin
Log:    /usr/lib/freecad/Mod/Sketcher
Log:    /usr/lib/freecad/Mod/ReverseEngineering
Log:    /usr/lib/freecad/Mod/Image
Log:    /usr/lib/freecad/Mod/PartDesign
Log:    /home/lab_risv01/.FreeCAD/Mod/FreeCAD_assembly2
Log:    /usr/lib/freecad/Mod/Ship
Log:    /usr/lib/freecad/Mod/Web
Log:    /usr/lib/freecad/Mod/MeshPart
Log:    /usr/lib/freecad/Mod/OpenSCAD
Log:    /usr/lib/freecad/Mod/Fem
Log:    /usr/lib/freecad/Mod/Spreadsheet
Log:    /usr/lib/freecad/Mod/Start
Log:    /usr/lib/freecad/Mod/Draft
Log:    /usr/lib/freecad/Mod/Test
Log:    /usr/lib/freecad/Mod/Import
Log:    /usr/lib/freecad/Mod/Complete
Log:    /usr/lib/freecad/Mod/Plot
Log:    /usr/lib/freecad/Mod/Material
Log:    /usr/lib/freecad/Mod/Raytracing
Log:    /usr/lib/freecad/Mod/Mesh
Log:    /usr/lib/freecad/Mod/Part
Log:    /usr/lib/freecad/Mod/Arch
Log:    /usr/lib/freecad/Mod/Robot
Log:    /usr/lib/freecad/Mod/Points
Log:    /home/lab_risv01/.FreeCAD/Mod/FreeCAD_drawing_dimensioning
Log:    /usr/lib/freecad/Mod/Idf
Log:    /usr/lib/freecad/Mod/Inspection
Log:    /usr/lib/freecad/Mod/Drawing
Log:    /usr/local/sbin
Log:    /usr/local/bin
Log:    /usr/sbin
Log:    /usr/bin
Log:    /sbin
Log:    /bin
Log:    /usr/games
Log:    /usr/local/games
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: OpenGL version 3.0 or higher is present
Log: Bus::open: Can not get ibus-daemon's address. 
Log: IBusInputContext::createInputContext: no connection to ibus-daemon 
Log: Run Gui init script
Log: Init: Running FreeCADGuiInit.py start script...
Log: Init:   Searching modules...
Log: Init:      Initializing /usr/lib/freecad/Mod/Sketcher... done
Log: Init:      Initializing /usr/lib/freecad/Mod/ReverseEngineering... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Image... done
Log: Init:      Initializing /usr/lib/freecad/Mod/PartDesign... done
Log: Init:      Initializing /home/lab_risv01/.FreeCAD/Mod/FreeCAD_assembly2... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Ship... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Web... done
Log: Init:      Initializing /usr/lib/freecad/Mod/MeshPart... done
Log: Init:      Initializing /usr/lib/freecad/Mod/OpenSCAD... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Fem... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Spreadsheet... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Start... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Draft... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Test... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Import... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Complete... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Plot... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Material... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Raytracing... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Mesh... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Part... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Arch... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Robot... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Points... done
Log: Init:      Initializing /home/lab_risv01/.FreeCAD/Mod/FreeCAD_drawing_dimensioning... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Idf(InitGui.py not found)... ignore
Log: Init:      Initializing /usr/lib/freecad/Mod/Inspection... done
Log: Init:      Initializing /usr/lib/freecad/Mod/Drawing... done
Log: Init: Loading FreeCAD GUI
Log: Init: Running FreeCADGuiInit.py start script... done
Log: Init: Activating default workbench StartWorkbench
Log: Loading GUI of Web module... done
Log: Loading GUI of Start module... done
Log: Loading Start module... done
Log: Init: Showing main window
Log: Main window restored
Log: Show main window
Log: Toolbars restored
Log: Couldn't connect to spacenav daemon
Log: Init: Entering event loop
Log: Init: Processing command line files
Log: Module: Part
Log: Loading Part module... done
Log: Loading Sketcher module... done
Log: Loading GUI of Part module... done
Log: Loading GUI of Sketcher module... done
Log: Loading GUI of PartDesign module... done
Log: Loading PartDesign module... done
Log: Active view is Unnamed : 1[*] (at 0x3fa5370)
Log: Active document is Senza_nome (at 0x413a290)
Log: Sel : Clear selection
Log: Active view is Senza nome : 1[*] (at 0x3fa5370)
Log: Sel : Add Selection "Senza_nome.Sketch.Edge2(23.000000,-6.277217,0.007000)"
Log: Sel : Clear selection
Err: *** Abort *** an exception was raised, but no catch was found.Err: 
Err: 	... The exception is:Err: SIGSEGV 'segmentation violation' detected. Address 0Err: 
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by abdullah »

It is going to cost me a little more time (I am very tired today). In the meanwhile, you can check the checkbox "Auto Update" in "Solver Messages". This will make the sketch a little bit slower, but it does not crash in my tests.

Sorry for the inconvenience...
Post Reply