Crash in ScoreBrowser on systems with single-click items activation turned on
After starting up MuseScore by default shows a screen suggesting user to create a new score or open one of the recently opened. If Qt is configured to activate items on single click (see QStyle::SH_ItemView_ActivateItemOnSingleClick
) selecting any of the recently opened files in the shown list leads to a crash. Such settings are default for most KDE Plasma desktop installations in many GNU/Linux distributions. Perhaps it is possible to setup Qt this way on other operating systems but I am not sure how to do it. When configuring Qt to turn off that behavior the crash does not happen anymore.
Steps to reproduce:
1. Run a GNU/Linux system with KDE Plasma desktop. Make sure that single click items activation is turned on (System Settings → Input Devices → Mouse → Single click for opening files and directories).
2. Run MuseScore 3.
3. See a screen suggesting to create a new file or open some recent scores. If there are no recent scores, open any score, close MuseScore and repeat from step 2.
4. Click on any item of the list except creating a new score.
Expected results
The selected score is opened.
Actual results
MuseScore crashes.
Version
MuseScore 3 from master branch.
The issue is not present in MuseScore 2 since a single click activation behavior is explicitly turned off there.
There is a pull request that is intended to fix this issue.
Comments
See https://github.com/musescore/MuseScore/pull/3545
See https://github.com/musescore/MuseScore/commit/c86314d42e9262f0bcca7be5a…
Unfortunately MuseScore keeps crashing on this scenario but rarely. This should be a better fix for the problem: https://github.com/musescore/MuseScore/pull/4075
Fixed in branch master, commit 7e443f6db7
fix #272995: avoid handling single clicks twice in ScoreBrowser
Fixed in branch master, commit 9a4f6ffd8c
Merge pull request #4075 from dmitrio95/bugfix/score_browser_single_click_crash-2
fix #272995: avoid handling single clicks twice in ScoreBrowser
Fixed in branch 3.0alpha2, commit 1b29bd2d54
Merge pull request #4075 from dmitrio95/bugfix/score_browser_single_click_crash-2
fix #272995: avoid handling single clicks twice in ScoreBrowser
Fixed in branch 3.0alpha2, commit 302a47f65f
Merge pull request #4075 from dmitrio95/bugfix/score_browser_single_click_crash-2
fix #272995: avoid handling single clicks twice in ScoreBrowser
Automatically closed -- issue fixed for 2 weeks with no activity.