You are not logged in.

#1 2019-11-21 12:32:20

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

[SOLVED] libx11 locales missing makes retroarch crash

EDIT
Topic has been changed to reflect the findings that solved the issue
/EDIT

Hi, i'm unable to use anything that needs 3d with retroarch; menu included.

Whet i get is:

[INFO] RetroArch 1.8.1 (Git bfdc8e6a62)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
[INFO] Capabilities:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX
[INFO] Built: Nov  4 2019
[INFO] Version: 1.8.1
[INFO] Git: bfdc8e6a62
[INFO] =================================================
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ 640x480
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 3840x1080.
[INFO] [GLX]: Window manager is KWin.
[INFO] [GLX]: X = 0, Y = 0, W = 640, H = 480.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(1)
[ERROR] [X11]: Failed to open input method.
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 2.
[INFO] [XINERAMA]: Saved monitor #0.
[ERROR] [Video]: Cannot open video driver ... Exiting ...
[ERROR] Fatal error received in: "init_video()"

Unfortunately it exits "cleanly" (no segfault), but i found a way to have a backtrace.
If i set driver to sdl2 and then open a core that needs 3d, it switches to opengl and then segfaults.

This is with even older retroarch versions; so i builded it from git without stripping symbols and that is what gdb tells me:

Thread 1 "retroarch" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt full
#0  0x0000000000000000 in ?? ()
No symbol table info available.
#1  0x00005555558d9722 in gl_core_destroy_resources ()
No symbol table info available.
#2  0x00005555558daaf2 in gl_core_init ()
No symbol table info available.
#3  0x000055555564389b in drivers_init ()
No symbol table info available.
#4  0x0000555555652d9a in retroarch_main_init ()
No symbol table info available.
#5  0x0000555555661196 in content_load ()
No symbol table info available.
#6  0x0000555555662208 in task_push_load_content_with_new_core_from_menu ()
No symbol table info available.
#7  0x000055555584c36f in file_load_with_detect_core_wrapper.constprop ()
No symbol table info available.
#8  0x0000555555887ded in generic_menu_entry_action ()
No symbol table info available.
#9  0x000055555588759c in generic_menu_iterate ()
No symbol table info available.
#10 0x00005555558176aa in menu_driver_iterate ()
No symbol table info available.
#11 0x000055555564ddd0 in runloop_check_state ()
No symbol table info available.
#12 0x000055555564fa8a in runloop_iterate ()
No symbol table info available.
#13 0x0000555555650928 in rarch_main ()
No symbol table info available.
#14 0x00007ffff2523153 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#15 0x00005555556277fe in _start ()
No symbol table info available.

Vulkan crashes as well:

[INFO] RetroArch 1.8.1 (Git 33206b8847)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
[INFO] Capabilities:  MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE4.2 AES AVX
[INFO] Built: Nov 21 2019
[INFO] Version: 1.8.1
[INFO] Git: 33206b8847
[INFO] =================================================
[New Thread 0x7fffebb14700 (LWP 57721)]
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ 640x480
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] Vulkan dynamic library loaded.
[INFO] [Vulkan]: Found vulkan context: x
[INFO] [Vulkan]: Detecting screen resolution 3840x1080.
[INFO] [GLX]: Window manager is KWin.
[INFO] [GLX]: X = 0, Y = 0, W = 640, H = 480.
[INFO] [Vulkan]: Found GPU at index 0: GeForce GTX 1050 Ti
[INFO] [Vulkan]: Using GPU index 0.
[INFO] [Vulkan]: Using GPU: GeForce GTX 1050 Ti
[INFO] [Vulkan]: Queue family 0 supports 16 sub-queues.
[INFO] [Vulkan]: Swapchain supports present mode: 2.
[INFO] [Vulkan]: Swapchain supports present mode: 3.
[INFO] [Vulkan]: Swapchain supports present mode: 0.
[INFO] [Vulkan]: Creating swapchain with present mode: 0
[INFO] [Vulkan]: Using swapchain size 640 x 480.
[INFO] [Vulkan]: Got 3 swapchain images.
[ERROR] [X11]: Failed to open input method.
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 2.
[INFO] [XINERAMA]: Saved monitor #0.
[ERROR] [Vulkan]: Failed to set video mode.
[ERROR] [Video]: Cannot open video driver ... Exiting ...
[ERROR] Fatal error received in: "init_video()"

