Crashing on lyric entry

• Jan 20, 2019 - 21:10
Reported version
3.0
Priority
P1 - High
Type
Performance
Frequency
Many
Severity
S2 - Critical
Reproducibility
Always
Status
PR created
Regression
No
Workaround
No
Project
Tags

Enter lyrics in measure 31

Every time I enter lyrics in that measure, it crashes.

Attachment Size
Keep_The_Customer_Satisfied.mscz 41.16 KB

Comments

Status active needs info

I wasn't able to reproduce at first by entering a lyric on the first note, but as I continued, it crashed upon hitting Space after entering a lyric for the fourth note. Somehow in TextBase::endEdit() while trying to process the undo stack, we come upon a totally bogus "Add" command.

Status active PR created

In current master (but, surprisingly, not in 3.0.5) the crash can be reliably reproduced (at least for me) by going to measure 37 and entering any lyrics syllable at its first note (the crash itself happens always when I press Esc to end editing the syllable).

I created a pull request that should fix the crash, see https://github.com/musescore/MuseScore/pull/4921.