Europa Universalis IV encounters Segementation Fault and crashes to desktop

When I try to run EU4 from steam I get a crash to the desktop so I tried running the eu4 binary from Konsole and I get this output:


$ ./eu4
Setting breakpad minidump AppID = 236850
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198024938745 [API loaded no]
[1]    5289 segmentation fault  ./eu4

Running with -skiplauncher gives this:


 ./eu4 -skiplauncher
Setting breakpad minidump AppID = 236850
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198024938745 [API loaded no]
terminate called after throwing an instance of 'CFileException'
[1]    5999 abort      ./eu4 -skiplauncher

I am not sure what is going on or how to further debug the issue. I am using openSUSE 13.1, KDE 4.13 and nvidia proprietary drivers (337.25). Any advice would be appreciated.

PS: I already tried using the “easy way” nvidia drivers but they do not work either so I switched to the “hard way” in hopes that it might help, which it didn’t.

Here is the last bit from strace ./eu4

http://paste.opensuse.org/view/raw/30777588

glxinfo

$ glxinfo | grep "OpenGL version string"
OpenGL version string: 4.4.0 NVIDIA 337.25

gdb eu4

Reading symbols from /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/eu4...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/eu4 
Missing separate debuginfo for /lib/ld-linux.so.2
Try: zypper install -C "debuginfo(build-id)=230297fa8574e10992d4b25239148cf7f5c9fdbb"
Missing separate debuginfo for /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/libsteam_api.so
Try: zypper install -C "debuginfo(build-id)=dd0128d2c53ec0908d41e78ced891733adc6040d"
Missing separate debuginfo for /lib/libdl.so.2
Try: zypper install -C "debuginfo(build-id)=2c1b2a8edbdfb939f91e0610421dd4097c079e39"
Missing separate debuginfo for /usr/lib/libstdc++.so.6
Try: zypper install -C "debuginfo(build-id)=76a494de7f81ff712d155e9af5c4fca7199b40fb"
Missing separate debuginfo for /lib/libm.so.6
Try: zypper install -C "debuginfo(build-id)=af0df094dc35dfb408933cd96b6b6e38ff7d05cd"
Missing separate debuginfo for /lib/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=457db60c116d7a901416f2cdaea9a7bc20a351ea"
Missing separate debuginfo for /lib/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c93be74183664f0886be139288110f4548048eb4"
Missing separate debuginfo for /lib/libpthread.so.0
Try: zypper install -C "debuginfo(build-id)=8b884065ecc7405464d46ed4dd3145130e60abb6"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Missing separate debuginfo for /usr/lib/libX11.so.6
Try: zypper install -C "debuginfo(build-id)=af775657442f017fd4fb88c94aebf6914e01f663"
Missing separate debuginfo for /usr/lib/libXext.so.6
Try: zypper install -C "debuginfo(build-id)=4036d5787909ff707ba4c6d346f6f644270e5eb0"
Missing separate debuginfo for /lib/librt.so.1
Try: zypper install -C "debuginfo(build-id)=d20f196b260f2d1ecf8ef6f606c7564cbe9883cf"
Missing separate debuginfo for /usr/lib/libxcb.so.1
Try: zypper install -C "debuginfo(build-id)=b2c64c1b6007eae5daa340530d7082c50449ff34"
Missing separate debuginfo for /usr/lib/libXau.so.6
Try: zypper install -C "debuginfo(build-id)=56a7b53690ce817099c7d538faea936582d73995"
Missing separate debuginfo for /usr/lib/libXcursor.so.1
Try: zypper install -C "debuginfo(build-id)=016596c24a019840398d52723ce24faca07ef189"
Missing separate debuginfo for /usr/lib/libXrender.so.1
Try: zypper install -C "debuginfo(build-id)=b76e4c2b091b19fbd4ae000bd5387fdd0f0d03f3"
Missing separate debuginfo for /usr/lib/libXfixes.so.3
Try: zypper install -C "debuginfo(build-id)=2ee8a0528f3cb8077eae55a4a1bb7d34f5d00bad"
Missing separate debuginfo for /usr/lib/libXinerama.so.1
Try: zypper install -C "debuginfo(build-id)=9b49d0ca22be365d9b7ceb2300d85446002dc3aa"
Missing separate debuginfo for /usr/lib/libXrandr.so.2
Try: zypper install -C "debuginfo(build-id)=62985134d26765c9510f3d94592f3a3cefd13886"
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Detaching after fork from child process 8754.

