Crash when extending slur if system layout changes during operation

• Oct 10, 2014 - 04:12
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Open the attached score created from scratch (MuseScore 7ab8acd on Xubuntu 14.10).

Double click on the slur. With "Shift+Right arrow", move the end anchor on the last note of the score (ninth measure).

Result: MuseScore crashes.

Attachment Size
slur.mscz 1.49 KB

Comments

I think this is probably related to #36256: Layout shift on each layout - courtesy key signature calculation?, which uses essentially the same score. The crash here goes away if you insert enough line break to lock in the layout. The crash occurs while trying to work on the parent of a SlurSergment - which should be a System - but it turns out the segment has no parent. I'm betting that's because of that shift that keeps making systems appear and disappear.

Title Crash when moving slur Crash when moving slur related to layout

I agree on the fact that this crash is directly related to the layout.
Even before he began to extend the slur, just do a double-click and press Shift: immediately a second page appears.

layout slur.jpg

In particular, the custom size page in this example is involved: Custom size page, with: Width: 100.00 and Height: 125.00

If you return to the default size page (A4) - so, no more page break-, the behavior is correct.

A4.jpg

Attachment Size
layout slur.jpg 70.61 KB
A4.jpg 88.95 KB
Title Crash when moving slur related to layout Crash when extending slur if system layout changes during operation
Status (old) active needs info

With the fix for #36256: Layout shift on each layout - courtesy key signature calculation?, this is no longer reproducible with the posted score. But I am a little hesitant to simply close this, as I know the fix for #36256: Layout shift on each layout - courtesy key signature calculation? may not catch every possible case of layout shift, so there may be other situations where this same issue would be reproducible. It seems the code should be robust enough to handle a layout shift that occurs during the extension. But until we find another test case, it may not be worth worrying about.