crash switching work bench

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

sgrogan wrote: Fri Aug 10, 2018 7:00 pm
HarryvL wrote: Fri Aug 10, 2018 11:47 am Thanks @Jee-Bee. This may be related. The thread suddenly stopped on this topic.
Have you tried renaming the .cfg files in %appdata%/freecad?
Sometimes this just fixes things magically. The point of renaming the files is that FreeCAD creates new ones on restart, and if this fixes the problem, we can examine the old files and try to find the problem.

Do you get the same behavior with the pre-built binaries on the release page? (Thy use the same Libpack)

I am trying to reproduce without success,
What is your start wb?
What example FEM example file are you opening?
What workbench do you first switch to?
Hi @sgrogan, I am just back on line and ready to try a few things. But here a few easy answers:

FreeCAD opens up on >START. If I click on any link under "Example Projects" I get the crash. So with ALL EXAMPLES I get this behavior.

As an example, the first link in the list refers to c:/Users/hvlan/Documents/FC_Daily/Build/data/Mod/Start/StartPage/LoadSchenkel.py

Let me try the other suggestions next.
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

ITS MAGIC !!!!!

I removed the system and user files from %APPDATA%, started FreeCAD and no crash when loading any of the examples !!

HOWEVER,

Switching work benches a few times again gives a crash.

Anyway, this is progress, because the crash on loading examples is gone.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: crash switching work bench

Post by sgrogan »

HarryvL wrote: Fri Aug 10, 2018 7:26 pm ITS MAGIC !!!!!
Sometimes.

Can you switch to the test framework wb? and then run Self-test from the toolbar?
"fight the good fight"
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

and here are the trouble system and user files (extension modified to "xml" to allow upload):

system.xml
(924 Bytes) Downloaded 165 times
user.xml
(24.45 KiB) Downloaded 33 times
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

sgrogan wrote: Fri Aug 10, 2018 7:31 pm
HarryvL wrote: Fri Aug 10, 2018 7:26 pm ITS MAGIC !!!!!
Sometimes.

Can you switch to the test framework wb? and then run Self-test from the toolbar?
It crashes at "Run 61" but doesn't produce a crash file in %APPDATA%

WAIT ... that's with the release version. let me try again with the debug version
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

HarryvL wrote: Fri Aug 10, 2018 7:47 pm WAIT ... that's with the release version. let me try again with the debug version
crash_3.png
crash_3.png (505.28 KiB) Viewed 951 times


Again no crash file.

ALSO: I tried to open the example files with the debug version and again I gets a crash for all. Removing the user and system files doesn't help this time.

2 steps forward, one step back :shock:
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

sgrogan wrote: Fri Aug 10, 2018 7:00 pm Do you get the same behavior with the pre-built binaries on the release page? (Thy use the same Libpack)
do you mean your FreeCAD-0.18-dev_PY3_QT5-x64_dev_win.7z ??
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: crash switching work bench

Post by sgrogan »

HarryvL wrote: Fri Aug 10, 2018 8:00 pm do you mean your FreeCAD-0.18-dev_PY3_QT5-x64_dev_win.7z ??
No, https://github.com/FreeCAD/FreeCAD/rele ... dev_win.7z
Should be the same Libpack you are using. 0.18.14291 is the newest, building now.
"fight the good fight"
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

wmayer wrote: Fri Aug 10, 2018 7:08 am When you are in debug mode can you have a look at the Output panel of Visual Studio. You should get a list of all loaded dlls and I wonder if there might be loaded two different versions of a library.

E.g. netgen links against OCCT and it can happen that FreeCAD is linked against a different OCCT version. This would result in undefined behaviour when FreeCAD loads the FEM module which then pulls the binary incompatible OCCT version.
Werner, the only duplication I can spot is comctl32.dll and they indeed refer to different module versions and directories. Could this be the culprit?
DLLs_1.png
DLLs_1.png (264.89 KiB) Viewed 942 times
DLLs_2.png
DLLs_2.png (247.53 KiB) Viewed 942 times
DLLs_3.png
DLLs_3.png (252.28 KiB) Viewed 942 times
DLLs_4.png
DLLs_4.png (247.07 KiB) Viewed 942 times
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: crash switching work bench

Post by HarryvL »

... and some more for the eagle-eyed:

DLLs_5.png
DLLs_5.png (264.23 KiB) Viewed 941 times
DLLs_6.png
DLLs_6.png (260.14 KiB) Viewed 941 times
DLLs_7.png
DLLs_7.png (254.96 KiB) Viewed 941 times
DLLs_8.png
DLLs_8.png (258.33 KiB) Viewed 941 times
Post Reply