Program received signal SIGSEGV, Segmentation fault.
0x09172c04 in GfxDraw ()

On Sun 29 Jun 2014 12:16:02 AM CDT, alanbortu wrote:

When I try to run EU4 from steam I get a crash to the desktop so I
tried running the eu4 binary from Konsole and I get this output:

Code:

$ ./eu4
Setting breakpad minidump AppID = 236850
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198024938745 [API
loaded no] [1] 5289 segmentation fault ./eu4

Running with -skiplauncher gives this:

Code:

./eu4 -skiplauncher
Setting breakpad minidump AppID = 236850
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198024938745 [API
loaded no] terminate called after throwing an instance of
‘CFileException’ [1] 5999 abort ./eu4 -skiplauncher

I am not sure what is going on or how to further debug the issue. I am
using openSUSE 13.1, KDE 4.13 and nvidia proprietary drivers (337.25).
Any advice would be appreciated.

PS: I already tried using the “easy way” nvidia drivers but they do not
work either so I switched to the “hard way” in hopes that it might help,
which it didn’t.

Hi
Run ldd against the binary (eu4?), if eu4 is the binary, run with gdb’


gdb eu4
(at the prompt, type)
run


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-17-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Here is the output from ldd:


ldd eu4
        linux-gate.so.1 (0xf77bc000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0xf7682000)
        libsteam_api.so => /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/libsteam_api.so (0xf766f000)
        libtbb.so.2 => /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/libtbb.so.2 (0xf7632000)
        libdl.so.2 => /lib/libdl.so.2 (0xf762c000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf753f000)
        libm.so.6 => /lib/libm.so.6 (0xf74f9000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf74dc000)
        libc.so.6 => /lib/libc.so.6 (0xf732b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf730e000)
        libnvidia-tls.so.337.25 => /usr/lib/tls/libnvidia-tls.so.337.25 (0xf7308000)
        libnvidia-glcore.so.337.25 => /usr/lib/libnvidia-glcore.so.337.25 (0xf4dbb000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xf4c80000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xf4c6d000)
        librt.so.1 => /lib/librt.so.1 (0xf4c64000)
        /lib/ld-linux.so.2 (0xf77bd000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xf4c40000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xf4c3c000)

Output from gdb eu4:


