Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Weird black/white pixel pattern blocking fullscreen (Linux:Wayland) #2960

Open
4 of 5 tasks
Svintooo opened this issue Feb 6, 2025 · 7 comments
Open
4 of 5 tasks

Comments

@Svintooo
Copy link

Svintooo commented Feb 6, 2025

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.7.2

Checklists

What operating system are you using?

Other Linux

Operating System Version

Arch Linux
Linux mycomputer 6.13.1-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 02 Feb 2025 01:02:11 +0000 x86_64 GNU/Linux

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Double-click on a video to make it fullscreen.

Expected Behavior

Video goes fullscreen.

Actual Behavior

Video goes fullscreen with a weird pixel pattern blocking the video.
Everything else seems to work.

Image

Enabled plugins

I tried disabling all plugins but problem still persists.

Additional Information

Note: I am eager to troubleshoot this myself. But I honestly do not know what can cause the issue. And I fail to find good search words to use when searching the Internet for similar problems.
Any tips would be great.

Further info:

  • Only happens in Wayland. Not in X.
  • Pattern is not visible in screenshots.
  • Problem is not present when I use Youtube Music in my web browser (Firefox).
  • Can reproduce the problem using YouTube-Music-3.7.2.AppImage.
  • Tried using different arguments but problem still occurs:
  • --enable-features=UseOzonePlatform --ozone-platform=wayland
  • --enable-features=UseOzonePlatform --ozone-platform-hint=auto
  • --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto

Desktop Environments:

  • Using KDE Plasma (X): No problem detected.
  • Using KDE Plasma (Wayland): Pattern shows up, but disappears if the mouse is hovering the video. Pattern returns when moving the mouse to another monitor.
  • Using Niri (Wayland): Pattern stays indefinitely.
@Svintooo
Copy link
Author

Svintooo commented Feb 6, 2025

I found out problem is not only with videos. Just making the app fullscreen (by pressing F11) triggers the weird pixel overlay. It overlays the whole app, not just the video.

@Svintooo
Copy link
Author

Svintooo commented Feb 6, 2025

Seems to be an electron issue.
Reproduced the problem by going into fullscreen in other electron apps such as vscode.

@Svintooo
Copy link
Author

Svintooo commented Feb 6, 2025

I think this may be due to Hardware Acceleration?

In vscode, problem disappears when starting with the following flag:
--disable-gpu-compositing.

But this flag does not work for me with youtube-music.
The app starts but without a window. The music I had on previously plays to the end, but the next song does not start playing.

@Svintooo
Copy link
Author

Svintooo commented Feb 6, 2025

Welp. I'm stuck. Tried a bunch of Linux kernel flags I found online but nothing worked.
Btw, I am using AMDGPU.

For me, everything points to this being an electron+wayland problem.

@h-banii
Copy link
Contributor

h-banii commented Feb 7, 2025

Seems to be an electron issue.
Reproduced the problem by going into fullscreen in other electron apps such as vscode.

it could also be an issue with chromium (version 132), it's worth trying to reproduce it there.

--disable-gpu-compositing.
But this flag does not work for me with youtube-music.

You could also disable hw accel through the option in the top menu. Or manually edit options.disableHardwareAcceleration in your ~/.config/YouTube Music/config.json file. I don't know if it'll make a difference though.

I'm also on amdgpu and wayland (Hyprland), but I don't have this problem. Hardware acceleration never worked on chromium/electron for me, so maybe that's why I can't repro.

@Svintooo
Copy link
Author

Svintooo commented Feb 8, 2025

Thanks for the feedback.

Disabling hw accel in youtube-music through top menu or through ~/.config/YouTube Music/config.json gives the same result as starting with --disable-gpu-compositing. That youtube-music starts with no window.

I now tried with two new apps:

In both the problem shows up when going into fullscreen by pressing F11.
And --disable-gpu-compositing makes the issue go away.

  • Chromium gets the problem 4 seconds after activating fullscreen.
  • Electron has a small delay when activating fullscreen for some reason that is not there when hw accel is off.

I will try to open an issue in Electron issue tracker.

@Svintooo
Copy link
Author

Svintooo commented Feb 8, 2025

Electron issue created: electron/electron#45534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants