flathub / org.libretro.RetroArch

https://flathub.org/apps/details/org.libretro.RetroArch
Creative Commons Zero v1.0 Universal
18 stars 16 forks source link

RetroArch closes itself when launching in Vulkan rendering [AMDGPU] #217

Open KayKay91 opened 2 years ago

KayKay91 commented 2 years ago

The Problem

After installing RetroArch from the Flathub i've noticed that it uses Vulkan rendering by default which is more convenient as it provides a much better performance for me, however upon running it nothing happens.

Both Steam and the package manager versions runs fine on it.

PC Specifications

CPU: AMD Ryzen 7 3700X Graphics Card/Driver: AMD RX 5700 XT (Sapphire Pulse model)/Using Mesa 22.0-rc2 Linux Distribution: ArchLinux RAM: 2x8GB (16 GB total) DDR4 3200 MHz Linux kernel: TkG CFS 5.16.10 Flatpak Version: 1.12.5

Log from --verbose

[INFO] [Config]: Loading default config. [INFO] [Config]: Looking for config in: "/home/kayx291/.var/app/org.libretro.RetroArch/config/retroarch/retroarch.cfg". [INFO] RetroArch 1.10.0 (Git a14dcfa) [INFO] === Build ======================================= [INFO] CPU Model Name: AMD Ryzen 7 3700X 8-Core Processor
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX AVX2 [INFO] Built: Jan 20 2022 [INFO] Version: 1.10.0 [INFO] Git: a14dcfa [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] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Set video size to: 960x720. [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] Failed to create Vulkan instance (-9). [INFO] [Vulkan]: Vulkan dynamic library loaded. [ERROR] [Vulkan]: Could not find instance extensions. Will attempt without them. [ERROR] Failed to create Vulkan instance (-9). [ERROR] [Vulkan]: Failed to create Vulkan context. [WARN] Failed to bind API (#9, version 1.0) on context driver "wayland". [WARN] Failed to bind API (#9, version 1.0) on context driver "x". [WARN] Failed to bind API (#9, version 1.0) on context driver "egl_x". [WARN] Failed to bind API (#9, version 1.0) on context driver "kms". [WARN] Failed to bind API (#9, version 1.0) on context driver "gl_sdl". [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..

RobLoach commented 2 years ago

Thanks for opening this one! Know if you're using Wayland on this too?

KayKay91 commented 2 years ago

Yeah this happened on Wayland in Plasma 5.24 .

Additionally i've been checking other software in Flatpak such as Bottles and VulkanInfo and noticed that in both of these, they also cannot even detect Vulkan at all. Complaining over the missing JSON files.

EDIT: Here is a log from flatpak -v org.freedesktop.VulkanInfo

[kayx291@PC-Boi ~]$ flatpak -v run org.freedesktop.Platform.VulkanInfo F: No installations directory in /etc/flatpak/installations.d. Skipping F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /home/kayx291/.local/share/flatpak F: Opening user flatpak installation at path /home/kayx291/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /home/kayx291/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak F: /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/7eae5cd0909215ab896309abf9c6716875f0d012c84f73d44ddd1163a1de286d/files/lib32 does not exist F: Cleaning up unused container id 2975838432 F: Cleaning up per-app-ID state for org.freedesktop.Platform.VulkanInfo F: Allocated instance id 2706509626 F: Add defaults in dir /org/freedesktop/Platform/VulkanInfo/ F: Add locks in dir /org/freedesktop/Platform/VulkanInfo/ F: Disallowing network access F: Allowing dri access F: skipping export for path /usr/share/fonts F: skipping export for path /usr/share/themes F: skipping export for path /usr/share/icons F: Allowing wayland access F: Allowing x11 access F: Running 'bwrap --args 39 xdg-dbus-proxy --args=42' F: Running 'bwrap --args 39 vulkaninfo' ERROR: [Loader Message] Code 0 : loader_get_json: Failed to open JSON file /usr/share/vulkan/icd.d/radeon_icd.i686.json ERROR: [Loader Message] Code 0 : loader_get_json: Failed to open JSON file /usr/share/vulkan/icd.d/radeon_icd.x86_64.json Cannot create Vulkan instance. This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan. ERROR at /buildstream/freedesktop-sdk/extensions/vulkaninfo/vulkan-tools.bst/vulkaninfo/vulkaninfo.h:687:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER