Ticket #4209 - Crash of FreeCAD 0.19 on undo

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!
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Ticket #4209 - Crash of FreeCAD 0.19 on undo

Postby chrisb » Sat Nov 30, 2019 5:52 pm

The attached sketch is derived from another user contribution. If I delete the selected edges as indicated in the image ...
Snip macro screenshot-aac710.png
Snip macro screenshot-aac710.png (43.46 KiB) Viewed 534 times
...and I undo the deletion immediately with Ctrl+Z (well, on the Mac it is CMD+Z), then FreeCAD crashes.

Can anyone confirm?

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18811 (Git)
Build type: Release
Branch: master
Hash: b809867021deb37be1039dab37b9fe1cafab254e
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
Attachments
ProjectVG_cb.FCStd
(8.03 KiB) Downloaded 17 times
Last edited by Kunda1 on Fri Jan 10, 2020 8:55 pm, edited 1 time in total.
User avatar
Hartwig
Posts: 49
Joined: Thu Aug 01, 2019 3:26 pm
Location: Germany

Re: Crash of FreeCAD 0.19 on undo

Postby Hartwig » Sat Nov 30, 2019 6:28 pm

Yes, confirmed.

first attempt ok;
second and third time: error message in report view "Illegal storage access...
<Exception> Illegal storage access! Please save your work under a new file name and restart the application!"
fourth time: FreeCAD crashed;

Hartwig

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18811 (Git)
Build type: Release
Branch: master
Hash: b809867021deb37be1039dab37b9fe1cafab254e
Python version: 3.6.7
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
ulrich1a
Posts: 1958
Joined: Sun Jul 07, 2013 12:08 pm

Re: Crash of FreeCAD 0.19 on undo

Postby ulrich1a » Sat Nov 30, 2019 8:43 pm

I do get no crashes and no problems.

OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18815 (Git)
Build type: Unknown
Branch: Rueck6
Hash: bf4bf624a434b0febba3ddc59fb702b5a408486e
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

Ulrich
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash of FreeCAD 0.19 on undo

Postby chrisb » Sat Nov 30, 2019 10:51 pm

Can other Windows / Linux users try and give feedback?
ulrich1a
Posts: 1958
Joined: Sun Jul 07, 2013 12:08 pm

Re: Crash of FreeCAD 0.19 on undo

Postby ulrich1a » Sat Nov 30, 2019 11:20 pm

Could it be, that the last commit from Werner did fix this? https://github.com/FreeCAD/FreeCAD/comm ... b5a408486e
It seems to be connected to redo.

Ulrich
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash of FreeCAD 0.19 on undo

Postby chrisb » Sat Nov 30, 2019 11:31 pm

I will retry when the next Mac version is available.
wmayer
Site Admin
Posts: 16460
Joined: Thu Feb 19, 2009 10:32 am

Re: Crash of FreeCAD 0.19 on undo

Postby wmayer » Sat Nov 30, 2019 11:33 pm

ulrich1a wrote:
Sat Nov 30, 2019 11:20 pm
Could it be, that the last commit from Werner did fix this? https://github.com/FreeCAD/FreeCAD/comm ... b5a408486e
It seems to be connected to redo.

Ulrich
No, this is about the visibility of the Origin feature when you create e.g. a Part design box, undo and redo. It then always showed the sub-elements of the origin even if it's set to invisible. The problem there was that the scene sub-graphs of these sub-elements were not yet moved to the root node of the Origin feature.
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash of FreeCAD 0.19 on undo

Postby chrisb » Sat Nov 30, 2019 11:38 pm

Should I create a ticket?
wmayer
Site Admin
Posts: 16460
Joined: Thu Feb 19, 2009 10:32 am

Re: Crash of FreeCAD 0.19 on undo

Postby wmayer » Sat Nov 30, 2019 11:41 pm

In Debug mode I tried it a few times but it never crashed. When doing ii in Release mode I immediately got the "Illegal storage access..." message too. So something is definitely wrong.
Should I create a ticket?
Yes.

Tested with:
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18812 (Git)
Build type: Release
Branch: master
Hash: ead9c5c67080498dcad3f3b7065bf2c52f248820
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
chrisb
Posts: 27983
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash of FreeCAD 0.19 on undo

Postby chrisb » Sun Dec 01, 2019 12:03 am