hang/crash when saving and reopening attached file

• Nov 30, 2015 - 11:30
Priority
P1 - High
Type
Functional
Severity
S1 - Blocker
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
Tags

Initially reported in https://musescore.org/en/node/89096

  1. Open attached file (it takes quite long to load)
  2. save (under a different name) and close
  3. 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

Status active fixed
Reported version 2.1  

Doesn't seem to happen with current master, feel free to reopen if it is still the case.