libretro / RetroArch

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

flatpak crash on boot #16695

Closed meunierd closed 2 months ago

meunierd commented 3 months ago

First and foremost consider this:

Started crashing on boot today. Output from a new config posted below.

Description

> flatpak run org.libretro.RetroArch --verbose

WARN] [Config]: Using skeleton config "/app/etc/retroarch.cfg" as base for a new config file.
[WARN] [Config]: Created new config file in: "/home/meunierd/.var/app/org.libretro.RetroArch/config/retroarch/retroarch.cfg".
[INFO] RetroArch 1.19.0 (Git 00b8a5f)
[INFO] === Build =======================================
[INFO] CPU Model Name: AMD Ryzen 5 7640U w/ Radeon 760M Graphics      
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2 
[INFO] Version: 1.19.0
[INFO] Git: 00b8a5f
[INFO] Built: May 31 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.
[WARN] Failed to bind API (#1, version 3.2) on context driver "wayland".
[WARN] Failed to bind API (#1, version 3.2) on context driver "egl_x".
[WARN] Failed to bind API (#1, version 3.2) on context driver "kms".
[INFO] [SDL_GL] SDL 2.28.5 gfx context driver initialized.
[INFO] [GLCore]: Found GL context: "gl_sdl".
[INFO] [GLCore]: Detecting screen resolution: 2256x1504.
[WARN] [SDL_GL]: Failed to set video mode: Could not get EGL display

Setting the graphics driver to vulkan yields the following output:

[INFO] RetroArch 1.19.0 (Git 00b8a5f)
[INFO] === Build =======================================
[INFO] CPU Model Name: AMD Ryzen 5 7640U w/ Radeon 760M Graphics      
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2 
[INFO] Version: 1.19.0
[INFO] Git: 00b8a5f
[INFO] Built: May 31 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "sdl2".
[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: fullscreen.
[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 required 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 required 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..

Expected behavior

I expect RetroArch to boot into the UI,

Actual behavior

It crashes with a 139 status code.

Steps to reproduce the bug

flatpak run org.libretro.RetroArch

Bisect Results

[Try to bisect and tell us when this started happening]

Version/Commit

Environment information

CodexHere commented 2 months ago

Also getting this on default config (deleted entire /home/deck/.var/app/org.libretro.RetroArch path and ran):

flatpak run org.libretro.RetroArch -vvv
[INFO] [Config]: Looking for config in: "/home/deck/.var/app/org.libretro.RetroArch/config/retroarch/retroarch.cfg".
[INFO] RetroArch 1.19.1 (Git 0792144)
[INFO] === Build =======================================
[INFO] CPU Model Name: AMD Custom APU 0405
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2 
[INFO] Version: 1.19.1
[INFO] Git: 0792144
[INFO] Built: Jun 17 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.
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [DRM]: Found 2 connectors.
[INFO] [DRM]: Connector 0 connected: yes
[INFO] [DRM]: Connector 0 has 2 modes.
[INFO] [DRM]: Connector 0 assigned to monitor index: #1.
[INFO] [DRM]: Connector 1 connected: yes
[INFO] [DRM]: Connector 1 has 33 modes.
[INFO] [DRM]: Connector 1 assigned to monitor index: #2.
[WARN] [DRM]: Couldn't find DRM encoder.
[WARN] [DRM]: Couldn't get device resources.
[ERROR] [KMS]: Couldn't find a suitable DRM device.
[INFO] [SDL_GL] SDL 2.28.5 gfx context driver initialized.
[INFO] [GLCore]: Found GL context: "gl_sdl".
[INFO] [GLCore]: Detecting screen resolution: 1024x768.
[INFO] [GLCore]: Vendor: AMD, Renderer: AMD Custom GPU 0405 (radeonsi, vangogh, LLVM 17.0.6, DRM 3.54, 6.1.52-valve16-1-neptune-61).
[INFO] [GLCore]: Version: 4.6 (Compatibility Profile) Mesa 24.1.1 (git-6c377358a5).
[INFO] [GLCore]: Using resolution 960x720.
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.
[ERROR] [Video]: Cannot initialize input 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..

Running on SteamOS on the Steam Deck.


UPDATE:

Even though I've rebooted the device multiple times (full reboot, not just switching between gamescope and desktop mode), I did a full power down and power on, and RA started up again.

Not sure why it wasn't working before but it is now!

gouchi commented 2 months ago

Related issue on the RA Flatpak issue tracker.