Crash after undo on a tied deleted/copied-pasted note belonging to a chord
2.1 version 871c8ce / Windows7
1) Create a new score for two flutes
2) First staff: Enter a D half note in first measure, and ditto in second measure
3) Second staff: Enter a chord: two tied D+A, eg in quarter notes
- See the test file at this step: Flute.mscz
4) Cut the second tied D quarter note (image below)
5) Copy-past this first measure second staff, in first measure first staff
You receive:
6) Undo
7) Note input mode "N"
8) Enter two notes eg two E
Result: crash
- No problem of course if there is no chord. Test file in this configuration: Flute1.mscz
Comments
Same in 2.0.3 (so it is not a regression)
And same in current master too!
Stack trace there:
1 Ms::Tie::startNote tie.cpp 881 0x86a2f5
2 Ms::Chord::cmdUpdateNotes chord.cpp 1619 0x7760cd
3 Ms::Score::getNextMeasure layout.cpp 2350 0x7f676f
4 Ms::Score::collectSystem layout.cpp 2855 0x7f9009
5 Ms::Score::doLayoutRange layout.cpp 3499 0x7fcfba
6 Ms::Score::update cmd.cpp 222 0x8d5995
7 Ms::Score::endCmd cmd.cpp 180 0x8d56c3
8 Ms::Score::cmd cmd.cpp 3512 0x8e5609
9 Ms::ScoreView::cmd scoreview.cpp 2203 0x40ea1a
10 Ms::MuseScore::cmd musescore.cpp 5034 0x49dd5a
11 Ms::MuseScore::cmd musescore.cpp 4585 0x49b9d9
12 Ms::MuseScore::qt_static_metacall moc_musescore.cpp 740 0x6a2ac9
13 ZN11QMetaObject8activateEP7QObjectiiPPv 0x68c03046
14 Ms::ScoreTab::actionTriggered moc_scoretab.cpp 199 0x6a8f93
15 Ms::ScoreTab::qt_static_metacall moc_scoretab.cpp 100 0x6a8c2d
16 ZN11QMetaObject8activateEP7QObjectiiPPv 0x68c03046
17 ZN12QActionGroup7hoveredEP7QAction 0x21b34d65
18 ?? 0x2a335ca0
19 ZN7QAction8activateENS_11ActionEventE 0x21b33e01
20 ?? 0x1
...
I'm investigating. Second semester 2014 for sure for the moment ...
I can say now this issue occurs on November 6, 2014.
- No issue with this nightly: 5ed2bc8
- Crash with the immediate next one (so the culprit is here): 3f99702
I made a pull request to fix this issue, hope it will be useful:
https://github.com/musescore/MuseScore/pull/3564
Fixed in branch master, commit 1b8679d9c5
fix #222031: remove ties and spanners when removing induvidual notes within a chord
Fixed in branch master, commit be5d711b37
Merge pull request #3564 from dmitrio95/bugfix/flute_0_crash
fix #222031: remove ties and spanners when removing induvidual notes within a chord
Fixed in branch 2.3, commit 1b736ba3e7
fix #222031: remove ties and spanners when removing induvidual notes within a chord (patch backport to 2.3)
Fixed in branch 2.3, commit 171d42bfbc
Merge pull request #3712 from dmitrio95/bugfix/flute_0_crash-2.3
fix #222031: remove ties and spanners when removing induvidual notes within a chord
Automatically closed -- issue fixed for 2 weeks with no activity.