Crash when dragging element on score from palette

• Feb 21, 2015 - 12:06
Type
Functional
Severity
S2 - Critical
Status
closed
Project

41a0e13d1c - Mac OSX

  1. Create a new score
  2. Drag and drop a volta, or fretboard diagram, a crescendo etc... to a measure
  3. Move the element on the score
  4. Undo until deleting the element
  5. Drag the same element again in the score

--> Crash.

The crash is EXC_BAD_ACCESS in the first line of ScoreView::testElementDragTransition(QMouseEvent* ev)
https://github.com/musescore/MuseScore/blob/41a0e13d1c32f755dcf3fe80621…

It's probably a memory corruption problem. Maybe due to the cleanup in undo?

I encounter the bug while testing #36266: All the Lines and Fretboard Diagram displayed twice after undoing move


Comments

I can't reproduce either. Maybe only on 10.10?

Just so I understand the steps:

1. Create Voice score.
2. Drag volta from the palette onto bar 1.
3. Drag the volta that's on the score.
4. 'Undo' twice.

Result: It isn't seen on the score.

5. Drag the same volta from the palette onto bar 1.

Result: It appears, with no crash.

Using MuseScore 2.0 Nightly Build da1a230 - Mac 10.7.5.