• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Daft

Captain
48 Badges
Apr 11, 2001
468
1.195
  • Imperator: Rome
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Crusader Kings II
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Surviving Mars
I've been playing some CKIII on my Linux installation without issues, but when I installed EU4 in order to try it out, I can't launch the game via the launcher. If I go to the local files it starts fine.

Using Ubuntu 22.04 LTS.
 

Attachments

  • exception.txt
    1,6 KB · Views: 0
  • 425ccaee-b576-6bf0-75f90922-41629488.dmp
    297,2 KB · Views: 0
Pretty clearly a video issue, from that exceptions log. What video card and driver do you have? Is Mesa up to date?
 
Pretty clearly a video issue, from that exceptions log. What video card and driver do you have? Is Mesa up to date?
Yeah, I just can't figure out what and why I can launch the game outside the launcher.

I don't have mesa-utils installed and I'm running version 510 (proprietary) of NVIDIAs drivers for my GTX 1060.
 
Yeah, I just can't figure out what and why I can launch the game outside the launcher.
Maybe the way that steam injects the steam overlay is causing problems. Does it help if you disable the steam overlay for eu4? You could also try to change the launch options of eu4 in steam to "LD_PRELOAD= %command%" (without quotes). If that helps, make sure that you remember that you did this and undo it in case you run into any other problems.

Disclaimer: I'm not working for Paradox. I'm just trying to help people.
 
Maybe the way that steam injects the steam overlay is causing problems. Does it help if you disable the steam overlay for eu4? You could also try to change the launch options of eu4 in steam to "LD_PRELOAD= %command%" (without quotes). If that helps, make sure that you remember that you did this and undo it in case you run into any other problems.

Disclaimer: I'm not working for Paradox. I'm just trying to help people.

Thanks!

Tried the Steam overlay suggestion, but same error again.

I realized that I didn't include the error from the launcher, which is different from the exception.txt:

1654956715255.png
 
I realized that I didn't include the error from the launcher, which is different from the exception.txt:
Can you copy&paste the full contents of the details box from the error? It looks like there are more messages than what is shown and the messages are cut off.
Did you try changing the launch options? They should prevent the LD_PRELOAD error
 
Can you copy&paste the full contents of the details box from the error? It looks like there are more messages than what is shown and the messages are cut off.
Did you try changing the launch options? They should prevent the LD_PRELOAD error

Yeah, I tried and it didn't work unfortunately.
I completely missed the error at the end, you are right. The LD_PRELOAD launch option generated the same error as below.

ALso, I have to run with launch options --disable-gpu to avoid having the launcher come up black. I have to do that with CK3 as well.

As a noob to Linux, I'm not sure what the Canberra gtk module does. But the Launchers seems to want it:
from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Gtk-Message: 19:34:53.320: Failed to load module "canberra-gtk-module"

Thanks for taking the time! Really appreciate it.

Worst case I can run on my Windows partition, but would like to get it running on Linux.
 
Last edited:
The LD_PRELOAD launch option generated the same error as below.
Then you didn't add it in the right way. LD_PRELOAD must be at the very start of the launch options. If you have other launch options, they must be after %command% (the % are important as well) and there must be a space between them.
If you only get errors about ELFCLASS32, they are normal and harmless, because current eu4 versions are 64 bit, but I think steam injects both the 64 bit libraries and the 32 bit libraries. So the 32 bit libraries cause an error message for 64 bit games and the 64 bit libraries cause an error message for 32 bit games. I'm still suggesting to try to prevent the injection of the 64 bit libraries via the LD_PRELOAD launch option to make sure that the 64 bit library is not causing your problem.

The canberra gtk message is probably from the crash reporter which I think is a GTK application on Linux. Does it show a window in your case? AFAIK the canberra module is for sound and the message is non-fatal. Installing libcanberra-gtk-module and libcanberra-gtk3-module should get rid of the message (e.g. via the command line sudo apt install libcanberra-gtk-module libcanberra-gtk3-module)

ALso, I have to run with launch options --disable-gpu to avoid having the launcher come up black.
Maybe this is causing a problem for eu4. Did you try eu4 without this option? Maybe the current launcher version doesn't have the problem anymore. @AndrewT do you know what is currently the best solution for the blank launcher on Linux?

Do you have a hybrid graphics card? IIRC they are affected by the blank launcher problem, but maybe I misremember it. If you have a hybrid card, you might have to do something else to tell eu4 that it should use the nvidia card
 
@AndrewT do you know what is currently the best solution for the blank launcher on Linux?
I do not, sorry, can't recall that I've come across it actually.
 
Then you didn't add it in the right way. LD_PRELOAD must be at the very start of the launch options. If you have other launch options, they must be after %command% (the % are important as well) and there must be a space between them.
If you only get errors about ELFCLASS32, they are normal and harmless, because current eu4 versions are 64 bit, but I think steam injects both the 64 bit libraries and the 32 bit libraries. So the 32 bit libraries cause an error message for 64 bit games and the 64 bit libraries cause an error message for 32 bit games. I'm still suggesting to try to prevent the injection of the 64 bit libraries via the LD_PRELOAD launch option to make sure that the 64 bit library is not causing your problem.

The canberra gtk message is probably from the crash reporter which I think is a GTK application on Linux. Does it show a window in your case? AFAIK the canberra module is for sound and the message is non-fatal. Installing libcanberra-gtk-module and libcanberra-gtk3-module should get rid of the message (e.g. via the command line sudo apt install libcanberra-gtk-module libcanberra-gtk3-module)


