Crash on deleting an element being dragged
Reported version
3.3
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
Came from a crash reporter.
1) Start dragging an element (e.g. dynamics, but this is reproducible with other elements too).
2) While holding left mouse button, press Delete.
3) Continue dragging, or just release mouse button.
Result: crash.
This is reproducible since 3.1.0 version, 3.0.5 seems to be unaffected by this.
Fix version
3.4.0
Comments
so a regression vs 3.0.5
Somewhere between this commit (March, 30) : deletion works: a9d043a
And this one (first of April 4), with crash: 5bd7e15
See https://github.com/musescore/MuseScore/pull/5512.
Fixed in branch master, commit 6fd217c017
_fix #298141: crash on deleting an element being dragged
When the element is being dragged, it is selected, but if it's deleted, then the selection changes. This causes
this
inendDrag()
to change to the parent element, but since theEditData
parameter (ed
) is still that of the deleted element,ed.getData(this)
returns anullptr
which directly leads to a crash._Fixed in branch master, commit 56b8742dd4
_Merge pull request #5512 from Howard-C/end-drag-delete
fix #298141: crash on deleting an element being dragged_
Automatically closed -- issue fixed for 2 weeks with no activity.