(gdb) run
Starting program: /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/eu4 
Missing separate debuginfo for /lib/ld-linux.so.2
Try: zypper install -C "debuginfo(build-id)=230297fa8574e10992d4b25239148cf7f5c9fdbb"
Missing separate debuginfo for /home/gum/Steam/Linux/SteamApps/common/Europa Universalis IV/libsteam_api.so
Try: zypper install -C "debuginfo(build-id)=dd0128d2c53ec0908d41e78ced891733adc6040d"
Missing separate debuginfo for /lib/libdl.so.2
Try: zypper install -C "debuginfo(build-id)=2c1b2a8edbdfb939f91e0610421dd4097c079e39"
Missing separate debuginfo for /usr/lib/libstdc++.so.6
Try: zypper install -C "debuginfo(build-id)=76a494de7f81ff712d155e9af5c4fca7199b40fb"
Missing separate debuginfo for /lib/libm.so.6
Try: zypper install -C "debuginfo(build-id)=af0df094dc35dfb408933cd96b6b6e38ff7d05cd"
Missing separate debuginfo for /lib/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=457db60c116d7a901416f2cdaea9a7bc20a351ea"
Missing separate debuginfo for /lib/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c93be74183664f0886be139288110f4548048eb4"
Missing separate debuginfo for /lib/libpthread.so.0
Try: zypper install -C "debuginfo(build-id)=8b884065ecc7405464d46ed4dd3145130e60abb6"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Missing separate debuginfo for /usr/lib/libX11.so.6
Try: zypper install -C "debuginfo(build-id)=af775657442f017fd4fb88c94aebf6914e01f663"
Missing separate debuginfo for /usr/lib/libXext.so.6
Try: zypper install -C "debuginfo(build-id)=4036d5787909ff707ba4c6d346f6f644270e5eb0"
Missing separate debuginfo for /lib/librt.so.1
Try: zypper install -C "debuginfo(build-id)=d20f196b260f2d1ecf8ef6f606c7564cbe9883cf"
Missing separate debuginfo for /usr/lib/libxcb.so.1
Try: zypper install -C "debuginfo(build-id)=b2c64c1b6007eae5daa340530d7082c50449ff34"
Missing separate debuginfo for /usr/lib/libXau.so.6
Try: zypper install -C "debuginfo(build-id)=56a7b53690ce817099c7d538faea936582d73995"
Missing separate debuginfo for /usr/lib/libXcursor.so.1
Try: zypper install -C "debuginfo(build-id)=016596c24a019840398d52723ce24faca07ef189"
Missing separate debuginfo for /usr/lib/libXrender.so.1
Try: zypper install -C "debuginfo(build-id)=b76e4c2b091b19fbd4ae000bd5387fdd0f0d03f3"
Missing separate debuginfo for /usr/lib/libXfixes.so.3
Try: zypper install -C "debuginfo(build-id)=2ee8a0528f3cb8077eae55a4a1bb7d34f5d00bad"
Missing separate debuginfo for /usr/lib/libXinerama.so.1
Try: zypper install -C "debuginfo(build-id)=9b49d0ca22be365d9b7ceb2300d85446002dc3aa"
Missing separate debuginfo for /usr/lib/libXrandr.so.2
Try: zypper install -C "debuginfo(build-id)=62985134d26765c9510f3d94592f3a3cefd13886"
Missing separate debuginfo for /home/gum/.local/share/Steam/linux32/steamclient.so
Try: zypper install -C "debuginfo(build-id)=91e5f9dc7f09ac25da0cc6203881cd7e0db7a6e6"
Setting breakpad minidump AppID = 236850
Missing separate debuginfo for /home/gum/.local/share/Steam/linux32/libsteam.so
Try: zypper install -C "debuginfo(build-id)=63b30c1969f3486fe8711c54d21fdb29ac80bf19"
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198024938745 [API loaded no]
[S_API WARN] The loaded overlay DLL doesn't support SetNotificationPosition

Program received signal SIGSEGV, Segmentation fault.
0x09172c04 in GfxDraw ()
(gdb) 

Hi
So, something in GfxDraw () perhaps? Might be better to hit the steam forum and see if they can further debug?

I posted on the EU4 forums but no reply yet. Its funny because the game runs fine with wine…

A shot in the dark, but perhaps try to install the python-pygame package; I notice that that is the package which provide GfxDraw on the OS 13.1 system, and it was not installed as a steam dependency package on my system at least.

Just a guess though, and you might have tried, or installed, it already.

Cheers,
Olav

Installed it but I dont think it helped.

gdb


Try: zypper install -C "debuginfo(build-id)=63b30c1969f3486fe8711c54d21fdb29ac80bf19"
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198024938745 [API loaded no]
[S_API WARN] The loaded overlay DLL doesn't support SetNotificationPosition

Program received signal SIGSEGV, Segmentation fault.
0x09172c04 in GfxDraw ()

Okay so I went to the trouble of doing a fresh install, fresh steam profile (remove any steam folders) -> nothing changed
Downlaoded Manjaro (openbox) and installed it -> nothing changed

So it definately is not a distro specific issue, perhaps its the nvidia proprietary drivers?

Hello.

Just some more thoughts (guesses):
Are the libsdl-gfx 32bit installed?
Have you installed the nvidia drivers 32bit components (I suppose you have)?

I searched around for EU4 linux issues but could not find much, for whatever reason, it seems to mostly run fine.

Yeah I had those installed but still nothing :\

Its not my hardware because I can run the game in WINE but not natively.

Okay so I made a new account on my system and tried to run the games from there but no good, still get segfaults. So its not anything steam settings related, I wonder what it could be. :sarcastic:

The quest continues, here is some debug output from the new user and it looks different than the one from my normal account.


