Crashes when trying to drag anchor point of a glissando

• Jan 17, 2022 - 04:57
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
PR created
Regression
No
Workaround
No
Project

OS: Windows 10 21H1, Arch.: x86_64
MuseScore version (64-bit): 3.6.2.548021803, revision: 3224f34

steps to reproduce:
1. open a new score
2. put two notes
3. put a glissando between them
1.1.png
4. zoom in
5. click on the glissando
1.2.png
6. try to drag the purple thing that's next to the first note
1.3.png
7. musescore crashes

expected behavior: idk i wasn't really trying to do anything
actual behavior: musescore crashes


Comments

Status needs info active

I was able to reproduce. It happens if you attempt to grab the actual anchor point on the note, not the handle on the gliss. It's tricky to reproduce because it's a pretty small target, normally if you try to drag in that area you end up dragging the note itself.

Anyhow, dragging that anchor is not something that makes sense to do. Nothing at all should happen, that anchor is just there to show you which note it's attached to, it's not something you drag directly. But it shouldn't crash.

Ah!
Stack trace:

1 Ms::ElementEditData::pushProperty element.h 559 0xf25317
2 Ms::LineSegment::startDrag line.cpp 190 0xa17acd
3 Ms::SingleElementGroup::startDrag elementgroup.cpp 20 0x9b04b8
4 Ms::ScoreView::startDrag dragelement.cpp 56 0x70a8de
5 Ms::ScoreView::changeState events.cpp 1179 0x678e67
6 Ms::ScoreView::mouseMoveEvent events.cpp 664 0x6771f7
7 QWidget::event(QEvent *) 0x33073d78
8 Ms::ScoreView::event events.cpp 107 0x674906
9 QApplicationPrivate::notify_helper(QObject *, QEvent *) 0x3303790e
10 QApplication::notify(QObject *, QEvent *) 0x3303f1ea
11 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *) 0x68a65f78
12 QApplicationPrivate::sendMouseEvent(QWidget *, QMouseEvent *, QWidget *, QWidget *, QWidget * *, QPointer&, bool, bool) 0x3303d83b
13 QWidgetWindow::handleMouseEvent(QMouseEvent *) 0x33089962
14 QWidgetWindow::event(QEvent *) 0x3308cc06
15 QApplicationPrivate::notify_helper(QObject *, QEvent *) 0x3303790e
16 QApplication::notify(QObject *, QEvent *) 0x3303e3e3
17 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *) 0x68a65f78
18 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent *) 0x6197a0a4
19 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *) 0x6197b3d5
20 QWindowSystemInterface::sendWindowSystemEvents(QFlags) 0x6195722d
...