Hey, im experiencing the same issue under Windows.
Changing an aliased value in the spreadsheet forces FreeCAD to crash mostly.
I attached an example file too.
OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18686 (Git)
Build type: Release
Branch: master
Hash: f0cdad7f708c0185961cd7185e366df22e041d02
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)
It crashes only if I leaf the spreadsheet cell with the return key. It does not crash, when I just click into a different cell after changing the value.
I could not build myself a model that crashes. This seems to be a complicated issue.
import FreeCAD
import Spreadsheet
doc = App.ActiveDocument
if doc is not None:
Gui.activateWorkbench("SpreadsheetWorkbench")
sheet = doc.getObject('Spreadsheet')
if sheet is not None:
sheet.set('LengthA', str('=100mil'))
doc.recompute()
The crash seems to be depend on the complexity of the model. I made a block with three round holes in it. I can change the radius of the holes without a crash, until a radius is big enough, so that all three holes cross each other. The attached model crashes, if the value "Radius" in the spreadsheet is 10 or bigger.
This logs are pointing to event handling. This is something for experts in this field.
ulrich1a wrote: ↑Fri Nov 15, 2019 4:41 pm
The crash seems to be depend on the complexity of the model. I made a block with three round holes in it. I can change the radius of the holes without a crash, until a radius is big enough, so that all three holes cross each other. The attached model crashes, if the value "Radius" in the spreadsheet is 10 or bigger.
This logs are pointing to event handling. This is something for experts in this field.
Ulrich
Same behaviour here. It the model is VERY simple it doesn't crash. As stated before, it seem to be related to some recomputing that happens always (even if I change not aliased cell).