Crash on undoing setting "Beam middle" property on a single note

• Jan 17, 2020 - 12:05
Reported version
3.3
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

Somewhat related to #290217: Crash when adding text in a score containing middle beam on a rest although still a different issue.

1) Create a new score
2) Add an eighth note to its beginning
3) Set "Beam middle" mode on this note
4) Undo
Result: crash

Seems to happen starting from version 3.1. Before 3.1 "Beam middle" on a single eighth note doesn't actually create beam which is probably the reason why no crash happens.


Comments

Workaround No Yes

I experimented...

I also get the crash if I enter a 1/8 rest followed by a 1/8 note and set "Beam middle" on the rest - i.e. reversing the order of note/rest produced by the steps in the original post. But I get no crash if the "Beam middle" is applied to anything other than a note or rest on the first beat of a score (including the first note/rest of a new system). Thus, I can get the same visual result as with the instructions above with no crash if I enter a 1/8 note followed by a 1/8 rest and set "Beam middle" on that rest. (And we have a workaround.)

It seems that it is the beaming/undoing of something associated with the first beat of a score that causes the crash.

This issue occurs on February 18, 2019

  • No crash with this nightly/commit (ie, it's impossible to add a middle beam on a single eighth note): 6469ea4

  • Crash with this one (a beam is shaped and crash on Undo) : ab87985

(there is a few commits between them, but seem not involved?)

Status PR created fixed

Fixed in branch master, commit 994c1c130c

_fix #299807: fix a crash on undoing "Beam middle" setting on single note

Prevents a crash by avoiding removing a beam from a score (and
recording this to undo stack) if not really necessary._

Fix version
3.4.1