Crash on adding crescendo while another one is selected

• Feb 12, 2018 - 09:37
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Ubuntu 17.10, 3.0 built from sources.

Scenario:

  1. Add one crescendo
  2. Select crescendo with double-click
  3. Add another crescendo while the first one is selected
  4. Try to select any element
    Result: crash.
    Expected result: Select without crash :)

Call stack:

1 Ms::Element::canvasBoundingRect
element.h 250
2 Ms::ScoreView::mousePressEvent
events.cpp 376
3 QWidget::event(QEvent *)
4 Ms::ScoreView::event
events.cpp 70

No ideas about the reason.


Comments

From what I observe, it's most likely a side effect of this commit on January 20: 50bc1f7

Indeed, with the previous nightly (9d9cd89) and after adding the second crescendo, it was impossible to select a new element (rest, note etc.) without doing "Escape" beforehand.

With the nightly mentioned first above, it is now possible to select (note, rest) immediately (without Escape), but this leads to a crash.