vittorioromeo / SSVOpenHexagon

C++20 FOSS clone of "Super Hexagon". Depends on SSVStart, SSVEntitySystem, SSVLuaWrapper, SSVMenuSystem, JSONcpp, SFML2.0. Features JSON/LUA customizable game files, a soundtrack by BOSSFIGHT, pseudo-3D effects.
https://vittorioromeo.com/openhexagon.html
Other
610 stars 76 forks source link

Can't launch on Arch Linux #384

Closed djalexkidd closed 2 years ago

djalexkidd commented 2 years ago

Hello, The game segfaults when I launch it on Arch Linux (both on Xorg and Wayland). I used the AUR version (open-hexagon-git).

[Steam]                               Initializing Steam API
[S_API] SteamAPI_Init(): Loaded '/home/user/.local/share/Steam/linux64/steamclient.so' OK.
[S_API FAIL] SteamAPI_Init() failed; connect to global user failed.
[Steam]                               Failed to initialize Steam API
[Discord]                             Successfully initialized core
[Discord]                             Successfully registered command
[Discord]                             Successfully registered Steam app
[::loadConfig]                        loading config
[hg::Config::root()]                  User-defined `config.json` file found
[::reapplyResolution]                 reapplying resolution
[1]    8162 segmentation fault (core dumped)  ./SSVOpenHexagon
Bauumm commented 2 years ago

This is a known issue. Run it with LD_PRELOAD=libstdc++.so.6 to fix

djalexkidd commented 2 years ago

Thank you it worked !

vittorioromeo commented 2 years ago

This is a known issue. Run it with LD_PRELOAD=libstdc++.so.6 to fix

@Bauumm Would adding that to https://github.com/vittorioromeo/SSVOpenHexagon/blob/master/_RELEASE/run_ssvopenhexagon_linux.sh solve the issue?

Bauumm commented 2 years ago

I remember it not working on some distros that had libstdc++.so.6 in another location (ubuntu if i remember correctly). Just not bundling the lib with the game (so deleting the file) seems to have fixed it for most people so far. But what almost all packaged software for Linux does normally is just compiling on an old version of glibc so it works everywhere.