Add a time signature when no time signature causes crash
Nightly 6a80e2e/ Windows 8.1
1) Open this file (from a SATB template): test file.mscz
2) Select the measures 3 and 4 on all the four staves. Like this:
3) File -> Save selection -> Name this new file -> Save
4) Open the new file
Result: as expected, but I notice the absence of the 4/4 time signature. My wish is to add the same. So:
5) Drag and drop a 4/4 time sig
Result: crash
Additionnal notes:
- It works if you add an other time signature, 2/4, 3/4, 6/8 and so on. Only the "original" time signature is (seems) involved.
- Works fine with the 2.0 RC.
Comments
May be related: (new and otherwise empty) score in 6/8, select and delete timesig, drag 4/4 to 1st measure -> crash
Stack trace:
0 Ms::TimeSig::stretch timesig.h 99 0xb7d4d0
1 Ms::Score::cmdAddTimeSig edit.cpp 687 0x766505
2 Ms::Measure::drop measure.cpp 1391 0x77b3d8
3 Ms::ScoreView::dropEvent dragdrop.cpp 590 0x586e15
4 ZN7QWidget5eventEP6QEvent ...\MuseScore\win32install\bin\Qt5Widgets.dll 0x61e0bbc2
5 ?? 0x28c45c
6 ?? 0x8ec8300
This issue occurs on March 18.
- This Nightly works: 40e60ff
- This one fails: 9ab4e3e
So, the cause is maybe in this commit? https://github.com/musescore/MuseScore/pull/1898/files
Yes, most probably it is, as the stack trace pointes at a line that got added there.
Fixed in c676913d57
Confirming that 'my' issue is solved...
Automatically closed -- issue fixed for 2 weeks with no activity.