You are not logged in.

#1 2019-07-24 12:59:54

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

[SOLVED] XIM related? Tropico 5 crashes as soon as i press a key

I'm pretty sure it worked in the past, but now, as soon as i press a key in the game, it crashes.
My system is fully updated and running plasma.

dmesg:

[167510.012225] Render[18160]: segfault at 4 ip 00000000f7b8a8a4 sp 00000000ffd509cc error 4 in libX11.so.6.3.0[f7b58000+8b000]

gdb:

koko@Gozer# gdb '/home/koko/giochi/Steam/steamapps/common/Tropico 5/Tropico5'  '/home/koko/giochi/Steam/steamapps/common/Tropico 5/coremio.11737' 
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/koko/giochi/Steam/steamapps/common/Tropico 5/Tropico5...

warning: core file may not match specified executable file.
[New LWP 11737]
[New LWP 11743]
[New LWP 11867]
[New LWP 11738]
[New LWP 11740]
[New LWP 11744]
[New LWP 11739]
[New LWP 11741]
[New LWP 11742]
BFD: warning: /lib/ld-linux.so.2: corrupt GNU_PROPERTY_TYPE (5) size: 0
BFD: warning: /lib/ld-linux.so.2: corrupt GNU_PROPERTY_TYPE (5) size: 0
BFD: warning: /lib/ld-linux.so.2: corrupt GNU_PROPERTY_TYPE (5) size: 0

warning: Could not load shared library symbols for libsteam_api.so.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/koko/giochi/Steam/steamapps/common/Tropico 5/Tropico5'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf7bac8a4 in Xutf8LookupString () from /usr/lib32/libX11.so.6
[Current thread is 1 (Thread 0xf596c780 (LWP 11737))]
(gdb) bt
#0  0xf7bac8a4 in Xutf8LookupString () from /usr/lib32/libX11.so.6
#1  0x08178254 in HSL::Terminal::Collect() ()
#2  0x08310385 in HGE::Game::RunRenderLoop() ()
#3  0x083107f2 in HGE::Game::Run() ()
#4  0x081795ea in HslMain() ()
#5  0x081740fd in main ()
(gdb) 

This seems to be the "faulty" function: Xutf8LookupString.
I already tried to swith my keyboard layout to "us", but it still crashes.

some useful (?) info:

koko@Gozer# echo $XMODIFIERS

koko@Gozer# setxkbmap -query -v
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+it+inet(evdev)
geometry:   pc(pc101)
rules:      evdev
model:      pc101
layout:     it

(edit) tried to :
. send a keystroke via vnc and via xdotool: [*crash on keypress*]
. run in windowed or fullscreen: [*crash on keypress*]
. running steam as another user (but in the same xorg session as the firs one): [*crash on keypress*]
. running steam in a bare twm root "startx" session: [*crash on keypress*]
. switch from evdev to libinput for keyboard: [*crash on keypress*]
. run as root: [*crash on keypress*]
. run the windows version via proton/steam play: [*won't start*]
. run via flatpak: [!does work!]
. run via arch in an updated (as the host, same packages) systemd container: [!does work!]
. mounted /etc in a separate namespace and removed everything from it apart pam.d which i copied from the systemd container  [*crash on keypress*]

Any idea what could i try?

Thanks.

Last edited by kokoko3k (2019-08-02 11:09:53)


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

Offline

#2 2019-07-24 14:18:13

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

Re: [SOLVED] XIM related? Tropico 5 crashes as soon as i press a key

...installed steam in flatpak, from there it works, but i'd like it to work without containers.

Also, on another archlinux system running plasma, updated to about 2 months ago, it works flawlessly; so either is a configuration problem, or a package upgrade issue.

Last edited by kokoko3k (2019-07-24 17:17:53)


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

Offline

#3 2019-07-26 09:41:52

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

Re: [SOLVED] XIM related? Tropico 5 crashes as soon as i press a key

Even if i am able to play via flatpak i still want to understand why it does not without, so i tried to use the libs from the flatpak runtime via LD_LIBRARY_PATH (confirmed via ldd) but still no luck.

Anybody has an idea on what to search for now?

Last edited by kokoko3k (2019-07-26 09:42:19)


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

Offline

#4 2019-08-01 16:31:40

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

Re: [SOLVED] XIM related? Tropico 5 crashes as soon as i press a key

Update:
I installed arch in a systemd container; from there it does not crash.
Also, i've updated both the cointainer and the host system to latest packages, and game on the host still crashes on keypresses; so it has to be some system wide configuration.


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

Offline

#5 2019-08-02 11:09:20

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

Re: [SOLVED] XIM related? Tropico 5 crashes as soon as i press a key

I did it!
Using linux namespaces and bind mounts, (and using as references/working files the ones from a just installed arch systemd-nspawn container that was able to start the game flawlessly), i tracked the problematic files to be in /usr/share/X11/locale.
Simply deleting that folder and replacing it with the one from the working system made it work.
According to strace, Tropico5 used to read thhose files from there:

/usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE
/usr/share/X11/locale/locale.alias
/usr/share/X11/locale/locale.dir

...while now it reads:

/usr/share/X11/locale/compose.dir
/usr/share/X11/locale/C/XLC_LOCALE
/usr/share/X11/locale/en_US.UTF-8/XLC_LOCALE
/usr/share/X11/locale/iso8859-1/Compose
/usr/share/X11/locale/locale.alias
/usr/share/X11/locale/locale.dir

...unfortunately, in the process of bisecting, i made a mistake and deleted my /usr/share/X11/, so i'm unable to debug further.

At least it is solved, thank you all! tongue

PS: all of the above is (part of) why i love linux.
Would it be windows, i would be lost without an idea (other than format of course) on how to proceed.

Last edited by kokoko3k (2019-08-02 11:27:58)


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

Offline

#6 2019-11-22 12:46:39

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

Re: [SOLVED] XIM related? Tropico 5 crashes as soon as i press a key

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.

-EDIT-
ops, wrong thread, sorry.

Last edited by kokoko3k (2019-11-22 12:47:23)


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

Offline

Board footer

Powered by FluxBB