[invalid] crash on almost every PartDesign operation

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
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[invalid] crash on almost every PartDesign operation

Post by uwestoehr »

Current master is completely broken for me. What ever I try to do with it, I get an immediate crash because of an illegal storage access.

Here an example file:
Crash-test.FCStd
(16.95 KiB) Downloaded 18 times
- open it and double-click on the Pad object in the tree view to trigger the crash.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.29384 (Git)
Build type: Release
Branch: master
Hash: 1ae55905ba7e89278bf656ebcc57ea1088e8fa44
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US) [ OS: German/Germany (de_DE) ]
FreeCAD 0.20 has no problems.

@wmayer , can you please have a look? Maybe there is another instance of an MSVC-only crash?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [regression] [crash] on almost every PartDesign operation

Post by wmayer »

- open it and double-click on the Pad object in the tree view to trigger the crash.
No crash. Did you do a full rebuild?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [regression] [crash] on almost every PartDesign operation

Post by uwestoehr »

wmayer wrote: Fri Jul 01, 2022 8:14 pm No crash. Did you do a full rebuild?
Yes. However, on my second compiling PC I got none. So on the PC with the crash, I deleted the CMake cache, and then did a full rebuild again.
This fixed the problem.

Sometimes I don't understand what is going on because on both PCs I have the same build environment and Windows version :evil:
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [invalid] crash on almost every PartDesign operation

Post by adrianinsaval »

disk corruption?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [invalid] crash on almost every PartDesign operation

Post by wmayer »

So on the PC with the crash, I deleted the CMake cache, and then did a full rebuild again.
This fixed the problem.
After some heavier changes it happens pretty often that msvc creates corrupted builds. With other compilers this happens too but much less often.
Post Reply