adding slur to some notes causes crash.

• May 29, 2022 - 23:54
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project

I'm transcribing Beethoven's fifth symphony into musescore. For some reason, when I go to add a slur to a certain group of notes, the program always crashes. Adding a slur to other groups of notes does not. I have tried adding a slur to that group of notes several times and have even rebooted my computer but musescore will always crash when I go to add a slur on that group of notes. Attached is a screenshot showing the problematic group of notes as well as a backtrace I made.. If it helps I'm using Musescore 3.6.2 on Fedora 35.


Comments

Stack trace:
1 Ms::Slur::slurPos slur.cpp 585 0xa9e02d
2 Ms::Slur::layoutSystem slur.cpp 1125 0xaa1047
3 Ms::processLines layout.cpp 3826 0x9fb8cb
4 Ms::Score::layoutSystemElements layout.cpp 4474 0x9ffcb9
5 Ms::Score::collectSystem layout.cpp 4183 0x9fd4f0
6 Ms::LayoutContext::collectPage layout.cpp 4852 0xa0237f
7 Ms::LayoutContext::layout layout.cpp 5181 0xa040c4
8 Ms::Score::doLayoutRange layout.cpp 5169 0xa04024
9 Ms::Score::update cmd.cpp 302 0x536488
10 Ms::Score::endCmd cmd.cpp 260 0x536126
11 Ms::ScoreView::cmdAddSlur scoreview.cpp 4028 0x65164a
12 Ms::ScoreView::::operator()(Ms::ScoreView *, const QByteArray &) const scoreview.cpp 2193 0x642acf
13 std::_Function_handler>::_M_invoke(const std::_Any_data &, Ms::ScoreView *&&, const QByteArray &) std_function.h 297 0x65e2ca
14 std::function::operator()(Ms::ScoreView *, QByteArray const&) const std_function.h 687 0x10cb3fd
15 Ms::ScoreView::cmd scoreview.cpp 2890 0x64ae11
16 Ms::ScoreView::cmd scoreview.cpp 2089 0x6424f7
17 Ms::MuseScore::cmd musescore.cpp 6617 0x433e30
18 Ms::MuseScore::cmd musescore.cpp 6044 0x43077a
19 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 610 0x5eef3d
20 void doActivate(QObject *, int, void * *) 0x68b978bb
...

I don't find the real cause of the crash though.
Removing the Oboes parts doesn't help, still crashes.
Shortingin the score (drastically, only keeping a few measures aroung the culprit 472-474) and the crash no longer happens.

Fix version
4.0.0