SegFault upon delete measures: tick2measure not found when timeline is open

• May 10, 2021 - 03:58
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!

Status needs info active

I've tested on latest AppImage (MuseScore-3.6.2.548021370-x86_64.AppImage), but still get segfault when I follow the steps:

/tmp/.mount_MuseScvTWClR/AppRun: line 26: 24709 Segmentation fault      (core dumped) "${APPDIR}/bin/mscore-portable" "$@"