$ ./eu4
Setting breakpad minidump AppID = 236850
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198024938745 [API loaded no]
terminate called after throwing an instance of 'CFileException'
Aborted

gdb:


gdb) run
Starting program: /home/bob/.local/share/Steam/SteamApps/common/Europa Universalis IV/eu4 
Missing separate debuginfo for /home/bob/.local/share/Steam/SteamApps/common/Europa Universalis IV/libsteam_api.so
Try: zypper install -C "debuginfo(build-id)=dd0128d2c53ec0908d41e78ced891733adc6040d"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Missing separate debuginfo for /home/bob/.local/share/Steam/linux32/steamclient.so
Try: zypper install -C "debuginfo(build-id)=91e5f9dc7f09ac25da0cc6203881cd7e0db7a6e6"
Setting breakpad minidump AppID = 236850
Missing separate debuginfo for /home/bob/.local/share/Steam/linux32/libsteam.so
Try: zypper install -C "debuginfo(build-id)=63b30c1969f3486fe8711c54d21fdb29ac80bf19"
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198024938745 [API loaded no]
Detaching after fork from child process 2866.
Detaching after fork from child process 2867.
terminate called after throwing an instance of 'CFileException'

Program received signal SIGABRT, Aborted.
0xf7fdbc45 in __kernel_vsyscall ()
Missing separate debuginfos, use: zypper install glibc-32bit-debuginfo-2.19-10.1.x86_64 libX11-6-32bit-debuginfo-1.6.2-4.2.x86_64 libXau6-32bit-debuginfo-1.0.8-4.4.x86_64 libXcursor1-32bit-debuginfo-1.1.14-4.1.x86_64 libXext6-32bit-debuginfo-1.3.2-3.6.x86_64 libXfixes3-32bit-debuginfo-5.0.1-3.6.x86_64 libXinerama1-32bit-debuginfo-1.1.3-3.6.x86_64 libXrandr2-32bit-debuginfo-1.4.2-3.6.x86_64 libXrender1-32bit-debuginfo-0.9.8-3.6.x86_64 libgcc_s1-32bit-debuginfo-4.8.3+r210837-1.2.x86_64 libstdc++6-32bit-debuginfo-4.8.3+r210837-1.2.x86_64 libxcb1-32bit-debuginfo-1.10-4.1.x86_64

strace(trimmed off till the last few lines):


