Pasting cross-staff tuplets into the wrong staff results in a crash
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
Relates to #285233: [EPIC] Cross-staff notation issues
Can you provide a sample score?
I can't reproduce in 3.6.2 on Windows 10
In reply to Relates to #285233: [EPIC]… by Jojo-Schmitz
Here it is. Highlight both staffs + copy, then paste it into the bottom staff of the next measure. It crashes regardless if you paste it on the measure (selection) or the rest.
Confirmed
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
...
In reply to Stack trace: 1 std::_Rb… by Jojo-Schmitz
No crash if there is another staff below (if that is for the same instrument with cross staff notation, else without)