Puzzle

Puzzle

15M Downloads

Crashes with Error 255 on Linux with Wayland

Oxey405 opened this issue ยท 1 comments

commented

I'm running on a custom-ish Debian 12 setup with Wayland + GDM + NVIDIA drivers and when I ran the game with Puzzle (downloaded via Fabulously Optimized) the game kept crashing with the following error message ;
java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
Most probably, the mod isn't made to support Wayland and crashes because of that.

I seem to be the only one who ran into such an error before so if someone wants to reproduce the bug please go ahead !

Here are the full relevant logs
https://mclo.gs/DP3UBFe

java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'midnightlib' at 'eu.midnightdust.fabric.core.MidnightLibFabric'!
	at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403)
	at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
	at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401)
	at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
	at knot//net.minecraft.class_310.<init>(class_310.java:477)
	at knot//net.minecraft.client.main.Main.main(Main.java:239)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
Caused by: java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
	at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:105)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
	at java.desktop/sun.awt.X11GraphicsEnvironment.initStatic(X11GraphicsEnvironment.java:64)
	at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
	at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:37)
	at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
	at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84)
	at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
	at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:225)
	at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:41)
	at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:595)
	at java.desktop/javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:665)
	at knot//eu.midnightdust.core.MidnightLib.onInitializeClient(MidnightLib.java:27)
	at knot//eu.midnightdust.fabric.core.MidnightLibFabric.onInitializeClient(MidnightLibFabric.java:9)
	at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:399)
	... 9 more
commented

Turns out this was an error with how Prism Launcher was configured ; make sure that you do not enable X11 fallback (in flatseal if you use the flatpak version)

The fallback to X11 will not be handled correctly !