Freecad crash when switching workbench

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Johnny Geling
Posts: 56
Joined: Tue May 26, 2015 9:56 am
Location: Belgium

Freecad crash when switching workbench

Post by Johnny Geling »

Hello all,

Freecad version:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13509 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 0258808ccb6ba3bd5ea9312f79cd023f1a8671b7
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Dutch/Belgium (nl_BE)

Issue:
I have a file made during with regular updated 0.17 development versions of freedcad.
Since the 0.17 release freecad crashes when I switch workbench for instance from arch to techdraw. Or from techdraw to drawing dimensions. And also from drawing to drawing dimension. Other switching I have not tried.

I removed the local MOD and Macro files out of the way. Behavior is the same.

I tried the 0.18 development version and has the same behavior.

What can I do to help debuging this issue.

Johnny
chrisb
Veteran
Posts: 54281
Joined: Tue Mar 17, 2015 9:14 am

Re: Freecad crash when switching workbench

Post by chrisb »

Even if it doesn't help here: you should use version 0.17.13515.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Freecad crash when switching workbench

Post by easyw-fc »

Johnny Geling wrote: Mon Apr 23, 2018 8:24 pm Hello all,


Issue:
I have a file made during with regular updated 0.17 development versions of freedcad.
Since the 0.17 release freecad crashes when I switch workbench for instance from arch to techdraw. Or from techdraw to drawing dimensions. And also from drawing to drawing dimension. Other switching I have not tried.

I removed the local MOD and Macro files out of the way. Behavior is the same.

I tried the 0.18 development version and has the same behavior.

What can I do to help debuging this issue.

Johnny
this may be relevant
https://forum.freecadweb.org/viewtopic.php?f=4&t=28236
https://forum.freecadweb.org/viewtopic. ... 36#p228961

Please note that I think you wouldn't need to check "add to python path" option to solve this issue.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Freecad crash when switching workbench

Post by Jee-Bee »

I have also on my work PC some trouble with same behaviour. Only in my case switching to Part or Part Design.
But till know in my case it is possible that it is partly related that i run other CAD software at the same time with not a real big amount of memory... :(

Also Windows 7 and around same version number...
Johnny Geling
Posts: 56
Joined: Tue May 26, 2015 9:56 am
Location: Belgium

(Solved) Re: Freecad crash when switching workbench

Post by Johnny Geling »

Following the suggestions in the link from easyw-fc I'm able to solve the issue and re-create the issue.

I moved my user.cfg and system.cfg from the AppData\Roaming\FreeCAD folder.
With a new config files freecad doesn't crash. Even with the latest released 0.17 version.
Putting the old config files back and freecad crashes switching the workbench.

Is there an easy way to compare the config files and find the root cause?

Apparently I'm to quickly with my conclusion. After re-creating the issue with the old config files, freecad also crashes with new, fresh config files. :? :cry:

Johnny
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Freecad crash when switching workbench

Post by sgrogan »

Johnny Geling wrote: Tue Apr 24, 2018 7:07 pm Apparently I'm to quickly with my conclusion. After re-creating the issue with the old config files, freecad also crashes with new, fresh config files. :? :cry:
Can you start freecad from a cmd prompt

Code: Select all

freecad -l
There will be a log file created in %appdata%/freecad
"fight the good fight"
Post Reply