libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.15k stars 1.82k forks source link

appimage fails to launch with Vulkan on non-Ubuntu linux #16496

Open sillyspiel opened 5 months ago

sillyspiel commented 5 months ago

First and foremost consider this:

Description

appimage fails to launch with Vulkan on non-Ubuntu linux

retroarch should launch with video_driver set to Vulkan

changing the video driver to Vulkan via config file causes RA to fail to launch

I've tested this on openSUSE Tumbleweed, Fedora 40, LMDE 6, and Debian Bookworm and all have the same problem. Working fine on Mint 21.3 and Ubuntu 24.04. Will work if video driver set to GL.

Output:

$ ./RetroArch-Linux-x86_64.AppImage --verbose
Setting $HOME to /home/liveuser/Downloads/RetroArch_Qt/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home
[INFO] [Config]: Looking for config in: "/home/liveuser/Downloads/RetroArch_Qt/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/retroarch.cfg".
[INFO] RetroArch 1.18.0 (Git d55f95f)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX 
[INFO] Version: 1.18.0
[INFO] Git: d55f95f
[INFO] Built: May  4 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[ERROR] Couldn't find any cloud sync driver named ""
[INFO] Available cloud sync drivers are:
[INFO]  webdav
[INFO]  null
[WARN] Going to default to first cloud sync driver...
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz.
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Set video size to: 960x720.
[INFO] [Wayland]: Compositor doesn't support zxdg_decoration_manager_v1 protocol
[INFO] [Wayland]: fractional_scale_v1 enabled
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[ERROR] [Vulkan]: Could not find instance extensions. Will attempt without them.
[ERROR] [Vulkan]: Instance does not support required extensions.
[ERROR] Failed to create Vulkan instance.
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[ERROR] [Vulkan]: Could not find instance extensions. Will attempt without them.
[ERROR] [Vulkan]: Instance does not support required extensions.
[ERROR] Failed to create Vulkan instance.
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[ERROR] [Vulkan]: Could not find instance extensions. Will attempt without them.
[ERROR] [Vulkan]: Instance does not support required extensions.
[ERROR] Failed to create Vulkan instance.
[ERROR] [Vulkan]: Failed to create Vulkan context.
[INFO] [Vulkan]: Found vulkan context: "null".
[INFO] [Vulkan]: Detecting screen resolution: 320x240.
[INFO] [Vulkan]: Using resolution 320x240.
[ERROR] [Vulkan]: Failed to get context data.
[ERROR] [Video]: Cannot open video driver.. Exiting..
[ERROR] Fatal error received in: "video_driver_init_internal()"
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..

Steps to reproduce the bug

  1. download retroarch appimage package
  2. run appimage
  3. close and change video driver to vulkan in spawned config file
  4. try to run appimage again
  5. run from terminal with --verbose flag

Environment information

hizzlekizzle commented 5 months ago

same issue? https://github.com/libretro/RetroArch/issues/13714

sillyspiel commented 5 months ago

same issue? #13714

Quite possibly. In my case different GPU though (Intel).

sillyspiel commented 5 months ago

Further testing: same thing happens on openSUSE Tumbleweed with RA installed from repos via zypper.


gecko@localhost:~> retroarch --verbose
[INFO] [Config]: Looking for config in: "/home/gecko/.config/retroarch/retroarch.cfg".
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2 
[INFO] Version: 1.18.0
[INFO] Built: Mar 23 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz.
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Set video size to: fullscreen.
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[ERROR] [Vulkan]: Could not find instance extensions. Will attempt without them.
[ERROR] [Vulkan]: Instance does not support required extensions.
[ERROR] Failed to create Vulkan instance.
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[ERROR] [Vulkan]: Could not find instance extensions. Will attempt without them.
[ERROR] [Vulkan]: Instance does not support required extensions.
[ERROR] Failed to create Vulkan instance.
[ERROR] [Vulkan]: Failed to create Vulkan context.
[INFO] [Vulkan]: Found vulkan context: "null".
[INFO] [Vulkan]: Detecting screen resolution: 320x240.
[INFO] [Vulkan]: Using resolution 320x240.
[ERROR] [Vulkan]: Failed to get context data.
[ERROR] [Video]: Cannot open video driver.. Exiting..
[ERROR] Fatal error received in: "video_driver_init_internal()"
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..