SegFault upon delete measures: tick2measure not found when timeline is open
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
duplicate
Regression
No
Workaround
Yes
Project
Steps to reproduce:
(0. View->Timeline needs to be open)
1. open attached score
2. select entire a section of measures 23 through 30
3. press Ctrl->Delete to Delete those measures
Observe a SegFault with console output:
/build/musescore/src/MuseScore/libmscore/utils.cpp:Ms::Score::tick2measure: tick2measure 58880 (max 51840) not found
Segmentation fault (core dumped)
Funny thing is I can select meas 23 through 27 and delete them just fine...but if I select meas 23 through 28 and delete them, then I get the segfault too, with the same error:
/build/musescore/src/MuseScore/libmscore/utils.cpp:Ms::Score::tick2measure: tick2measure 58880 (max 55680) not found
Segmentation fault (core dumped)
on arch linux MuseScore 3.6.2 arch community repo build
Attachment | Size |
---|---|
segfault-delete-A'.mscz | 16.59 KB |
Comments
I can delete that measure 28 just fine if I only select it. Or if I select it and the subsequent one or two measures. Or if I select any measure starting from meas 24 to meas 27 and that problematic measure 28, I can delete just fine. BUT if I select from 23 through 28 then the delete results in a SegFault!
deleting the contents of those measures prior to deleting the measures doesn't seem to help.
I can't reproduce, Windows 10, MuseScore 3.6.2
Try with an AppImage, This issue here any your other one, #321021: SegFault when undo after deleting initial 4/4 time signature if had set first measure Actual Duration to 2/4 and had chord symbols with timeline open seem to indicate an issue with your build
I've tested on latest AppImage (MuseScore-3.6.2.548021370-x86_64.AppImage), but still get segfault when I follow the steps:
I still can't reproduce
timeline needs to be open for the SegFault to happen
confirmed
obvious workaround is to not use the timeline
See #317511: Crash on Undo after adding measures with timeline open and #320133: Application Crashes When Splitting Measure
yeah, seems fixed in latest nightly AppImage OS: Arch Linux, Arch.: x86_64, MuseScore version (64-bit): 3.6.2.826753851, revision: 1b3ed31