Skip to content

[Linux] Error Initializing the Galaxy API #1020

@TheConfectioner

Description

@TheConfectioner

Describe the bug
I think this issue has been around for over a year, and I'm not sure what the best way to resolve this glibc issue is. It's not a pressing issue for single-player players, but it would be great if it were resolved. The various workarounds currently available seem far from ideal:

  1. Downgrading glibc to version 2.40 is very dangerous for novice users and can render the system unbootable.
  2. Switching Stardew Valley from the native Linux version to Proton compatibility also increases the risk of breakage because it makes SDV and all its mods dependent on Proton.
  3. Clearing the GNU_STACK program header with commands like execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so or patchelf --clear-execstack libGalaxy64.so libGalaxyCSharpGlue.so. The prelink package that contains execstack is no longer available on Debian and Arch. I've also tried using patchelf, but for some reason my SMAPI doesn't load and instead launches Stardew Valley directly.
  4. Replacing the default libraries with the ones patched by someone else (libGalaxy64.so and libGalaxyCSharpGlue.so). This is currently my preferred solution, and it's also the easiest for most people. The author of the Discord thread warned about the dangers of randomly downloading unknown files.

To Reproduce

  1. Install SMAPI on Linux.
  2. Run it.

Log file
https://smapi.io/log/f3ffc69cd58f45d78b15e1175ba1aae7

Screenshots
Just in case my SMAPI log expired
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions