MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

[MU4 Issue] Black flash when displaying tooltips and menus on Linux

Open llui85 opened this issue 3 years ago • 13 comments

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:

  1. Open a toolbar menu, context menu, or trigger a tooltip.
  2. 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

vlcsnap-2022-01-07-11h13m33s601 vlcsnap-2022-01-07-11h13m14s017 vlcsnap-2022-01-07-11h13m03s615

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 avatar Jan 07 '22 00:01 llui85

@llui85 Can you check the latest nightly build? Does the bug still reproduce?

Eism avatar Jan 19 '22 09:01 Eism

@Eism Sorry for the late reply! Yes, this issue can still be reproduced on the latest nightly.

llui85 avatar Jan 22 '22 06:01 llui85

Still reproducible in nightly.

llui85 avatar Feb 18 '22 23:02 llui85

Still reproducible in the first alpha.

llui85 avatar Mar 31 '22 07:03 llui85

@llui85 Please recheck on the latest nightly build

Eism avatar Apr 25 '22 17:04 Eism

@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

llui85 avatar Apr 27 '22 08:04 llui85

@Eism This seems to be partially fixed by your changes in #11750. I will test further over the next few days.

llui85 avatar Jun 03 '22 11:06 llui85

@llui85 Good news! Please let me know what it looks like on master? When you're ready

Eism avatar Jun 03 '22 11:06 Eism

@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.

llui85 avatar Jun 03 '22 11:06 llui85

Also, not visible in screen recording, but context menus are fine now too.

llui85 avatar Jun 03 '22 11:06 llui85

Hello @llui85! Thanks for testing

Could you test the build from this PR? https://github.com/musescore/MuseScore/pull/11878

Eism avatar Jun 07 '22 09:06 Eism

Since the issue is significantly improved and not a general Linux issue, I'm changing it to a P3.

Tantacrul avatar Jun 12 '22 17:06 Tantacrul

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 ?

da-viper avatar Dec 25 '22 16:12 da-viper

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 avatar Jan 21 '23 17:01 cbjeukendrup

@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?

llui85 avatar Feb 02 '23 11:02 llui85

I am experiencing this in Ubuntu 22.04.2 LTS

zacjansheski avatar Jun 13 '23 16:06 zacjansheski