hang/crash when saving and reopening attached file
Priority
P1 - High
Type
Functional
Severity
S1 - Blocker
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
Initially reported in https://musescore.org/en/node/89096
- Open attached file (it takes quite long to load)
- save (under a different name) and close
- open the (new) file
Result: it appears to hang, but after quite a long time it crashes
Note: the file saved at step 2 is more than tripple the size of the attached file, where actually I'd expect it to be smaller, as it contains less instruments.
Insetad is does contain more than 6 Million duplicate and repeated entries like
<linkedTo>3</linkedTo>
Happens with MuseScore 2.0.2 as well as with the latest development build, 7321ba6
Attachment | Size |
---|---|
Bidonville_5.mscz | 218.63 KB |
Comments
so far I have been unable to get the crash (and a stack trace) when running in a debugger, it loops there for very Long, then just stops silently (with Exit code 3), no stack trace, but the following 'famous' last words:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Here's a previous version of the file in the hope it may help in fixing the issue
Without knowing anything about how this file got into this state, I wonder if perhaps it is related to #70146: Explosive accents on Guitar part with linked tab staff?
I've found a repro of going from the correct number of linkedTo elements to the "way too many" state. See bug https://musescore.org/en/node/91351.
This file crashes 3.0, see #276969: Assertion failure when opening a file from MuseScore 2.X
Doesn't seem to happen with current master, feel free to reopen if it is still the case.
seems indeed fixed, no crash in 3.3.4, but also no crash in 2.3.2, so probably fixed since quite long
Automatically closed -- issue fixed for 2 weeks with no activity.