Maybe this is causing a problem for eu4. Did you try eu4 without this option? Maybe the current launcher version doesn't have the problem anymore. @AndrewT do you know what is currently the best solution for the blank launcher on Linux?

Do you have a hybrid graphics card? IIRC they are affected by the blank launcher problem, but maybe I misremember it. If you have a hybrid card, you might have to do something else to tell eu4 that it should use the nvidia card

No dice unfortunately. Put it first and I also tried to remove the no-gpu-command, and I can use the launcher UI to start the game by feel even though the UI is black.

This seems to be a bit of lost cause, but again, really appreciate your help!
 
No dice unfortunately. Put it first and I also tried to remove the no-gpu-command, and I can use the launcher UI to start the game by feel even though the UI is black.
Does this make the LD_PRELOAD error go away? If not, can you post your full launch options?

This thread talks about using NVIDIA Prime Render Offload to use the nvidia GPU to render eu4 on a laptop with hybrid graphics. Do you have such a laptop? What did you do to activate the nvidia GPU for eu4? Did you try other 3D games which have similar or higher requirements than eu4? If you don't own one, you could try one of the games which are free to play on steam(you need one which has a native linux version; they are marked with a steam logo next to the windows/macOS logos). And you could also try an open source game which you can install with the ubuntu package manager to see if non-steam games work (IIRC "0 A.D." has a similar graphics level as eu4 (the ubuntu package is called "0ad")).
 
Does this make the LD_PRELOAD error go away? If not, can you post your full launch options?


This thread talks about using NVIDIA Prime Render Offload to use the nvidia GPU to render eu4 on a laptop with hybrid graphics. Do you have such a laptop? What did you do to activate the nvidia GPU for eu4? Did you try other 3D games which have similar or higher requirements than eu4? If you don't own one, you could try one of the games which are free to play on steam(you need one which has a native linux version; they are marked with a steam logo next to the windows/macOS logos). And you could also try an open source game which you can install with the ubuntu package manager to see if non-steam games work (IIRC "0 A.D." has a similar graphics level as eu4 (the ubuntu package is called "0ad")).

No, I have a desktop computer with a GTX 1060. I just added the "nogpu" command as a lancher option, and I did that for CK3 to fix the black launcher screen. In that case I could launch CK3 normally through the launcher and ir runs fine.

I also just tried running Pathfinder: Wrath of the Righteous without any issues.
 
Did you try other 3D games which have similar or higher requirements than eu4? If you don't own one, you could try one of the games which are free to play on steam(you need one which has a native linux version; they are marked with a steam logo next to the windows/macOS logos).
CK2 is free to play on Steam and is quite similar to EU4.
 
CK2 is free to play on Steam and is quite similar to EU4.
I didn't mention CK2, because I wanted to know if there is a more widespread graphical issue which also affects games which are different from eu4.
I could launch CK3 normally through the launcher and ir runs fine.
I also just tried running Pathfinder: Wrath of the Righteous without any issues.

In that case, you could try ck2 to see if that one works. If ck2 also works, the issue is specific to eu4 in some way. In that case, maybe the eu4 installation is broken. You can try a clean reinstall as described in my guide on reddit about common startup problems with version 1.29.

Another thing which you could try is to disable multisampling by editing "~/.local/share/Paradox Interactive/Europa Universalis IV/settings.txt" and changing the line which starts with "multi_sampling" to "multi_sampling=0". This was necessary to fix startup problems when using wayland, but I thought the wayland bug which caused this problem had been fixed and would not affect Linux distributions which came out this year. And IIRC it had other symptoms and starting eu4 directly would not work in that case either.

If you can't get eu4 to work from the launcher, you can just start it directly. If you want to adjust mods or DLC, you can still do it via the launcher which saves this in the file dlc_load.json and eu4 automatically reads these settings. But often DLCs won't work when starting eu4 directly. You can fix this either by changing the contents of the file steam_appid.txt in your eu4 installation from "222260" to "236850" or by passing the environment variable SteamAppId="236850" when starting eu4. If you are in a command line in the eu4 installation folder, you can do start eu4 like this:
Code:
SteamAppId="236850" ./eu4
 
  • 1Like
Reactions:
I'm having the same issue. I've followed the steps listed here but have ended up with a different error. I'm using an Nvidia system with hybrid Intel graphics and Pop!_OS 22.04. When I press play in the launcher, I get the attached error.
 

Attachments

  • 5d5eabac-fc1f-a2ee-159ae55e-0ed7f9fb.dmp
    462,9 KB · Views: 0
  • exception.txt
    1,6 KB · Views: 0
  • error.txt
    514 bytes · Views: 0
From that exceptions log it's clearly a video issue. Are you up to date with the Intel, nVidia and Mesa versions?
 
From that exceptions log it's clearly a video issue. Are you up to date with the Intel, nVidia and Mesa versions?
I'm running nvidia-driver-515 which was provided by my operating system. My Mesa version is 22.0.5 and idk how to check if my Intel driver is up to date but I assume it is. Just to test, I switched my settings to only use the integrated graphics and it worked. I would like to use my graphics card though.
 
Depending on your exact video card the latest nVidia appears to be:
Version: 515.65.01
Release Date: 2022.8.2
If you are on an earlier 515 please update to that.

The latest Mesa is 22.1.5 so you should try updating that.

Good luck!
 
If someone would be so unlucky like post author or me, trying to find the reason why EU4 doesn't launch, the problem is multisampling in settings.

edit /home/*user*/.local/share/Paradox Interactive/Europa Universalis IV/settings.txt from multi_sampling=4 to multi_sampling=0