Crash when trying to edit sketch

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!
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Crash when trying to edit sketch

Post by shiny_pepe »

When attempting to edit the only sketch in a file, FreeCAD crashes, the file is attached.

Starting from the terminal yields: "Segmentation fault (core dumped)" at the time of the crash.

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Attachments
wedge_design.fcstd
(5.48 KiB) Downloaded 55 times
User avatar
Willem
Veteran
Posts: 1852
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Crash when trying to edit sketch

Post by Willem »

On my PC the file behaves normal, it is fully constrained and can be padded, I could not find a mistake in the sketch. Do you have the same problems with other files?

My system is the same as yours:
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

I am glad that there are no problems with my sketch, I didn't think there was.

I don't appear to have problems with other files, do you have any specifically that I could check?

So far my troubleshooting has consisted of reinstalling FreeCAD, which had no effect, is there anything else that you would suggest?
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when trying to edit sketch

Post by NormandC »

shiny_pepe wrote:So far my troubleshooting has consisted of reinstalling FreeCAD
This is a typical Windows user reflex. It is almost never useful on Linux.

Sometimes the FreeCAD config files get corrupted. They are in the home folder (~/.FreeCAD) so they don't get deleted by uninstalling FreeCAD. Rename or delete the user.cfg and system.cfg files then restart FreeCAD. It will revert to default settings.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when trying to edit sketch

Post by NormandC »

I can't help but mention that there would be a more efficient way to build your model.

Your sketch is rather complex and could be broken down into successive operations. For one thing your profile appears symmetric, in such cases it is almost always best to centre it to the sketch origin. This is useful for later operations.

You could also only model half of the sketch, pad it then mirror the solid using Part Mirror, and finally fuse the original and the mirror with Part Union.

The many circles in the sketch could be done in a later step. Just sketch a single circle on top of the solid, pocket it then repeat it with a PartDesign MultiTransform feature containing a LinearPattern along the horizontal axis and a LinearPattern along the vertical axis.

The end result would be done in more steps, but all of them would be accomplished much more quickly than with a single sketch.
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

Thanks for the advice NormandC.

Removing the config files did not solve the issue unfortunately. Would you be so kind as to send a screenshot of the sketch? Then I would have the dimensions in order to recreate it.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when trying to edit sketch

Post by NormandC »

I re-saved the file instead. Please try and see if you can edit the sketch.

EDIT: I have the same set up as you and Willem BTW.

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Attachments
wedge_design_resaved_normandc1.fcstd
(11.38 KiB) Downloaded 34 times
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

The same issue is present using your file.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when trying to edit sketch

Post by NormandC »

This is puzzling. I had used the Macro ForceRecompute before saving, just in case.

I made a screenshot, but many dimensional constraints are blocked by constraint icons. Will move them out of the way and post another screen shot shortly.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash when trying to edit sketch

Post by NormandC »

Sorry for the delay, I wasn't happy with the Sketch screenshot so I opened the file in 0.17-dev (from the freecad-daily PPA) and used the new TechDraw workbench to create a view with dimensions. 4-digit precision might be overkill though. :D
FC_DoubleHP_wedge_design_02.png
FC_DoubleHP_wedge_design_02.png (55.68 KiB) Viewed 1825 times
FC_DoubleHP_wedge_design_01.png
FC_DoubleHP_wedge_design_01.png (83.02 KiB) Viewed 1825 times
It still bugs me that we can't salvage that sketch for you to open directly. :?
Post Reply