Skip to content

Game crash with Forge and Wayland Linux #358

@CynicalBusiness

Description

@CynicalBusiness

We are utilizing the launcher for our Forge-powered modded server, but we some of our Linux players are reporting to be unable to start the game through the launcher, even though MultiMC/PrismLauncher work fine for them.

The crash is the following (this is the entire game log file!):

[cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [<redacted for brevity> --launchTarget, forgeclient, --fml.forgeVersion, 47.2.20, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412]
[main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.12 by Oracle Corporation; OS Linux arch amd64 version 6.10.3-200.fc40.x86_64
[net.minecraftforge.fml.loading.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow
[EARLYDISPLAY/]: ERROR DISPLAY
Failed to initialize graphics window with current settings.


Failure details:
We are unable to initialize the graphics system.
glfwInit failed.


If you click yes, we will try and open https://links.minecraftforge.net/early-display-errors in your default browser

I found information that Wayland support does not work without this patch and the relevant JVM arguments, so we have a flatpak build which includes it, but the issue persists.

Testing revealed that the problem only occurs with Wayland Linux (Arch, Fedora, Gentoo, SteamOS, etc.) and X11 appears to work fine, as do our macOS and Windows builds. Our fork is up-to-date with master.

I am unable to find any further information on the topic and these Linux users are turning out to be a much larger portion of our playerbase than expected. Any ideas?

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