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]: YTM opening and Music playing but no window on Wayland #2977

Open
5 tasks done
SHU-red opened this issue Feb 12, 2025 · 6 comments
Open
5 tasks done

[Bug]: YTM opening and Music playing but no window on Wayland #2977

SHU-red opened this issue Feb 12, 2025 · 6 comments

Comments

@SHU-red
Copy link

SHU-red commented Feb 12, 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

FedoraFedora Linux 41 (Workstation Edition) x86_64

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Open YTM
No matter if rpm or appimage installation

Expected Behavior

window can be seen

Actual Behavior

window can not be seen but music is playing and with killall youtube-music is stopping

Enabled plugins

none

Additional Information

Using

  • Fedora 41
  • Wayland
  • Hyprland
shured@fedora ~/AppImages> ./youtube_music.appimage
[YTMusic] i18n loaded
[YTMusic] Loading all plugins
[YTMusic] Plugin adblocker::backend executed at 0.98ms
[YTMusic] Plugin api-server::backend executed at 2.91ms
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[YTMusic] Plugin "api-server::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[276270:0212/184738.150494:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276270:0212/184738.150554:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276270:0212/184738.150587:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276270:0212/184738.150632:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276270:0212/184738.150670:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276270:0212/184738.150700:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276270:0212/184738.150731:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276270:0212/184738.150762:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276270:0212/184738.150792:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276270:0212/184738.155431:ERROR:shared_image_manager.cc(249)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[276270:0212/184738.155508:ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[276221:0212/184738.162834:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
[276482:0212/184738.330371:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276482:0212/184738.330430:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276482:0212/184738.330466:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276482:0212/184738.330509:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276482:0212/184738.330540:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276482:0212/184738.330571:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276482:0212/184738.330600:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276482:0212/184738.330630:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276482:0212/184738.330659:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276482:0212/184738.330704:ERROR:shared_image_manager.cc(249)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[276482:0212/184738.330764:ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[276221:0212/184738.337171:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
[276601:0212/184738.513319:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276601:0212/184738.513370:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276601:0212/184738.513401:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276601:0212/184738.513438:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276601:0212/184738.513467:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276601:0212/184738.513493:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276601:0212/184738.513521:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[276601:0212/184738.513548:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[276601:0212/184738.513573:ERROR:shared_image_factory.cc(876)] CreateSharedImage: could not create backing.
[276601:0212/184738.513609:ERROR:shared_image_manager.cc(249)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[276601:0212/184738.513658:ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[276221:0212/184738.519711:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
Checking for update
Update for version 3.7.2 is not available (latest version: 3.7.2, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null
shured@fedora ~> fastfetch
             .',;::::;,'.
         .';:cccccccccccc:;,.
      .;cccccccccccccccccccccc;.
    .:cccccccccccccccccccccccccc:.
  .;ccccccccccccc;.:dddl:.;ccccccc;.
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:.
,cccccccccccccc;MMM.;cc;;WW:;cccccccc,
:cccccccccccccc;MMM.;cccccccccccccccc:    shured@fedora
:ccccccc;oxOOOo;MMM000k.;cccccccccccc:    -------------
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc;    OS: Fedora Linux 41 (Workstation Edition) x86_64
ccccc;XMO';cccc;MMM.;cccccccccccccccc'    Host: MS-7E27 (1.0)
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;     Kernel: Linux 6.12.11-200.fc41.x86_64
ccccc;0MNc.ccc.xMMd;ccccccccccccccc;      Uptime: 21 mins
cccccc;dNMWXXXWM0:;cccccccccccccc:,       Packages: 2763 (rpm), 31 (flatpak), 6 (snap), 153 (brew)
cccccccc;.:odl:.;cccccccccccccc:,.        Shell: fish 3.7.0
ccccccccccccccccccccccccccccc:'.          Display (LG ULTRAWIDE): 3440x1440 @ 50 Hz in 34" [External]
:ccccccccccccccccccccccc:;,..             WM: Hyprland 0.44.1 (Wayland)
 ':cccccccccccccccc::;,.                  Cursor: Adwaita
                                          Terminal: ghostty 1.1.0-1.fc41
                                          Terminal Font: JetBrainsMono Nerd Font (13pt)
                                          CPU: AMD Ryzen 5 7600X (12) @ 5.45 GHz
                                          GPU 1: NVIDIA GeForce RTX 3050 6GB [Discrete]
                                          GPU 2: AMD Raphael [Integrated]
                                          Memory: 7.78 GiB / 30.45 GiB (26%)
                                          Swap: 0 B / 8.00 GiB (0%)
                                          Disk (/): 257.63 GiB / 1.82 TiB (14%) - btrfs
                                          Local IP (enp12s0): 192.168.178.20/24
                                          Locale: en_US.UTF-8
shured@fedora ~> nvidia-smi
Wed Feb 12 18:51:01 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.77                 Driver Version: 565.77         CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050        Off |   00000000:01:00.0  On |                  N/A |
| 41%   55C    P0             23W /   70W |    1979MiB /   6144MiB |      7%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      3071      G   Hyprland                                      384MiB |
|    0   N/A  N/A      3320      G   ghostty                                        76MiB |
|    0   N/A  N/A      3347    C+G   walker                                         93MiB |
|    0   N/A  N/A      3543      G   Xwayland                                        2MiB |
|    0   N/A  N/A      4463      G   ...erProcess --variations-seed-version        793MiB |
|    0   N/A  N/A     10335      G   ghostty                                        37MiB |
|    0   N/A  N/A     28142      G   /app/zen/zen                                  198MiB |
|    0   N/A  N/A    198843    C+G   /usr/bin/python3                               23MiB |
|    0   N/A  N/A    208105      G   /usr/bin/nextcloud                              1MiB |
|    0   N/A  N/A    240797      G   ghostty                                        33MiB |
|    0   N/A  N/A    331645      G   ghostty                                        36MiB |
|    0   N/A  N/A    331759      G   ghostty                                        18MiB |
+-----------------------------------------------------------------------------------------+
@ugly-custard
Copy link

Similar problem, I think.
The app opens, plays the song right when it spawns, but the UI is blank, pure black, for a minute or so and then loads the UI (only when I have the window/workspace on focus, if its not, its still blank till I get back to it).

At least shows the App to me unlike the SHU-red tho.

I use a custom theme if it matters but it should at least show the UI and then apply the theme, as it did before for me.
I spawn ytm with youtube-music --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform=wayland.

On arch linux, hyprland, using aur/youtube-music-bin.

@ArjixWasTaken
Copy link
Contributor

Sounds like a GPU driver issue to me, have you disabled hardware acceleration?

@ugly-custard
Copy link

I tried disabling hardware acceleration, still the same.

Actually, I can reproduce this now that I tried it a few times:

  • spawn the app
  • the UI is blank
  • change focus and come back to it
  • it loads the UI
recording_2025-02-21_22-58-58.mp4

Anything I can try to help with debugging it?
Doesn't really bother me, I just live with it now since it at least plays music lol

@SHU-red
Copy link
Author

SHU-red commented Feb 21, 2025

For me it's not a very good situation since I can only start it or kill it via console

So the music just plays and I can not change anything 😁

But could also be a hyprland issue

@SHU-red
Copy link
Author

SHU-red commented Feb 23, 2025

I spawn ytm with youtube-music --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform=wayland.

OK,

  1. i did not know that these flags also work with appimage versions (i use)
  2. using these flags fixes my problem
  3. i was confused because i did not change anyhting but the behavior changed

So using these flags seems to fix my problems, nevertheless its annoying to use them for "manually" starting ytm

For now i just will add them to my hyprland config for "autostart" of ytm

Thanks everyone
Not sure if this is done now and anyways a hyprland topic?

@ugly-custard
Copy link

nevertheless its annoying to use them for "manually" starting ytm

these are electron flags, ya gotta use it with every electron app to run under native wayland
until electron supports native wayland (and your app updates to the that electron version)

as for my case, it seems not using the flags, running it under xwayland, fixes it...? idk why
but it seems the issue isn't with the app itself, but with electron and wayland

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

3 participants