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

Launcher cannot launch game on Linux [Exec format error (os error 8)] #1

Open
WolfySoy opened this issue Jan 17, 2025 · 4 comments
Open
Labels
linux-only Porting to the penguin

Comments

@WolfySoy
Copy link

WolfySoy commented Jan 17, 2025

Description:

When launching the game on linux I encounter the following error:
Failed to launch the game! :( [Exec format error (os error 8)]

lines 65-84 in commands.rs

The bug seems to be the method of executing the game’s .exe file directly, even on Linux (and I would presume macOS aswell), which it is not compatible natively.
This means the game is not being run through Steam's Proton compatibility layer, necessary for running the Window executable on Linux and macOS.

Suggested Solution:

The mod manager should detect the platform and automatically use steam's native Proton method when launching the game on Linux and macOS.
This behavior should be consistent with other mod managers (notably r2modmanPlus), which launches the game in a system-agnostic way that works across different platforms.

Environment:

  • Operating System: Gentoo Linux
  • Steam: Works fine; game launches as expected when run through Steam with/without mods.
  • Proton: The game runs through Proton without issues when launched via Steam.

Additional Information:

(There isn't debugging output specifically to this error however or I would have provided it.)

Steps to Reproduce:

  1. Install the game (and any mods.)
  2. Attempt to launch the game through the mod manager (not through Steam).
  3. The game fails to launch with the error: Exec format error (os error 8).
@WolfySoy WolfySoy changed the title Launcher cannot launch on Linux [Exec format error (os error 8)] Launcher cannot launch game on Linux [Exec format error (os error 8)] Jan 17, 2025
@WolfySoy
Copy link
Author

Also apologies, just now saw the bug template. Thus why I didn't use it as I wasnt aware there was one till now.

@kleineluka
Copy link
Owner

kleineluka commented Jan 17, 2025

no worries! I'll have to take a look at how other mod managers handle proton and various installations of it (or just wine on Mac for that matter), but you're completely right in rhat Burial right now just runs an exe (which might mean it actually works if it runs under the same prefix with the exe version but that's obviously not ideal).

this issue would also apply to the save manager as saves would be inside that prefix then, I think? not an avid Linux / proton user, sorry

@WolfySoy
Copy link
Author

WolfySoy commented Jan 17, 2025

this issue would also apply to the save manager as saves would be inside that prefix then,

Yes! It does seem to have a operating system incompatability error aswell. When downloading a new modpack when prompted to reset my saves choosing "No, keep your saves" works fine (with Quality of Life! modpack) and proceeds with the modpack download sucsessfully

Though, for some reason, seemingly any other modpacks (such as Andy and Renee, or Candy Scabs) it says "Installing mod [modname].." (For example "Installing mod andyandrenee.." infintely as in console it throws a few errors

WolfySoy@gentooOMEN ~/apps> ./burial_1.0.0_LINUX.AppImage                                                    (base) 

** (burial:23171): WARNING **: 14:55:53.955: atk-bridge: get_device_events_reply: unknown signature
thread 'tokio-runtime-worker' panicked at src/utils/rpgmaker.rs:11:68:
index out of bounds: the len is 1 but the index is 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This seems to be a seprate issue though I thought I should note.

Continuing though, however when choosing "Yes, reset my saves" it says "Backing up save files.." infintely as in console it throws the error Failed to get %APPDATA% directory: NotPresent

Here it only checks for the %APPDATA% directory
line L7 in appdata.rs

When it seems to be missing the cache folders handling compatability, like how you wrote here.
line L8 in cache.rs

WolfySoy@gentooOMEN ~/apps> ./burial_1.0.0_LINUX.AppImage                                                    (base) 
thread 'tokio-runtime-worker' panicked at src/config/appdata.rs:7:39:
Failed to get %APPDATA% directory: NotPresent
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

** (burial:26715): WARNING **: 15:04:14.711: atk-bridge: get_device_events_reply: unknown signature

I think? not an avid Linux / proton user, sorry

Also, no worries! I am more than happy to test anything I can to help in that regard.

@kleineluka
Copy link
Owner

It must be an issue with compiling those mods on Linux since they need converted to use a modloader first. I'll get an ubuntu vm running later and try messing around, sorry about the issues, linux is still pretty experimental><

@kleineluka kleineluka added the linux-only Porting to the penguin label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux-only Porting to the penguin
Projects
None yet
Development

No branches or pull requests

2 participants