Pasting cross-staff tuplets into the wrong staff results in a crash

• Sep 26, 2021 - 13:53
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

To reproduce:
1. Place any tuplet on the top staff.
2. Cross the staff (select -> ctrl+shift+down)
3. Select both staves then copy
4. Paste on bottom staff
Results in crash


Comments

Stack trace:
1 std::_Rb_tree, std::_Select1st>, std::less, std::allocator>>::_M_begin stl_tree.h 759 0x10d16dc
2 std::_Rb_tree, std::_Select1st>, std::less, std::allocator>>::upper_bound stl_tree.h 1215 0x10d14ab
3 std::map::upper_bound stl_map.h 1305 0x10b8970
4 Ms::Staff::timeSig staff.cpp 470 0xabd069
5 Ms::Staff::timeStretch staff.cpp 459 0xabcfee
6 Ms::DurationElement::actualTicks duration.cpp 89 0xb60945
7 Ms::Score::pasteStaff paste.cpp 194 0xb7b427
8 Ms::Score::cmdPaste paste.cpp 1116 0xb81d54
9 Ms::ScoreView::normalPaste scoreview.cpp 2046 0x64187d
10 Ms::ScoreView::::operator()(Ms::ScoreView *, const QByteArray &) const scoreview.cpp 2132 0x641cb2
11 std::_Function_handler>::_M_invoke(const std::_Any_data &, Ms::ScoreView *&&, const QByteArray &) std_function.h 297 0x65cd03
12 std::function::operator()(Ms::ScoreView *, QByteArray const&) const std_function.h 687 0x10d30cd
13 Ms::ScoreView::cmd scoreview.cpp 2890 0x64a3f1
14 Ms::ScoreView::cmd scoreview.cpp 2089 0x641ad7
15 Ms::MuseScore::cmd musescore.cpp 6613 0x433de4
16 Ms::MuseScore::cmd musescore.cpp 6044 0x43077a
17 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 540 0x5ee585
18 void doActivate(QObject *, int, void * *) 0x68b978bb
19 Ms::ScoreTab::actionTriggered moc_scoretab.cpp 226 0x60d9f0
20 Ms::ScoreTab::qt_static_metacall moc_scoretab.cpp 111 0x60d45f
...