What I've tried that DOES work:
* run via flatpak
* run via snapd

What I've tried that does NOT work:
* switch to vulkan
* run it under another user without any retroarch personal config file.
* running the retroarch binary from debian package
* Using all needed libraries from flatpack (retroarch works there)
* run as root
* run in a bare 3d capable systemd nspawn container (with base nvidia lib32-nvidia-utils lib32-opencl-nvidia nvidia-cg-toolkit nvidia nvidia-settings nvidia-utils opencl-nvidia retroarch)
* get rid of any Xorg configuration and running a bare twm session
* run via virtualgl (yes, i'm really running out of ideas)

System info:
gpu: nvidia 1050ti running 440.31-2 drivers
pacman -Q:  http://sprunge.us/ek5i8Y
/var/log/Xorg.0.log:  http://sprunge.us/0uVbh0
journalctl -b: http://sprunge.us/I8GG2E

What could it be? Anyone facing the same issue?

Last edited by kokoko3k (2019-11-22 12:49:37)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2019-11-21 15:22:37

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: [SOLVED] libx11 locales missing makes retroarch crash

Ok, i'm about to give up.
Since it does not work in an arch systemd container, but do work with snap and flatpak, i think the problems comes from arch.
Can anybody test retoarch in opengl with an updated system so that i will not open an useless bug report?
-EDIT-
My duck isn'helping today.

I installed another systemd container by using packages from long time ago via archlinux archive (but keeping the gpu drivers updated for compatibility with the host system... since they work in flatpak, i think they should even here, right?) and it fails the same exact way.

Last edited by kokoko3k (2019-11-21 15:53:15)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#3 2019-11-21 20:10:15

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] libx11 locales missing makes retroarch crash

I don't know how flatpak / snap handle videodrivers, but there have recently been several threads about problems with nvidia cards and 440.31 .

Could you try with 435.21 version ?

Last edited by Lone_Wolf (2019-11-21 20:10:32)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2019-11-21 20:17:54

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: [SOLVED] libx11 locales missing makes retroarch crash

Thanks, but already done; i updated them and the system after getting the crash.
Anyway the containers needs the userspace part ofnthe videodriver to match the kernel driver running on the real metal.

Tomorrow i'll get another session on that, but focusing on:

[ERROR] [X11]: Failed to open input method.

maybe the source of the error is that and other messages are misleading... but I really don't know anything about Xorg input methods.
Time to learn i guess...


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#5 2019-11-21 20:29:12

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] libx11 locales missing makes retroarch crash

Maybe some kind of permission error, what is the output of loginctl session-status run as user in a X session ?

https://wiki.archlinux.org/index.php/Re … ot_operate looks like it may be relevant, although it suggests it should work under xorg.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2019-11-22 12:09:13

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: [SOLVED] libx11 locales missing makes retroarch crash

As i tried with root too, i can exclude permission errors.
I think the error message refers to:
https://en.wikipedia.org/wiki/X_Input_Method

I played with them years ago (this installation is more than 10 years old), but i can't remember what i did; maybe i left my system 'dirty' somehow.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#7 2019-11-22 12:47:57

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,393

Re: [SOLVED] libx11 locales missing makes retroarch crash

SOLVED,
I was missing some files from /usr/share/X11/locale/
But he issue is deeper than this, i'll open another thread about it, because i think it is an arch issue.

Here we go:
https://bbs.archlinux.org/viewtopic.php … 9#p1874239

Last edited by kokoko3k (2019-11-22 13:01:18)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB