Spine-Toolbox icon indicating copy to clipboard operation
Spine-Toolbox copied to clipboard

Crash when trying to export outputs.

Open fares2201 opened this issue 1 year ago • 4 comments

Hello, Im noticing that everytime I want to export my outputs as an excel via Spine, the software crashes. I am running the dev version of Spine.

fares2201 avatar Aug 19 '23 12:08 fares2201

Thanks for reporting an issue. I transferred the issue to this Spine Toolbox repository, since exports are handled by Spine Toolbox rather than SpineOpt.

We need more information on what is going wrong. Are you using an exporter tool or doing an export directly from the database? What are you exporting - everything? What does the terminal say after the crash ('traceback')? Also, you should check that you're on latest version of Spine Toolbox (there is no dev branch - you should be using 'master' branch). Check the upgrade instructions in the https://github.com/spine-tools/Spine-Toolbox#installation.

jkiviluo avatar Aug 21 '23 05:08 jkiviluo

I'm also experiencing crashes when exporting using the export function of the spine db editor.

For example (but not limited to), it crashes when I have a spine database for the 'simple system tutorial' (from the SpineOpt repository) and I export that database to a json file.

It indeed happened when I wanted to export everything. I have done some tests and at some point it seemed that the culprit was 'parameter_value_list' as it consistently crashed when I exported that list. However, after a while it stopped crashing. Though it stays crashing when you want to export everything.

System: Ubuntu Branch: 0.8-dev (but I also remember crashes in the master branch) console message: ?? everything closes when it crashes ...

tarskul avatar Mar 25 '24 10:03 tarskul

Tars, I think my console keeps running after a crash (using Miniconda shell). It would be important to see if there's any message...

jkiviluo avatar Mar 26 '24 11:03 jkiviluo

Mine doesn't (probably because I use a script to start toolbox instead of manually starting the environments in the console) but I remembered a trick to keep the console open ($SHELL at the end of the script).

Though this time it didn't break while writing jsons but it did when writing the excel file. It seems rather inconsistent.

Anyway, the result is:

32940 Segmentation fault (core dumped) spinetoolbox

tarskul avatar Mar 26 '24 12:03 tarskul