Spreadsheet workbench crash

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!
KJJ
Posts: 8
Joined: Mon Nov 02, 2015 10:25 am

Spreadsheet workbench crash

Postby KJJ » Sun Nov 08, 2015 5:40 pm

Hi all,

I have a problem with the Spreadsheet workbench. Please have a look at the attached model. When I add a dimension at the first entry of the list, FreeCAD crashes without any warning or error. Values which causes crashes (tried so far): 0.1, 0.2, 0.3, 3

Image

Here is the dependency graph, if necessary:
Image

OS: Ubuntu 14.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5871 (Git)
Build type: None
Branch: master
Hash: 8645d56acf11bdabb2f24ed40f39c9b2bbff9a40
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17


Thank you!

Greetings.
Attachments
model_neu_klaus.fcstd
(5.32 KiB) Downloaded 20 times
eivindkvedalen
Posts: 602
Joined: Tue Jan 29, 2013 10:35 pm

Re: Spreadsheet workbench crash

Postby eivindkvedalen » Sun Nov 08, 2015 7:41 pm

KJJ wrote:Hi all,

I have a problem with the Spreadsheet workbench. Please have a look at the attached model. When I add a dimension at the first entry of the list, FreeCAD crashes without any warning or error. Values which causes crashes (tried so far): 0.1, 0.2, 0.3, 3
Confirmed. This is actually a known issue (at least I know about it :)); this happens because you change the cell type from string to number or quantity (number + unit). I'll look into this issue, and see what it takes to fix it (I'm the main contributor to the current Spreadsheet module). Notice that the internals of the property editor is being worked on, so a fix for this might need to wait for the merge of viewtopic.php?f=17&t=12841.

As a work-around, do the following:
- Make sure the Data tab is not shown (select View) in the property editor.
- Remove the alias for your cell.
- Select a different object in the tree view.
- Select the spreadsheet object again.

The deselect/select action removes the property that causes the crash from the property editor, so you can recreate it with the correct type and alias.

Eivind
KJJ
Posts: 8
Joined: Mon Nov 02, 2015 10:25 am

Re: Spreadsheet workbench crash

Postby KJJ » Thu Nov 12, 2015 5:42 pm

eivindkvedalen wrote:
KJJ wrote:Hi all,

I have a problem with the Spreadsheet workbench. Please have a look at the attached model. When I add a dimension at the first entry of the list, FreeCAD crashes without any warning or error. Values which causes crashes (tried so far): 0.1, 0.2, 0.3, 3
Confirmed. This is actually a known issue (at least I know about it :)); this happens because you change the cell type from string to number or quantity (number + unit). I'll look into this issue, and see what it takes to fix it (I'm the main contributor to the current Spreadsheet module). Notice that the internals of the property editor is being worked on, so a fix for this might need to wait for the merge of viewtopic.php?f=17&t=12841.

As a work-around, do the following:
- Make sure the Data tab is not shown (select View) in the property editor.
- Remove the alias for your cell.
- Select a different object in the tree view.
- Select the spreadsheet object again.

The deselect/select action removes the property that causes the crash from the property editor, so you can recreate it with the correct type and alias.

Eivind
Thank you very much for your answer. Works great :)

Greetings
wmayer
Site Admin
Posts: 16849
Joined: Thu Feb 19, 2009 10:32 am

Re: Spreadsheet workbench crash

Postby wmayer » Mon Nov 16, 2015 2:25 pm

git commit ba21766 fixes the crash.
eivindkvedalen
Posts: 602
Joined: Tue Jan 29, 2013 10:35 pm

Re: Spreadsheet workbench crash

Postby eivindkvedalen » Mon Nov 16, 2015 5:33 pm

wmayer wrote:git commit ba21766 fixes the crash.
Thanks for fixing this!

Eivind