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

Re: Crash when trying to edit sketch

Post by shiny_pepe »

It bugs me too, although I do wonder what my problem is...

Thanks for the very clear drawing.
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 »

Hi,

This is a model showing what I had in mind when I said you could advantageously break down your sketch into smaller steps. It assumes that your intent was to pad your original sketch to some defined thickness.

I was able to recreate this model from scratch in less than 10 minutes. I am sure that it took you much more time than that to create and constrain your sketch, with all the construction geometry to define the placement of the circles.

Don't hesitate to ask questions.

Hope this helps,

Norm
Attachments
wedge_design_alternate_normandc1.fcstd
(39.79 KiB) Downloaded 33 times
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

Thanks NormandC, I appreciate that.
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

I recreated the sketch using your excellent drawing, only to experience the exact same issue. :x

Does anyone know what might be causing this? Very infuriating.
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 »

It's impossible to say without more information that would be provided by a backtrace. See Debugging

What about other files? Is it specifically this sketch? Why did you not have a look at the file I posted? As I already wrote your method is inefficient.
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

Other files appear to work fine. However I suspect this issue will occur on newly created sketches as it has already happened twice.

I was creating the sketch in such an inefficient way in order to export it as a .dwg file, but I have taken a look at your (better) method, and will try to export a .dwg from that.

I may try to compile a debugging build of FreeCAD later.
Cyber3DK
Posts: 42
Joined: Sun Mar 05, 2017 5:40 pm

Re: Crash when trying to edit sketch

Post by Cyber3DK »

@ shiny_pepe » Sat Mar 18, 2017 11:17 am
What "editing" did you try to do?

I had no problem modifying, augmenting or pad/Export_to_(dot_STL) your Sketch.

I'm using:
+++
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
+++

Regards.
shiny_pepe
Posts: 9
Joined: Sat Mar 18, 2017 4:12 pm

Re: Crash when trying to edit sketch

Post by shiny_pepe »

I simply click 'edit sketch' and the program crashes.
stopkin
Posts: 3
Joined: Tue Jun 16, 2020 12:19 am

Re: Crash when trying to edit sketch

Post by stopkin »

shiny_pepe wrote: Sat Mar 18, 2017 4:17 pm When attempting to edit the only sketch in a file, FreeCAD crashes
Maybe a bit late... I got the same crash one day. Tested versions: 0.17 and 0.18, build from source. Open FreeCAD, create sketch, draw rect, set size constrain (NB!), close editor, edit again - crash... But no problem with 0.16 from ppa:freecad-legacy...

By chance, I opened python console before (NB!) editing... and no crash! Tested 2..3 times - ok. Then I tried to edit without console - no crash... I don't known, what is the real reason of crashes. I can't reproduce a crash today.

Btw, FreeCAD saves files inside ~/.config and ~/.local too, not only ~/.FreeCAD
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Crash when trying to edit sketch

Post by vocx »

stopkin wrote: Tue Jun 16, 2020 12:57 am Maybe a bit late...
Do not bump a thread that is 3 years old that describes a crash because the code has changed a lot in that time. In the last 3 years more than 8 thousand commits have been made to the source code, both minor and very major. It's basically impossible to tell if what you experience is the same problem that was described in the old thread.

It's better to start your own thread describing your own steps to reproduce the problem. Maybe you could link this thread for reference, but otherwise, you shouldn't comment on a several years old thread. You should try the 0.19 development version as well, maybe the problem is gone entirely.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply