Crash when closing a tab on Midi imported score

• Feb 13, 2021 - 23:56
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

I thought I had reported this issue before, but I couldn't find it in the forums. This issue has been going on since at least 3.5
When I perform these steps in this order the program reliably crashes. Version 3.6.2
1. Open (import) a midi score.
2. Change something on the score
3. Hit the "apply" button on the Midi import panel
4. When the dialog box appears, hit "Cancel". A new tab opens up
5. Close the new tab by hitting the "X" on the tab.
6. Hit the "Discard" button when the dialog window opens.
7. The program Crashes and crash reporter window opens up.

Workaround: Not really, except don't close the new tab.

For step 4, I don't know why a new tab opens up. To me, when you hit cancel you are telling the program to not do anything.


Comments

Stack trace:
1 Ms::ImportMidiPanel::setMidiFile importmidi_panel.cpp 57 0x57764f
2 Ms::MuseScore::midiPanelOnSwitchToFile musescore.cpp 2842 0x41ac5a
3 Ms::MuseScore::setCurrentScoreView musescore.cpp 2683 0x41a3a6
4 Ms::MuseScore::removeTab musescore.cpp 3340 0x41c877
5 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 481 0x5eb7b1
6 void doActivate(QObject *, int, void * *) 0x68b978bb
7 Ms::ScoreTab::tabCloseRequested moc_scoretab.cpp 219 0x60ad5f
8 Ms::ScoreTab::qt_static_metacall moc_scoretab.cpp 110 0x60a80a
9 void doActivate(QObject *, int, void * *) 0x68b978bb
10 QTabBarPrivate::_q_closeTab() 0x325dbcde
11 QTabBar::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *) 0x325e4bb9
12 void doActivate(QObject *, int, void * *) 0x68b978bb
13 QAbstractButtonPrivate::emitClicked() 0x32534bb2
14 QAbstractButtonPrivate::click() 0x32536057
15 QAbstractButton::mouseReleaseEvent(QMouseEvent *) 0x325361d1
16 QWidget::event(QEvent *) 0x32493d78
17 QApplicationPrivate::notify_helper(QObject *, QEvent *) 0x3245790e
18 QApplication::notify(QObject *, QEvent *) 0x3245f1ea
19 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *) 0x68a65f78
20 QApplicationPrivate::sendMouseEvent(QWidget *, QMouseEvent *, QWidget *, QWidget *, QWidget * *, QPointer&, bool, bool) 0x3245d83b
...