lstat64("/home/bob/.local/share/Steam/SteamApps/common/Europa Universalis IV/dlc/dlc004.dlc", {st_mode=S_IFREG|0755, st_size=147, ...}) = 0
lstat64("/home/bob/.local/share/Steam/SteamApps/common/Europa Universalis IV/dlc/dlc004.dlc", {st_mode=S_IFREG|0755, st_size=147, ...}) = 0
lstat64("/home/bob/.local/share/Steam/SteamApps/common/Europa Universalis IV/dlc/dlc004.dlc", {st_mode=S_IFREG|0755, st_size=147, ...}) = 0
open("/home/bob/.local/share/Steam/SteamApps/common/Europa Universalis IV/dlc/dlc004.dlc", O_RDONLY) = 16
read(16, "name = \"Star and Crescent\"
arch"..., 1024) = 147
read(16, "", 1024)                      = 0
fsync(16)                               = 0
close(16)                               = 0
brk(0xadc2000)                          = 0xadc2000
brk(0xadf7000)                          = 0xadf7000
futex(0xf74c30e4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
gettimeofday({1404189030, 702864}, NULL) = 0
gettimeofday({1404189030, 702897}, NULL) = 0
write(2, "terminate called after throwing "..., 48terminate called after throwing an instance of ') = 48
write(2, "CFileException", 14CFileException)          = 14
write(2, "'
", 2'
)                      = 2
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(2875, 2875, SIGABRT)             = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=2875, si_uid=1001} ---
+++ killed by SIGABRT +++
Aborted

Note: I am currently using Factory but this problem is present in 13.1 too.

Do the other native steam games run OK?

I have not played around much with starting steam games from the terminal so I had a go:

olav@DDAmt:~/Spel/SteamLibrary/SteamApps/common/Amnesia The Dark Descent> ./Amnesia.bin64
./Amnesia.bin64: error while loading shared libraries: libalut.so.0: cannot open shared object file: No such file or directory
olav@DDAmt:~/Spel/SteamLibrary/SteamApps/common/Amnesia The Dark Descent> ./Launcher.bin
./Launcher.bin: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
olav@DDAmt:~/Spel/SteamLibrary/SteamApps/common/Amnesia The Dark Descent> ./Launcher.bin64
./Launcher.bin64: error while loading shared libraries: libalut.so.0: cannot open shared object file: No such file or directory
olav@DDAmt:~/Spel/SteamLibrary/SteamApps/common/Amnesia The Dark Descent> ./Amnesia.bin
./Amnesia.bin: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
olav@DDAmt:~/Spel/SteamLibrary/SteamApps/common/Amnesia The Dark Descent> bash run_steam.sh 
Checking libraries Library Missing: libGLU.so.1
./Launcher.bin: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory 

Launched from steam this game runs just fine; I don’t know why, some static libraries in the steam folder perhaps?

What if you tried to launch the game with: steam steam://rungameid/xxx

Crusader Kings 2 seems to struggle running too (it launches but after loading it crashes) which is strange because I used to be able to play it perfectly fine on openSUSE (I have over 100 hours in it). EuroTruck Sim 2 works fine though so perhaps it is an issue with the engine used in both EU4 and CK2 (they use the same one). I am going to attempt downloading Trine 2 and see if it crashes.

Have you tried this already?
https://en.opensuse.org/Steam#Loading_Steam_without_local_runtime_to_avoid_crash_or_game_play_without_sound

STEAM_RUNTIME=1 could be worth a try as well, although that should be the default anyway.

When I do that I get this error and steam fails to launch but the 32 bit libraries are installed ()


Error: You are missing the following 32-bit libraries, and Steam may not run:
libbz2.so.1.0


~> se libbz                             
Loading repository data...
Reading installed packages...

S | Name                     | Type    | Version    | Arch   | Repository
--+--------------------------+---------+------------+--------+-----------
i | libbz2-1                 | package | 1.0.6-27.9 | x86_64 | repo-oss  
v | libbz2-1                 | package | 1.0.6-27.9 | i586   | repo-oss  
i | libbz2-1-32bit           | package | 1.0.6-27.9 | x86_64 | repo-oss  
  | libbz2-1-debuginfo       | package | 1.0.6-27.9 | x86_64 | repo-debug
  | libbz2-1-debuginfo       | package | 1.0.6-27.9 | i586   | repo-debug
  | libbz2-1-debuginfo-32bit | package | 1.0.6-27.9 | x86_64 | repo-debug
i | libbz2-devel             | package | 1.0.6-27.9 | x86_64 | repo-oss  
v | libbz2-devel             | package | 1.0.6-27.9 | i586   | repo-oss  
i | libbz2-devel-32bit       | package | 1.0.6-27.9 | x86_64 | repo-oss  

In other news, Trine 2 and FTL both launched and played fine so its probably an issue with some engine update Paradox pushed.

And in surprisingly great news I was able to get the game to work by rolling back to 1.6.0, as I suspected it was some patch that Paradox has pushed which is causing the issue. Thanks to all of you for helping in this thread :slight_smile:

PS: If you dont know how to roll back, select the game in your library > Properties > Betas and select the version you want. rotfl!

Ah, ok.
Somebody else had this issue in a different thread recently.

The “problem” is that libbz2-1-32bit only contains those files:

:~> rpm -ql libbz2-1-32bit /usr/lib/libbz2.so.1

/usr/lib/libbz2.so.1.0.6

So you would have to manually create a symlink:

sudo ln -s /usr/lib/libbz2.so.1 /usr/lib/libbz2.so.1.0

Thank you wolfi, that got rid of the “problem”. However that was not the issue, in fact the solution I posted above only worked temporarily. As it turns out the error “terminate called after throwing an instance of **‘CFileException’” **is related to case sensitivity which of course is important in Linux. But the creators did not know/care about this and just seem to assume that it does not matter which causes the game to crash for me. The solution was simply to create an NTFS filesystem and copy the steam library onto it. After doing that EU4 seems to launch fine. What a dumb bug.