[Solved] Ticket #4191 - Crash on spreadsheet in-cell value edit

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!
ulrich1a
Posts: 1920
Joined: Sun Jul 07, 2013 12:08 pm

Re: Crash on spreadsheet in-cell value edit

Postby ulrich1a » Fri Nov 15, 2019 9:13 pm

The crash seems to depend also on the performance of the computer. I tested my model on a low end laptop. There it crashes between values of 6 or 7 mm for the "Radius" in the spreadsheet. The crash is sometimes delayed on this computer. The logfile contained these statements:

Code: Select all

Log: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Err: Illegal storage access...
Err: Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: Illegal storage access! Please save your work under a new file name and restart the application!
I do wonder, if this crash will not be related to this one: https://forum.freecadweb.org/viewtopic.php?f=10&t=40806
It seems that in both cases the event handling of Qt is involved. I got the following in the log-file after a Ctrl-a:

Code: Select all

Err: Illegal storage access...
Err: Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: Illegal storage access! Please save your work under a new file name and restart the application!
Log: The event type 6 was sent to Gui::TreeWidget

Ulrich
ezzieyguywuf
Posts: 637
Joined: Tue May 19, 2015 1:11 am

Re: Crash on spreadsheet in-cell value edit

Postby ezzieyguywuf » Sat Nov 30, 2019 12:59 am

Code: Select all

357.106 <App> Document.cpp(3462): Failed to recompute SpreadsheetCrash3#Pocket002: Pocket: Result has multiple solids. This is not supported at this time.

Code: Select all

Recompute failed! Please check report view.
These are the only two errors I see when changing "radius" to 12.

Is this the "crash" that is being described? My FreeCAD is still up and running, just seems to have an error.

Or is there a more serious crash that is being experienced on other platforms?

OS: Gentoo/Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18787 (Git)
Build type: Debug
Branch: master
Hash: 9898f3b242bec84396ee30a5722f8c462223e612
Python version: 3.6.5
Qt version: 5.12.4
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
ezzieyguywuf
Posts: 637
Joined: Tue May 19, 2015 1:11 am

Re: Crash on spreadsheet in-cell value edit

Postby ezzieyguywuf » Sat Nov 30, 2019 2:44 am

as an update: is it possible to duplicate the issue with the attached document?

I've tried to duplicate the file uploaded by ulrich, except using purely the Part workbench rather than the PartDesign workbench. I'm still relying on Spreadsheet references.

My reason for this is that some preliminary tests on my end suggest that the issue is not specific to Spreadsheet, but rather in PartDesign. This assumes the actual issue is as I've described in my previous post...
Attachments
SpreadsheetCrashPartWB.FCStd
(65.04 KiB) Downloaded 2 times
User avatar
Kunda1
Posts: 7037
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4191 - Crash on spreadsheet in-cell value edit

Postby Kunda1 » Sat Jan 11, 2020 12:46 pm

lpala wrote::bell:
Ref: issue #4191
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
wmayer
Site Admin
Posts: 15471
Joined: Thu Feb 19, 2009 10:32 am

Re: Ticket #4191 - Crash on spreadsheet in-cell value edit

Postby wmayer » Mon Jan 13, 2020 4:07 pm