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

mangohud: libGL issue with minetest #347777

Open
theotheroracle opened this issue Oct 10, 2024 · 1 comment
Open

mangohud: libGL issue with minetest #347777

theotheroracle opened this issue Oct 10, 2024 · 1 comment

Comments

@theotheroracle
Copy link
Contributor

Describe the bug

when trying to launch minetest with mangohud, i get a library error

Steps To Reproduce

Steps to reproduce the behavior:

  1. install minetest and mangohud
  2. run mangohud minetest

Expected behavior

the app to launch

Additional context

relevant mangohud issue : flightlessmango/MangoHud#1457

2024-10-10 12:54:11: [Main]: Automatically selecting world at [/home/hive/.minetest/worlds/world1]
[2024-10-10 12:54:11.277] [error] [loader_glx.cpp:28] Failed to open 64bit libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[2024-10-10 12:54:11.344] [error] [loader_glx.cpp:28] Failed to open 64bit libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[2024-10-10 12:54:11.346] [error] [loader_glx.cpp:28] Failed to open 64bit libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[2024-10-10 12:54:11.346] [error] [inject_glx.cpp:49] Failed to get function 'glXCreateContextAttribsARB'
[2024-10-10 12:54:11.349] [error] [loader_glx.cpp:28] Failed to open 64bit libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
fish: Job 1, 'mangohud minetest' terminated by signal SIGSEGV (Address boundary error)

Notify maintainers

@zeratax @kira-bruneau @SuperSandro2000

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

hive@library : /e/nixos ඞ
» nix-shell -p nix-info --run "nix-info -m"
install: cannot remove '/tmp/env-vars': Operation not permitted
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.9-zen1, NixOS, 24.11 (Vicuna), 24.11.20241009.5633bcf`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.8`
 - channels(root): `""`
 - nixpkgs: `/nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source`

Add a 👍 reaction to issues you find important.

@kira-bruneau
Copy link
Contributor

kira-bruneau commented Oct 10, 2024

Huh this is going to be tricky to figure out. I explicitly avoided hard-coding the libGL dependency in mangohud because games should already have libGL or vulkan loaded to render the game... I don't think it's a good idea to force the wrapped game to use a version that could be incompatible.

But from what I'm seeing with minetest, it looks like it uses libGL indirectly through IrrlichtMt, and won't have it loaded at the time mangohud hooks into the game.

It seems like mangohud does work if I hardcode libGL, but the font rasterization seems a bit off, and I want to make sure that adding it won't break other games:

image

@Atemu Atemu changed the title possible library issue with mangohud mangohud: libGL issue with minetest Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants