6.20 511811 [Linux] Segfault on exit and launch with -skipintro no main menu is available

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

sirdeiu
Posts: 13
Joined: Fri, 9. Aug 13, 13:12
x4

6.20 511811 [Linux] Segfault on exit and launch with -skipintro no main menu is available

Post by sirdeiu »

Hi,

Playing on Debian Linux, using Steam or using the NoSteam binary.

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.6.0-00001-gf965cf6eec11 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: ASUS

When exiting the game, i get:
[Wed Nov 15 13:43:12 2023] Main()[15889]: segfault at 0 ip 00007fb3eb900917 sp 00007ffdd1083610 error 4 in libX11.so.6.4.0[7fb3eb8d8000+8d000] likely on CPU 4 (core 4, socket 0)
[Wed Nov 15 13:43:12 2023] Code: 41 54 55 48 89 d5 53 48 83 ec 58 64 48 8b 04 25 28 00 00 00 48 89 44 24 48 48 8b 87 30 0a 00 00 48 8b 97 f8 00 00 00 83 e2 01 <48> 8b 30 48 89 34 24 0f 85 35 01 00 00 48 8b b7 a8 00 00 00 48 89
Image

Code: Select all

libx11-6: /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0
libx11-6/unstable,now 2:1.8.7-1 amd64

When launching with

Code: Select all

-nocputhrottle -nosoundthrottle -skipintro 
launch options, the game starts but the main menu is missing. Changing the game language via Steam does not help. Removing -skipintro makes the main menu visible again. Game is installed on a WD_BLACK SN770 nvme drive, ext4 formatted.
Last edited by Alan Phipps on Wed, 15. Nov 23, 17:39, edited 1 time in total.
Reason: added info to title
Mookau
XWiki Moderator
XWiki Moderator
Posts: 172
Joined: Tue, 8. Sep 20, 05:31
x4

Re: 6.20 511811 [Linux] Segfault on exit and launch with -skipintro no main menu is available

Post by Mookau »

You might have already done so, but you didn't mention it - There are a few things I can think of to quickly check.
  • Verify the game files in steam. While not terribly likely, corrupt files could cause both the main menu not to work and/or a segfault.
  • Not a great solution, but you could try running your plasma session in X11 rather than Wayland. The xwayland compatibility layer might be screwing something up.
  • You could also try downgrading your libx11-6 package. I see you're on the latest package from the unstable branch. Regressions may have been introduced in the later versions that don't play nice with wayland or X4.
For reference, my system runs X4 with no issues. My PC has a 5800x and 6800xt (not the exact same parts, but at least the same vendor), I'm using an x11 environment, and my libx11 is on version 1.7.5.
User avatar
PGeyer-Ego
EGOSOFT
EGOSOFT
Posts: 56
Joined: Thu, 9. Jun 22, 14:37
x4

Re: 6.20 511811 [Linux] Segfault on exit and launch with -skipintro no main menu is available

Post by PGeyer-Ego »

Hi,

I've had a go trying to reproduce both of these issues and I cannot right now.

I think that the libX11 crash is particularly strange, I am using the same version of libX11 than you (albeit not on Debian) so it is unlikely to be that library. It may be wayland as I don't use Wayland myself. I know there is an occasional crash in the GPU driver on exit, but it's usually silent, and I haven't seen it cause any problems.

Regarding the -skipintro issue, I vaguely recall this happening to someone in the past, but I cannot find it. Could you perhaps run the game with

Code: Select all

-debug all -logfile debuglog.txt
And send the resulting debuglog.txt

Thanks
PG
sirdeiu
Posts: 13
Joined: Fri, 9. Aug 13, 13:12
x4

Re: 6.20 511811 [Linux] Segfault on exit and launch with -skipintro no main menu is available

Post by sirdeiu »

Hi PG,

Running the game with launch options via Steam:

Code: Select all

%command% -debug all -logfile debuglog.txt -skipintro
I get the following in $HOME/.config/EgoSoft/X4/45472976/debuglog.txt

Code: Select all

Logfile started, time Fri Nov 24 19:48:35 2023
[General] 0.00 'AMD Radeon RX 7900 XTX (RADV GFX1100)' AMD-driver v23.2.1 (Vulkan 1.3.255) check=1
[General] 0.00 'llvmpipe (LLVM 16.0.6, 256 bits)' gfx-driver v0.0.1 (Vulkan 1.3.255) check=1
[Init   ] 0.00 Entering startmenu in 6.20 (511811)

Return to “X4: Foundations - Technical Support”