Excerptdialog: New All causes crash
nightly 755bf05 Ubuntu 16.10
1. New Score with at least four different instruments
2. Parts... -> "New All" -> "Ok"
3. Parts... -> "Delete" all parts -> "New All" -> "Ok"
Result: Crash
If you don't have different instruments, it won't crash but create too much parts.
Comments
It crashes for me even with just one Instrument, see #110371: Excerptdialog: New All creates two parts instead of one
Stack trace:
1 Ms::mscoreMessageHandler musescore.cpp 2348 0x48b856
2 Z14qFloatDistancedd 0x6888d42a
3 ?? 0x21f279d0
4 ?? 0x8b
5 ?? 0xf8
6 ?? 0x10
7 OVE::binaryToHarmonyType ove.cpp 5744 0x530041
So it dies on an assert()
Same reason as described here: #110371: Excerptdialog: New All creates two parts instead of one
same reason but different stack trace?
Yes it doesn't fail at the same point in the program. The problem here is the swap operation directly because the lastPos has a value wich isn't available in the list. The problem in the other case is that after a swap the title is not avialabile on the refferred adress anymore and this causes the error.
So I would say same reason but different output.
But it would be kind if you could test this again with windows.
OK, will do
Edit: I've now tested the patch (https://github.com/musescore/MuseScore/pull/2592) on Windows, and it seems to fix the problem, no crash or other faults
Fixed in branch master, commit 05b69d8f59
fix #110376 fix #110371: Problems with New All and Delete in Excerptsdialog
Fixed in branch master, commit 55d755e241
Merge pull request #2592 from Rockettwo/110376-excerptsdialog-allnew-delete
fix #110376 fix #110371: Problems with New All and Delete in Excerptsdialog
Automatically closed -- issue fixed for 2 weeks with no activity.