Crash when clearing palette cell with filter active
WIndows 10, GIT commit: 3543170
1) Use custom workspace with Clefs palette enabled for editing
2) Filter palette on "treble"
3) Clear a palette cell
Result: crash
Crash occurs while painting the palette, I believe the dragCells still has a copy of the now-cleared cell we are now drawing garbage.
I can also get crashes with other steps involving other sequences involving filter, clearing, and adding. I suspect there are other places where dragCells versus cell is not being managed correctly.
Comments
I would suggest to disable the edition of a palette when the palette is filtered.
What do you think?
Actually, I wonder if we should keep the palettes heading when filtered.
Disabling editing while filtered makes a lot of sense indeed. Not quite sure what you mean about the heading - you mean, don't show the title bars for each individual palette within the palette window? Or not show the title of the palette window itself? I kind of like that we can still see the structure, so if I search for a symbol using the filter, I know where to find it later.
Changed priority since crash is here.
https://github.com/musescore/MuseScore/pull/3685
Fixed in branch master, commit 8498f907c2
fix #224121: Crash when clearing palette cell with filter active
Fixed in branch master, commit fa17f01af0
Merge pull request #3685 from Soerboe/224121_crash_when_clearing_palette_when_filtered
fix #224121: Crash when clearing palette cell with filter active
Automatically closed -- issue fixed for 2 weeks with no activity.