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

Shadow of the Tomb Raider (native build) not rendering game window when mangohud enabled #1531

Closed
ojsl1 opened this issue Jan 17, 2025 · 2 comments

Comments

@ojsl1
Copy link
Contributor

ojsl1 commented Jan 17, 2025

Describe the bug
Native linux build of the Shadow of the Tomb Raider doesn't render the game window when mangohud (with any or no config) is enabled. Disabling mangohud, ie. removing it from launch properties launches the game properly.

List relevant hardware/software information

  • Manjaro Linux KDE with Kernel 6.12.9, happens on both Wayland and X11
  • mangohud-git, happens on both 0.7.2.r110.g24d3cd9 and 0.7.2.r146.g0575c8e
  • AMD 7900XTX 24GB
  • both vulkaninfo and vkcube work.
Shadow of the Tomb Raider logs with mangohud enabled
reaping pid: 135015 -- gameoverlayui
chdir "/run/media/saukko/MEDIA/SteamLibrary/steamapps/common/Shadow of the Tomb Raider"
Game Recording - would start recording game 750920, but recording for this game is disabled
Adding process 138428 for gameID 750920
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 138429 != 138428, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_shim.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 138430 for gameID 750920
Adding process 138431 for gameID 750920
Adding process 138432 for gameID 750920
pid 138558 != 138554, skipping destruction (fork without exec?)
pid 138563 != 138554, skipping destruction (fork without exec?)
Adding process 138554 for gameID 750920
pid 138595 != 138591, skipping destruction (fork without exec?)
pid 138594 != 138591, skipping destruction (fork without exec?)
Adding process 138584 for gameID 750920
Adding process 138591 for gameID 750920
ShadowOfTheTombRaider: crash reporter initialised with path "/home/saukko/.local/share/feral-interactive/Shadow of the Tomb Raider/crashes"
Adding process 138597 for gameID 750920
Adding process 138598 for gameID 750920
Adding process 138599 for gameID 750920
Adding process 138600 for gameID 750920
SDL2 initialised [built against 2.0.10, running with 2.0.10]
Setting breakpad minidump AppID = 750920
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197993151824 [API loaded no]
[0117/192755.574562:ERROR:gpu_process_transport_factory.cc(1026)] Lost UI shared context.
[0117/192757.050721:INFO:CONSOLE(8672)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source: file:///run/media/saukko/MEDIA/SteamLibrary/steamapps/common/Shadow%20of%20the%20Tomb%20Raider/share/FeralUI/Core/3rdParty/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js (8672)
[0117/192757.057177:INFO:CONSOLE(0)] "Styling master document from stylesheets defined in HTML Imports is deprecated. Please refer to https://goo.gl/EGXzpw for possible migration paths.", source:  (0)
[0117/192757.092729:INFO:CONSOLE(6569)] "The specified value "!" does not conform to the required format.  The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.", source: file:///run/media/saukko/MEDIA/SteamLibrary/steamapps/common/Shadow%20of%20the%20Tomb%20Raider/share/FeralUI/Core/3rdParty/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js (6569)
01/17 19:27:57 minidumps folder is set to /tmp/dumps
01/17 19:27:57 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(20250114224035)/tid(138708)
01/17 19:27:57 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)/tid(138708)
Adding process 138706 for gameID 750920

To Reproduce
Steps to reproduce the behavior:

  1. Launch the game (native build) from steam with mangohud enabled
  2. Launcher opens, and mangohud displays on it properly.
  3. Click Play
  4. Game window doesn't render, in neither fullscreen or windowed
  5. And it doesn't crash either

Expected behavior
Game launches normally and mangohud works.

I'm 100% certain this worked flawlessly before with mangohud.

@ojsl1
Copy link
Contributor Author

ojsl1 commented Jan 17, 2025

Shadow of the Tomb Raider logs with mangohud disabled
chdir "/run/media/saukko/MEDIA/SteamLibrary/steamapps/common/Shadow of the Tomb Raider"
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/saukko/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Game Recording - would start recording game 750920, but recording for this game is disabled
Adding process 140566 for gameID 750920
Adding process 140567 for gameID 750920
Adding process 140568 for gameID 750920
pid 140692 != 140688, skipping destruction (fork without exec?)
pid 140697 != 140688, skipping destruction (fork without exec?)
Adding process 140688 for gameID 750920
pid 140730 != 140725, skipping destruction (fork without exec?)
pid 140729 != 140725, skipping destruction (fork without exec?)
ShadowOfTheTombRaider: crash reporter initialised with path "/home/saukko/.local/share/feral-interactive/Shadow of the Tomb Raider/crashes"
Adding process 140718 for gameID 750920
Adding process 140725 for gameID 750920
Adding process 140732 for gameID 750920
Adding process 140733 for gameID 750920
Adding process 140734 for gameID 750920
Adding process 140735 for gameID 750920
SDL2 initialised [built against 2.0.10, running with 2.0.10]
Setting breakpad minidump AppID = 750920
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197993151824 [API loaded no]
[0117/194123.857419:ERROR:gpu_process_transport_factory.cc(1026)] Lost UI shared context.
[0117/194125.339725:INFO:CONSOLE(8672)] "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.", source: file:///run/media/saukko/MEDIA/SteamLibrary/steamapps/common/Shadow%20of%20the%20Tomb%20Raider/share/FeralUI/Core/3rdParty/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js (8672)
[0117/194125.345850:INFO:CONSOLE(0)] "Styling master document from stylesheets defined in HTML Imports is deprecated. Please refer to https://goo.gl/EGXzpw for possible migration paths.", source:  (0)
[0117/194125.386097:INFO:CONSOLE(6569)] "The specified value "!" does not conform to the required format.  The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.", source: file:///run/media/saukko/MEDIA/SteamLibrary/steamapps/common/Shadow%20of%20the%20Tomb%20Raider/share/FeralUI/Core/3rdParty/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js (6569)
01/17 19:41:25 minidumps folder is set to /tmp/dumps
01/17 19:41:25 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(20250114224035)/tid(140827)
01/17 19:41:25 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)/tid(140827)
reaping pid: 139664 -- gameoverlayui

Only thing different is the absence of this line

ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud_shim.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

The file is still there in /usr/lib/mangohud/libMangoHud_shim.so.

I tried another game but with proton (A Hat In Time), there mangohud works although i still got the same shim error.

I then went and tried the native linux build of ballisticng with mangohud, there the game launches and renders normally but mangohud doesn't work and I get boatloads of logspam of the below lines

shim: Failed to load from ${ORIGIN}/libMangoHud_opengl.so
shim: Failed to load from ${ORIGIN}/libMangoHud_opengl.so

Edit: Running the native build of stepmania that runs with opengl with the below works though.
gamescope -W 1920 -H 1080 --mangoapp -- ./stepmania

@ojsl1
Copy link
Contributor Author

ojsl1 commented Jan 17, 2025

Same issue as # 1406

@ojsl1 ojsl1 closed this as completed Jan 17, 2025
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

1 participant