Slurs settings and saving added instruments lead to crash
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.0.4839, revision: cf1f5ce
Steps from scratch (the test file: test drum scratch.mscz )
- First scenario:
1) New score for flute, and drumset (instrument with Percussion clef or TAB clef needed here)
2) Enter two notes with slur in flute staff
3) In Inspector, change an offset (X/Y) or two, as you want
3) Press « I » → Add a new flute → Ok
First result : you note the slur reverts to its default position
5) Save (Ctrl + S)
---→ Crash
Note: if you want create your own test file, it's needed to save/exit/reload first the file (with custom settings). Then following steps with addition of instruments.
- Second scenario. Involving Auto Save feature, with the same test file.
1) Be sure 'Auto Save' is checked in Preferences, and set to 1mm, preferably for you and to reproduce.
2) Load the same file: test drum scratch.mscz, or another one, with Ukulele TAB: test TAB uke.mscz
3) « I » → Add a flute → Ok
4) Wait…
Result: here, with my laptop Win10, after 35-40 seconds, the program shuts down.
With my desktop computer Win7 (more powerful, memory involved too ?), sometimes it may die rather quickly too.
But the more often, after 50 seconds (the time for Auto Save, sufficient), possible that nothing happens. So, I repeat step#3, and there, the program dies, and not all the times, after 1.40-1.50mn
See (first scenario)
Comments
Can't reproduce in the latest master.
No change here (same crash with the attachment above) and with current 3.x dev.: OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.0.1.4987, revision: 4a439e3
Slur position resetting reliably reproduces for me but the crash isn't. Though I get sometimes a random crash after some combinations of adding instruments, slur position editing and undo/redo operations. Fortunately running MuseScore under Valgrind both crashes on this scenario and reports a bad memory access. Here is a pull request to fix this (and to return that slur to its rightful position): https://github.com/musescore/MuseScore/pull/4569.
Fixed in branch master, commit 7fd921aec4
fix #281020: Slurs settings and saving added instruments lead to crash
Fixed in branch master, commit 56c6d86862
Merge pull request #4569 from dmitrio95/281020-slur-instrument-add-crash
fix #281020: Slurs settings and saving added instruments lead to crash
Automatically closed -- issue fixed for 2 weeks with no activity.