Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Europa Universalis 4 does not run with Mangohud enabled #1303

Open
RaduAvramescu opened this issue Apr 21, 2024 · 14 comments
Open

Europa Universalis 4 does not run with Mangohud enabled #1303

RaduAvramescu opened this issue Apr 21, 2024 · 14 comments

Comments

@RaduAvramescu
Copy link

RaduAvramescu commented Apr 21, 2024

Describe the bug
After pressing "Play" on Steam, Europa Universalis 4's launcher appears. When pressing "Play" in the game's launcher, an error window appears and the game does not run.

List relevant hardware/software information

  • Linux Distribution: Fedora 40 Beta (KDE spin)
  • Kernel: 6.8.7-300.fc40.x86_64
  • Mesa: 24.1.0
  • MangoHud version: mangohud-0.7.1-3.fc40.x86_64
  • Steam: rpm
  • KDE Plasma Version: 6.0.3
  • KDE Frameworks Version: 6.0.0
  • Qt Version: 6.6.2
  • Graphics Platform: Wayland
  • GPU: AMD RX 7900 XTX

To Reproduce
Steps to reproduce the behavior:

  1. Launch the application
  2. In the launcher, press "Play"
  3. Observe the error window

Expected behavior
The game should launch after pressing "Play" in the game's launcher, without producing an error.

Screenshots
Screenshot_20240421_115930

Additional context
If I press the "Show details" button from the error window, this is the output:

ERROR: ld.so: object '/home/REDACTED/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/REDACTED/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
gamemodeauto: 
[2024-04-21 11:33:02.482] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/REDACTED/.config/MangoHud/presets.conf'
@flightlessmango
Copy link
Owner

Works fine on my end. It's possible it's been fixed in recent versions
image

@RaduAvramescu
Copy link
Author

I've tried a few things but I didn't really get anywhere. Added --dlsym as a launch parameter, and that exhibited the same issue.

Running with MANGOHUD_LOG_LEVEL=DEBUG as well didn't output anything that could be interesting, from what I could tell.

@flightlessmango I ran the game with its native Linux build - haven't tried Proton and I'm not interested in trying it out yet. Based on your screenshot, you also ran native?

@flightlessmango
Copy link
Owner

Yes I also used the native Linux build

@fallenexistence0
Copy link

Run steam from the terminal then run your game, when you get the error exit steam, the terminal might give us an exact error, or at least where the problem is happening.

Try disabling the steam overlay for europa and then launching the game, that might solve the issue for you.

You can also try using another launcher such as heroic or lutris, and adding the game to those launchers, you'll have the option of using different wine versions (as well as proton-ge). Experiment with different versions and show us the results.

@mentaldust
Copy link

I've told you about a similar error before, If you can remember. It was happening on the Stellaris launcher too on Fedora 39 KDE. Now that I am on a fresh install of Fedora 40 KDE, it is still happening.

@RaduAvramescu
Copy link
Author

@fallenexistence0 I've already tried disabling the Steam overlay for EU4, which unfortunately didn't work.

As for running Steam from the terminal, there is no terminal output when that error in the game's launcher appears. The launcher can still be interacted with as well (I can press "Play" again, and the same error pops up, for example, but nothing new in the terminal).

Running the game with both Sway and Hyprland produces the same issue (this is from the same KDE install though, so it's not the Sway spin of Fedora nor a minimal install with Hyprland).

I'll wipe my install and try out Fedora 40 Workstation. I'll come back with an update regarding whether or not MangoHud worked for EU4 there.

@RaduAvramescu
Copy link
Author

I'm experiencing the same issue after a fresh install of Fedora Workstation 40 (so, this is Gnome), with fully up to date packages, and just mangohud and Steam installed (both from rpms). The Mangohud version is still v0.7.1, kernel is 6.8.8, and Mesa 24.0.6. Again, this is the native Linux build of EU4 (maybe the Proton version works but I'd rather not resort to that).

It looks like it's not DE specific, but maybe Fedora specific? Or perhaps a newer version fixed the issue, as @flightlessmango noted.

@flightlessmango
Copy link
Owner

Closing until it can be verified that the bug exists in 0.7.2

@RaduAvramescu
Copy link
Author

Hello @flightlessmango,

Sorry, I didn't have time to retest.

I just reinstalled Fedora, and am using Hyprland again, on kernel 6.9.5-200.fc40.x86_64, mesa-git and mangohud 0.7.2.

Unfortunately, I still get an error when trying to start the game from the launcher.

@flightlessmango
Copy link
Owner

I can't repro this with similar setup, except I'm using arch.
It's strange that mangohud is showing in the launcher however, that should have been blacklisted since long ago

@RaduAvramescu
Copy link
Author

@flightlessmango Well, I can actually post an update regarding the launcher.

I no longer see Mangohud in the launcher (not sure if this was the case yesterday as well or if I just noticed it today), so I think this is good at least, and there is some progress. I suppose this was fixed between 0.7.1 and 0.7.2.

That said, I'm still getting the error. For further information, I'm using the Steam rpm, along with these launch options:
gamemoderun mangohud --dlsym %command%

I've tried removing gamemoderun and --dlsym just for testing purposes and neither worked (whether both of them are removed or just one of them didn't matter).

@pruebahola
Copy link

pruebahola commented Jun 25, 2024

I can confirm that is happening to me too from the moment that I updated mangohud to 0.7.2

Was not happening in 0.7.1

but my experience is with Total War Warhammer 3, Native version ( I don't have Europa Universalis 4) but the issue is the same

In the launcher Mangohud Work, but when i click in Play, steam show are running the game but nothing happen and i don't get any log

If I remove "mangohud %command%" the game work perfectly but of course, i would like be able to use Mangohud

I'm using steam flatpak

@RaduAvramescu
Copy link
Author

@pruebahola I believe you have to enable Mangohud differently for the Steam Flatpak - this may be a different, unrelated issue.

You should use Flatseal to add MANGOHUD=1 env variable to Steam, or alternatively, this command:

flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam

Then remove mangohud %command% from your launch options.

@pruebahola
Copy link

pruebahola commented Jun 26, 2024

@RaduAvramescu man... this is not a new installating, i did that months ago and MangoHUD work perfectly fine in my others games and even work in the Launcher for Total War Warhammer 3

The problem is when you click play in the launcher... the game doesn't open if Mangohud is enable

I followed your steps but still happens exactly the same, the game doesn't open until i remove the env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants