crash in Glissando::layout() when delete a bunch of measures in someone's big score
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
duplicate
Regression
No
Workaround
No
Project
- open Thunderbolt_March.mscz (it's a big score)
- open timeline.
- select measures 35 to the end.
- delete them (ctrl->delete)
result: crash
MuseScore3.exe!Ms::System::firstMeasure() Line 896 C++
MuseScore3.exe!Ms::Glissando::layout() Line 283 C++
MuseScore3.exe!Ms::LayoutContext::collectPage() Line 4024 C++
MuseScore3.exe!Ms::LayoutContext::layout() Line 4207 C++
MuseScore3.exe!Ms::Score::doLayoutRange(int stick, int etick) Line 4194 C++
MuseScore3.exe!Ms::Score::update() Line 220 C++
MuseScore3.exe!Ms::Score::endCmd(bool rollback) Line 180 C++
MuseScore3.exe!Ms::Score::cmd(const QAction * a, Ms::EditData & ed) Line 3694 C++
MuseScore3.exe!Ms::ScoreView::cmd(const char * s) Line 2314 C++
MuseScore3.exe!Ms::ScoreView::cmd(const QAction * a) Line 1761 C++
MuseScore3.exe!Ms::MuseScore::cmd(QAction * a, const QString & cmd) Line 6087 C++
MuseScore3.exe!Ms::MuseScore::cmd(QAction * a) Line 5578 C++
MuseScore3.exe!Ms::MuseScore::qt_static_metacall(QObject * _o, QMetaObject::Call _c, int _id, void * * _a) Line 850 C++
It seems system() returns NULL in line 277 of glissando.cpp:
if (cr2->segment()->measure() == cr2->segment()->system()->firstMeasure() && cr2->rtick() == 0
Comments
Might be related to #317511: Crash on Undo after adding measures with timeline open, and if so it'd be fix in the 3.x nightly builds (but potetially not yet in the master builds)
It doesn't crash in 3.x which does have the fix for #317511: Crash on Undo after adding measures with timeline open, so most likely is a duplicate
Reopen if not related to timeline