Crash after undo on a tied deleted/copied-pasted note belonging to a chord

• Jun 13, 2017 - 10:40
Reported version
2.1
Type
Functional
Severity
S2 - Critical
Status
closed
Project

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)
step1.jpg
5) Copy-past this first measure second staff, in first measure first staff
You receive:
step2.jpg
6) Undo
7) Note input mode "N"
8) Enter two notes eg two E

Result: crash
crash1.jpg

- 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
...

Title Crash after undo on a deleted/copied-pasted note belonging to a chord Crash after undo on a tied deleted/copied-pasted note belonging to a chord

I'm investigating. Second semester 2014 for sure for the moment ...