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

Re: Sketcher in PartDesign breaks after Edit

Post by mk2 »

Ok, it is a solution, and we can now work like 2 days ago. :) Abdullah your work is great, improvements in sketcher are needed, so those problems are normal in a programming process. No problem for me ;)

Thank you
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by JMG »

Hello. I think that I'm facing the same bug:

I open freecad, create a new sketch, draw 3 lines and then try to remove one of them, result:

Code: Select all

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

My Sheet Metal Loaded

(freecad:4279): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed

(freecad:4279): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGSEGV 'segmentation violation' detected. Address ffffffff
File
freecadCrash.fcstd
(2.41 KiB) Downloaded 18 times
Installation info:

Code: Select all

OS: Linux Mint 17.1 Rebecca
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
I hope this helps to solve the problem :)

Javier.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by abdullah »

I know how to solve this problem (the crash upon deleting a line). And I also fixed another one (a fully constrained sketch was not shown green when entering into edit mode).

The thing is that there are more issues (fillet crashes even with Auto-Update checked, and trim does not crash but does not fully work either, the last constraint is not enforced). All of this appeared as a consequence of a last minute insertion that solved a minor issue but apparently inadvertently generated more. So, yes, I am very much to blame.

Except for the fillet issue, I think that with "Auto-Update" checked there are no crashes. Please work with Auto-Update checked. I am going to rest (I am now 20 hours awake) and tomorrow I will take my time to study all the the implications of some decisions I made and find an appropriate (hopefully definitive) solution.

My apologies.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Sketcher in PartDesign breaks after Edit

Post by triplus »

Take your time @abdullah. After all this is about development release and not production release.

And the workaround is simple (one check box enabled in sketcher Task sidebar).
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Sketcher in PartDesign breaks after Edit

Post by abdullah »

After sleeping one sees life different :D

I have submitted a pull request with several fixes:
https://github.com/abdullahtahiriyo/Fre ... constraint_

If you are in the testing mood, you may want to compile it and see if you make it crash. If you do, please report it, I will try to fix it for the next PPA.

Hopefully you will be able to work without recomputes again ;)
Post Reply