StefanLobbenmeier / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
1.58k stars 65 forks source link

AppImage Fails to Open #97

Open Virtus-2 opened 11 months ago

Virtus-2 commented 11 months ago

Bug Description If I try to start the app, "open-video-downloader.bin" opens instead (and nothing is displayed).

Steps to Reproduce the Behavior

  1. Go to 'Downloads'.
  2. Double-click on 'Open-Video-Downloader-2.5.4.AppImage'.

Screenshot Bug

Additional Info

Additional Context I've tried the 3 previous Open Video Downloader versions (2.5.0 - 2.5.3) and either the exact same problem occurs or nothing loads at all. This bug used to only happen in Wayland but for some reason it now does in X11 too.

Any help is appreciated. I couldn't find the solution or cause of the problem on my own.

StefanLobbenmeier commented 11 months ago

Can you try starting it in the terminal to get some more logs on what might be wrong? Usually opening a terminal and dragging the application into it, then pressing enter should do the trick

Virtus-2 commented 11 months ago

Of course. The terminal gives no output at all on X11 and here's what the terminal on the Wayland session shows:

[14414:0105/145510.166621:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT [14414:0105/145510.168188:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ [14414:0105/145510.168329:ERROR:shared_image_factory.cc(751)] CreateSharedImage: could not create backing. [14414:0105/145510.168403:ERROR:shared_image_factory.cc(604)] DestroySharedImage: Could not find shared image mailbox [14414:0105/145510.168502:ERROR:gpu_service_impl.cc(1054)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly. [14383:0105/145510.181400:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=8704 [14434:0105/145510.330777:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [14450:0105/145510.374489:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT [14450:0105/145510.375947:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ [14450:0105/145510.376119:ERROR:shared_image_factory.cc(751)] CreateSharedImage: could not create backing. [14450:0105/145510.376209:ERROR:shared_image_factory.cc(604)] DestroySharedImage: Could not find shared image mailbox [14450:0105/145510.376362:ERROR:gpu_service_impl.cc(1054)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly. [14434:0105/145510.379724:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [14383:0105/145510.396025:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=8704 [14460:0105/145510.539010:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT [14460:0105/145510.540737:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ [14460:0105/145510.540910:ERROR:shared_image_factory.cc(751)] CreateSharedImage: could not create backing. [14460:0105/145510.540983:ERROR:shared_image_factory.cc(604)] DestroySharedImage: Could not find shared image mailbox [14460:0105/145510.541107:ERROR:gpu_service_impl.cc(1054)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly. [14434:0105/145510.544612:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [14383:0105/145510.555513:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=8704 [14434:0105/145510.684901:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. Checking for update Checking for a new version of ffmpeg. Current ffmpeg version: 4.4.1and usage=SCANOUT ffmpeg was already up-to-date! Version: 4.4.1 Checking for a new version of yt-dlp. Current yt-dlp version: 2023.12.30 Binaries were already up-to-date! Version: 2023.12.30 No tasks to restore. Update for version 2.5.4 is not available (latest version: 2.5.4, downgrade is disallowed).

StefanLobbenmeier commented 11 months ago

Hmm weird, but at least something to google.

We (@Cl00e9ment) introduced Wayland support in https://github.com/StefanLobbenmeier/youtube-dl-gui/pull/71, you could try a version from 2.4.x which did not have Wayland support, maybe that is a workaround for now.

e.g. that one: https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/tag/v2.4.10

StefanLobbenmeier commented 11 months ago

This bug used to only happen in Wayland but for some reason it now does in X11 too.

you mean in 2.4.x this happened in Wayland?

also while we are at it, can you add your GPU information?

Virtus-2 commented 11 months ago

you could try a version from 2.4.x which did not have Wayland support, maybe that is a workaround for now.

It is. Version 2.4.10 works seemingly without issues on Wayland, thanks.

Virtus-2 commented 11 months ago

you mean in 2.4.x this happened in Wayland?

No, I meant that version 2.5.4 used to work on X11.

also while we are at it, can you add your GPU information?

Yes, it's an NVIDIA GeForce GTX 1070. I just noticed my GPU is not being used for rendering for some reason so I'll try to sort that out and see if that solves my problem.

Virtus-2 commented 10 months ago

Okay, so I solved my GPU issue but version 2.5.4 still doesn't load properly. The GPU is using NVIDIA's proprietary drivers by the way. Now, at a glance, the terminal gives me a slightly different error message:

[18836:0113/231629.162620:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [18836:0113/231629.162809:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT [18836:0113/231629.163082:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [18836:0113/231629.163185:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ [18836:0113/231629.163380:ERROR:shared_image_factory.cc(751)] CreateSharedImage: could not create backing. [18836:0113/231629.163502:ERROR:shared_image_factory.cc(604)] DestroySharedImage: Could not find shared image mailbox [18836:0113/231629.163628:ERROR:gpu_service_impl.cc(1054)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly. [18807:0113/231629.171992:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=8704 [18855:0113/231629.306113:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [18871:0113/231629.407169:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [18871:0113/231629.408002:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT [18871:0113/231629.408294:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [18871:0113/231629.408366:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ [18871:0113/231629.408462:ERROR:shared_image_factory.cc(751)] CreateSharedImage: could not create backing. [18871:0113/231629.408563:ERROR:shared_image_factory.cc(604)] DestroySharedImage: Could not find shared image mailbox [18871:0113/231629.408666:ERROR:gpu_service_impl.cc(1054)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly. [18855:0113/231629.412968:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [18807:0113/231629.416855:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=8704 [18880:0113/231629.603073:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [18880:0113/231629.603182:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT [18880:0113/231629.603326:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [18880:0113/231629.603396:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ [18880:0113/231629.603443:ERROR:shared_image_factory.cc(751)] CreateSharedImage: could not create backing. [18880:0113/231629.603487:ERROR:shared_image_factory.cc(604)] DestroySharedImage: Could not find shared image mailbox [18880:0113/231629.603554:ERROR:gpu_service_impl.cc(1054)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly. [18855:0113/231629.607740:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [18807:0113/231629.611290:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=8704 [18855:0113/231629.780455:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. Checking for update Checking for a new version of ffmpeg. Current ffmpeg version: 4.4.1 ffmpeg was already up-to-date! Version: 4.4.1 Checking for a new version of yt-dlp. Current yt-dlp version: 2023.12.30 Binaries were already up-to-date! Version: 2023.12.30 No tasks to restore. Update for version 2.5.4 is not available (latest version: 2.5.4, downgrade is disallowed).

I tried to find a fix by searching what the first error above means [Failed to export buffer to dma_buf: No such file or directory (2)] and all I could find that may be relevant is that the shader cache might be behind the problem but I don't know how to apply the possible solution. I read that here: https://discussion.fedoraproject.org/t/vscode-broken/95911

StefanLobbenmeier commented 10 months ago

I see, nice find. From what I coudl read in the linked discussion it seems to be some issue in chromium. This app is based on electron, which is based on chromium.

Probably the best I can do here is wait a bit and then update all the dependencies to the latest version in hope that this fixes your issue as well

Virtus-2 commented 10 months ago

Alright. Thanks for taking the time to look into this issue.