Undo removal of instrument engaged in part causes crash

• Sep 19, 2013 - 21:27
Type
Functional
Severity
S2 - Critical
Status
closed
Project
Tags

1. Create score with two instruments (e.g. Piano and Harpsichord).
2. 'Parts…'.
3. 'New'.
4. Tick both instruments.
5. 'OK'.
6. Click on score (causing an impending save).
7. 'Instruments…'.
8. Remove either instrument.
9. 'OK'.
10. 'Undo'.

Result: Crash.

Note: See attached log.

Using MuseScore 2.0 Nightly Build (943c7e7) - Mac 10.7.5.


Comments

It's still reproducible - this time, it seems similar to Log 1.

I think this one will be Mac-exclusive - step 6 is an oddity.

Using MuseScore 2.0 Nightly Build (02d7b91) - Mac 10.7.5.

I can reproduce also in Windows 8 and Linux Mint 13 and I obtain basically the same crash log as in the original report.

I managed to obtain the crash by exactly following the original steps without clicking anywhere else between each of the steps and removing the second instrument in step 8. Step 6 seems not to be necessary.
Attached the gdb backtrace under Linux Mint 13: I used Piccolo and Flute as the 2 instruments. Track 4 therefore refers to the flute, which was the instrument removed at steps 8-9.
The crash happens at line 457 of libmscore/segment.cpp:
if (_elist[track]) {

Windows 8 and Linux Mint 13, commit eee9f5fa17 (self compiled).

Attachment Size
instr_part_crash1.txt 6.35 KB

I don't know if this comes under it:

1. Download and open this file.
2. 'Instruments…'.
3. Remove an instrument (e.g. 'E. Guitar 1').
4. 'OK'.
5. 'Undo'.

Result: Hang.

Note: I was unable to obtain a log.

Using MuseScore 2.0 Nightly Build (ab14241) - Mac 10.7.5.

Status (old) active needs info

I cannot reproduce this bug. Maybe its fixed as i changed the handling of multi measure rests when removing a staff.