MuseScore
MuseScore copied to clipboard
[MU4 Issue] Black flash when displaying tooltips and menus on Linux
Describe the bug Before tooltips and menus are displayed on Linux, there is a very jarring black flash. This is especially noticeable when switching between menus.
To Reproduce Steps to reproduce the behavior:
- Open a toolbar menu, context menu, or trigger a tooltip.
- Observe the black flash shown before the menu appears.
Expected behavior That the menu should immediately appear without a flash.
Screenshots
https://user-images.githubusercontent.com/47158068/148470764-ceb6b02b-6df4-459f-8765-e3339dc398e6.mov
Static frames from the video

Desktop:
Linux 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux.- Reproduced in the latest nightly build.
Additional context The application header (the "MuseScore4Development" in the top bar) is flickering in and out, seemingly at random; could this be related?
@llui85 Can you check the latest nightly build? Does the bug still reproduce?
@Eism Sorry for the late reply! Yes, this issue can still be reproduced on the latest nightly.
Still reproducible in nightly.
Still reproducible in the first alpha.
@llui85 Please recheck on the latest nightly build
@Eism Still reproducible in the latest nightly. Let me know if I can do anything to aid debugging. I just did a bit of testing, and it looks like it's only reproducible under Wayland, not X11.
https://user-images.githubusercontent.com/47158068/165479308-36363937-d2e9-4a3c-8cb3-de602e1dd2c6.mov
@Eism This seems to be partially fixed by your changes in #11750. I will test further over the next few days.
@llui85 Good news! Please let me know what it looks like on master? When you're ready
@Eism Here's a screen recording of what it looks like now. It's not from master as the nightly build hasn't been updated yet, but here's what it looks like on the build from efaefe5
https://user-images.githubusercontent.com/47158068/171846454-b1b9c180-dcdb-475b-a5d9-f66a712f21ff.mov
As you can see, the black flash still exists to a certain degree, but is much less noticeable and only appears the first time in most cases. It's still a bit noticeable at 0:48 in the inspector popover, but I'm not sure if you touched that in your PR.
Also, not visible in screen recording, but context menus are fine now too.
Hello @llui85! Thanks for testing
Could you test the build from this PR? https://github.com/musescore/MuseScore/pull/11878
Since the issue is significantly improved and not a general Linux issue, I'm changing it to a P3.
Hello there I am testing the latest nightly but I am not able to see any flickering in the appmenu
I would like to know if this issue is still valid ?
Hello there I am testing the latest nightly but I am not able to see any flickering in the appmenu
I would like to know if this issue is still valid ?
@llui85 Could you please re-test again, and close the issue if it's fixed?
@cbjeukendrup Apologies for the delay in getting back to you on this - yes, this is still an issue in the latest nightly.
@Da-Viper That's odd - are you using Wayland?
I am experiencing this in Ubuntu 22.04.2 LTS