Closed 65a closed 2 years ago
I also commented on https://github.com/libretro/dolphin/issues/165, but I'm not sure if this is the same bug. I sort of suspect KHR_Display problems which would tend toward Lakka specific. Thanks!
Please try the 3.4 release and report back
Στις Κυρ, 26 Σεπ 2021, 01:19 ο χρήστης 65a @.***> έγραψε:
I also commented on libretro/dolphin#165 https://github.com/libretro/dolphin/issues/165, but I'm not sure if this is the same bug. I sort of suspect KHR_Display problems which would tend toward Lakka specific. Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/libretro/Lakka-LibreELEC/issues/1507#issuecomment-927190360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQGQ5J5UKZ7DCNMFURRTCDUDZDHXANCNFSM5EYBODTQ .
3.4 not working is why I started trying nightly releases, so that has the same behavior.
Incidentally, here are the logs from Parallel-RDP (N64) working with Vulkan successfully. The crash in dolphin core (above) happens at approximately the time working cores seem to detect the GPU again (duplicated log lines), then say "Using semaphores for WSI acquire"
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[INFO] [Vulkan]: Found vulkan context: khr_display
[INFO] [Vulkan]: Detecting screen resolution 0x0.
[INFO] [Vulkan]: Found GPU at index 0: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4)
[INFO] [Vulkan]: Using GPU index 0.
[INFO] [Vulkan]: Found GPU at index 0: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4)
[INFO] [Vulkan]: Using GPU index 0.
[INFO] [Vulkan]: Using semaphores for WSI acquire.
[INFO] [Vulkan]: Using GPU: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4)
[INFO] [Vulkan]: Queue family 0 supports 1 sub-queues.
[INFO] [Vulkan]: Using resolution 1920x1080
[INFO] [Vulkan]: Using RGB565 format.
[INFO] [Vulkan]: Loading stock shader.
We need to investigate if the core is broken. 3.4 and nightly have the same version. Can you login to retroarch discord in lakka channel?
Στις Κυρ, 26 Σεπ 2021, 01:45 ο χρήστης 65a @.***> έγραψε:
3.4 not working is why I started trying nightly releases, so that has the same behavior.
Incidentally, here are the logs from Parallel-RDP (N64) working with Vulkan successfully. The crash in dolphin core (above) happens at approximately the time working cores say "Using semaphores for WSI acquire"
[INFO] [Vulkan]: Vulkan dynamic library loaded. [INFO] [Vulkan]: Found vulkan context: khr_display [INFO] [Vulkan]: Detecting screen resolution 0x0. [INFO] [Vulkan]: Found GPU at index 0: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4) [INFO] [Vulkan]: Using GPU index 0. [INFO] [Vulkan]: Found GPU at index 0: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4) [INFO] [Vulkan]: Using GPU index 0. [INFO] [Vulkan]: Using semaphores for WSI acquire. [INFO] [Vulkan]: Using GPU: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4) [INFO] [Vulkan]: Queue family 0 supports 1 sub-queues. [INFO] [Vulkan]: Using resolution 1920x1080 [INFO] [Vulkan]: Using RGB565 format. [INFO] [Vulkan]: Loading stock shader.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/libretro/Lakka-LibreELEC/issues/1507#issuecomment-927193870, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQGQ5JKXSVQONOSEA3AZKLUDZGJ7ANCNFSM5EYBODTQ .
Not a discord user. Seems core is broken, can reproduce this issue on Arch (not Lakka) with recent kernel and AMD graphics instead of intel.
Going to try a debug build on Arch and see if I can contribute a better stack trace to an issue for core.
Seeing what might be a similar failure on a Fedora 35 system on Wayland with Vulkan with a recent Retroarch build from source, and a nightly dolphin core.
[INFO] [Config]: Loading config from: "/home/joel/.config/retroarch/config/dolphin_libretro.cfg".
[INFO] RetroArch 1.9.12 (Git 80e7e1adde)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX AVX2
[INFO] Built: Oct 28 2021
[INFO] Version: 1.9.12
[INFO] Git: 80e7e1adde
[INFO] =================================================
[INFO] [Input]: Found input driver: "linuxraw".
[INFO] [Core]: Loading dynamic libretro core from: "/home/joel/.config/retroarch/cores/dolphin_libretro.so"
...
[INFO] [Environ]: GET_PREFERRED_HW_RENDER, video driver name: vulkan.
[INFO] [Environ]: GET_PREFERRED_HW_RENDER - Context callback set to RETRO_HW_CONTEXT_VULKAN.
[INFO] [Environ]: SET_HW_RENDER, context type: vulkan.
[INFO] Requesting Vulkan context.
[INFO] Reached end of SET_HW_RENDER.
[INFO] [Environ]: SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE.
...
[libretro INFO] 04:25:108 Core/Core.cpp:1049 N[COMMON]: Want determinism <- false
[libretro INFO] 04:25:108 Core/Core.cpp:239 I[BOOT]: Starting core = GameCube mode
[libretro INFO] 04:25:108 Core/Core.cpp:240 I[BOOT]: CPU Thread separate = Yes
[INFO] [Environ]: GET_RUMBLE_INTERFACE.
[INFO] [Environ]: SET_CONTROLLER_INFO.
[INFO] [SRAM]: Skipping SRAM load.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 32061.03 Hz.
[INFO] [Video]: Video @ fullscreen
[INFO] [Video]: Using HW render, vulkan driver forced.
[WARN] [Wayland]: Compositor doesn't support zwp_idle_inhibit_manager_v1 protocol!
[WARN] [Wayland]: Compositor doesn't support zxdg_decoration_manager_v1 protocol!
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[INFO] [Vulkan]: App: Dolphin-Emu (version 5)
[INFO] [Vulkan]: Engine: Dolphin-Emu (version 2)
[INFO] [Vulkan]: Found vulkan context: vk_wayland
[INFO] [Vulkan]: Detecting screen resolution 0x0.
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
Segmentation fault (core dumped)
This is happening with me as well. X99 Chipset - i7 6850k - Radeon 580X Latest Lakka Nightly as of this writing. Open GL results in a white screen with working sound and input (game is running) while vulkan automatically crashes and fails to load any content.
Yes, issue is still present in the most recent Lakka 4.x builds, nightlies.
So we might need to add VK_KHR_display
support like it has been added in PPSSPP so that it can work on DRM/KMS ?
That might be the case. I'm not familiar enough with Kms/DRM to confirm this properly. The core might have other issues currently. Did a quick check on my windows pc and it appears to segfault the same way as on lakka with vulkan. On Sat, 2 Apr 2022, 10:14 pm gouchi, @.***> wrote:
So we might need to add VK_KHR_display support like it has been added in PPSSPP https://github.com/hrydgard/ppsspp/commit/e3540ccd17193e131d42290a9dd4d6bca6e5f634 so that it can work DRM/KMS ?
— Reply to this email directly, view it on GitHub https://github.com/libretro/Lakka-LibreELEC/issues/1507#issuecomment-1086715157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE64Q4FYGS5HVJDTXURA65LVDCTA3ANCNFSM5EYBODTQ . You are receiving this because you commented.Message ID: @.***>
This is the current log info I have from the lakka/pi build.
[INFO] [SRAM]: Skipping SRAM load. [INFO] [Core]: Version of libretro API: 1, Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 32029.00 Hz. [INFO] [Video]: Timings deviate too much. Will not adjust. (Display = 60.00 Hz, Game = 50.00 Hz) [INFO] [Video]: Set video size to: fullscreen. [INFO] [Video]: Using HW render, vulkan driver forced. [INFO] [Vulkan]: Vulkan dynamic library loaded. [INFO] [Vulkan]: App: Dolphin-Emu (version 5) [INFO] [Vulkan]: Engine: Dolphin-Emu (version 2) [INFO] [Vulkan]: Found vulkan context: "khr_display". [INFO] [Vulkan]: Detecting screen resolution: 0x0. [INFO] [Vulkan]: Found GPU at index 0: "V3D 4.2". [INFO] [Vulkan]: Using GPU index 0. Segmentation fault
On Sat, Apr 2, 2022 at 10:50 PM Richard Visser @.***> wrote:
That might be the case. I'm not familiar enough with Kms/DRM to confirm this properly. The core might have other issues currently. Did a quick check on my windows pc and it appears to segfault the same way as on lakka with vulkan. On Sat, 2 Apr 2022, 10:14 pm gouchi, @.***> wrote:
So we might need to add VK_KHR_display support like it has been added in PPSSPP https://github.com/hrydgard/ppsspp/commit/e3540ccd17193e131d42290a9dd4d6bca6e5f634 so that it can work DRM/KMS ?
— Reply to this email directly, view it on GitHub https://github.com/libretro/Lakka-LibreELEC/issues/1507#issuecomment-1086715157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE64Q4FYGS5HVJDTXURA65LVDCTA3ANCNFSM5EYBODTQ . You are receiving this because you commented.Message ID: @.***>
vulkan should work now with dolphin in latest nightlies, can we confirm this please?
Didn't work for me on x86_64. Logs here.
This was on Lakka-Generic.x86_64-nightly-v4.x-20220422-c96aa36
Is maybe a mesa bug? I feel like it worked a while ago:
Lakka:~ # gdb retroarch
...
Reading symbols from retroarch...
(No debugging symbols found in retroarch)
(gdb) run
Starting program: /usr/bin/retroarch
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7f31ba6a6640 (LWP 1364)]
[New Thread 0x7f31b6ddd640 (LWP 1365)]
[New Thread 0x7f31b62f5640 (LWP 1366)]
[Detaching after vfork from child process 1367]
wifi is already enabled
[Detaching after vfork from child process 1368]
[Detaching after vfork from child process 1369]
[New Thread 0x7f31b53c5640 (LWP 1373)]
Thread 5 "retroarch" received signal SIG32, Real-time event 32.
[Switching to Thread 0x7f31b53c5640 (LWP 1373)]
0x00007f31bb1f7a3f in __GI___poll (fds=0x7f31b53c4d68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) bt full
#0 0x00007f31bb1f7a3f in __GI___poll (fds=0x7f31b53c4d68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
sc_ret = -516
sc_cancel_oldtype = 2
sc_ret = <optimized out>
#1 0x00007f31b90a4332 in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#2 0x00007f31bd25febe in start_thread (arg=0x7f31b53c5640) at pthread_create.c:463
ret = <optimized out>
pd = 0x7f31b53c5640
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139851470755392, 8316758680137598608, 140730062989550, 140730062989551, 0,
139851470755392, -8284259862452402544, -8284242049732475248}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0,
0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#3 0x00007f31bb201c8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
Closing down. Try the latest 4.x version and open a new one
Version: Lakka nightlies for past few weeks Hardware: Intel NUC Graphics: Intel(R) Iris(R) Pro Graphics 580 (SKL GT4) Resolution: 1920x1080
How to crash: Set video driver to Vulkan Set dolphin driver in dolphin.ini to Vulkan Disabled cores switching video driver
Launch any GameCube game Core crashes retroarch by causing segmentation fault / SIGSEGV
Notable logging output. Possibly unrelated, but Vulkan thinks the resolution is 0x0
thread apply all bt
Other vulkan cores work fine, including Parallel with angrylion.