mojira.dev
MC-307053

GLFW fails to select wayland

Minecraft jar errors because it cannot find a non-existent x11 display on a linux wayland desktop. GLFW supports both x11 and wayland.

minecraft 21 functioned correctly

[20:56:27] [Render thread/INFO]: Backend library: LWJGL version 3.4.1+2
[20:56:27] [Render thread/WARN]: Detected unexpected shutdown during last game startup: resetting fullscreen mode
[20:56:27] [Render thread/WARN]: Failed to get system info for Render Extensions
java.lang.IllegalStateException: Can't getDevice() before it was initialized
	at com.mojang.blaze3d.systems.RenderSystem.getDevice(RenderSystem.java:280)
	at net.minecraft.client.Minecraft.lambda$fillSystemReport$2(Minecraft.java:2579)
	at net.minecraft.SystemReport.setDetail(SystemReport.java:91)
	at net.minecraft.client.Minecraft.fillSystemReport(Minecraft.java:2579)
	at net.minecraft.client.Minecraft.fillReport(Minecraft.java:2549)
	at net.minecraft.client.main.Main.main(Main.java:241)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:115)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
---- Minecraft Crash Report ----
// Shall we play a game?
Time: 2026-03-25 20:56:27
Description: Initializing game
java.lang.IllegalStateException: Failed to initialize GLFW, errors: [GLFW 0x1000E] X11: The DISPLAY environment variable is missing
	at com.mojang.blaze3d.platform.GLX._initGlfw(GLX.java:59)
	at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(RenderSystem.java:179)
	at net.minecraft.client.Minecraft.<init>(Minecraft.java:503)
	at net.minecraft.client.main.Main.main(Main.java:232)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:115)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

System Details:

Minecraft Version: 26.1
	Minecraft Version ID: 26.1
	Operating System: Linux (amd64) version 6.19.9-arch1-1
	Java Version: 25.0.1, Microsoft
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
	Memory: 183797120 bytes (175 MiB) / 536870912 bytes (512 MiB) up to 4294967296 bytes (4096 MiB)
	Memory (heap): init: 512MiB, used: 334MiB, committed: 512MiB, max: 4096MiB
	Memory (non-head): init: 007MiB, used: 116MiB, committed: 118MiB, max: 000MiB
	CPUs: 16
	Processor Vendor: AuthenticAMD
	Processor Name: AMD Ryzen 9 6900HX with Radeon Graphics
	Identifier: AuthenticAMD Family 25 Model 68 Stepping 1
	Microarchitecture: Zen 3
	Frequency (GHz): -0.00
	Number of physical packages: 1
	Number of physical CPUs: 8
	Number of logical CPUs: 16
	Graphics card #0 name: Rembrandt [Radeon 680M]
	Graphics card #0 vendor: Advanced Micro Devices, Inc. [AMD/ATI] (0x1002)
	Graphics card #0 VRAM (MiB): 258.00
	Graphics card #0 deviceId: 0x1681
	Graphics card #0 versionInfo: unknown
	Virtual memory max (MiB): 14903.46
	Virtual memory used (MiB): 3633.08
	Swap memory total (MiB): 0.00
	Swap memory used (MiB): 0.00
	Space in storage for jna.tmpdir (MiB): <path not set>
	Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
	Space in storage for io.netty.native.workdir (MiB): <path not set>
	Space in storage for java.io.tmpdir (MiB): available: 14898.73, total: 14903.46
	Space in storage for workdir (MiB): available: 429892.38, total: 478614.97
	JVM Flags: 2 total; -Xms512m -Xmx4096m
	Debug Flags: 0 total; 
	Launched Version: 26.1
	Launcher name: PrismLauncher
	Backend library: LWJGL version 3.4.1+2
	Backend API: Unknown
	Window size: <not initialized>
	GFLW Platform: <error>
	Render Extensions: ERR
	GL debug messages: <no renderer available>
	Is Modded: Probably not. Client jar signature and brand is untouched
	Universe: 404
	Type: Client
	Locale: en_US
	System encoding: UTF-8
	File encoding: UTF-8
	CPU: 16x AMD Ryzen 9 6900HX with Radeon Graphics

Linked issues

Comments 1

Joshua Barney

(Unassigned)

Unconfirmed

26.1

Retrieved