Game crashes using Wayland
Describe the bug
The game crashes during client initialization when VulkanMod is loaded under a Wayland session.
Steps to reproduce
- Install VulkanMod (in ATLauncher)
- Run the game
- Crash
Log files
Bad log: crash-2026-03-31_15.22.03-client.txt Good log: paste.atlauncher.com
Considering it has supposedly "wayland support", when I run the game with this environment variable: XDG_SESSION_TYPE=x11, the game runs perfectly fine with the mod.
Weird. I am using wayland(on fedora 43) and vulkanmod works. Although I am using prism launcher but I am not sure if that has anything to do with this.
YOUR LOG
-- VulkanMod Device Report --
Device Manager not initialized
When I run under wayland I have to add WayFix (https://modrinth.com/mod/wayfix) to get past device not initialized but my logs look different:
I get the end like you have MY LOGS
-- VulkanMod Device Report --
Device Manager not initialized
up above is where I get this:
java.lang.IllegalStateException: Can't getDevice() before it was initialized
at knot/com.mojang.blaze3d.systems.RenderSystem.getDevice(RenderSystem.java:451) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_68671(class_310.java:2432) ~[client-intermediary.jar:?]
at knot/net.minecraft.class_6396.method_37123(class_6396.java:70) [client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_37274(class_310.java:2432) [client-intermediary.jar:?]
at knot/net.minecraft.class_310.method_22681(class_310.java:2402) [client-intermediary.jar:?]
at knot/net.minecraft.client.main.Main.main(Main.java:258) [client-intermediary.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.14.jar:?]
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:115) [NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?]
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]
it's red in PrismLauncher so it should be easy to find.
TLDR: mod to try and load: https://modrinth.com/mod/wayfix
EXTRA: and sometimes LANG and LC_ALL flags have to be set for me but doesn't seem you have that issue just check again in your logs if you crash after adding WayFix for Fabric (idk for Forge or if there is ever a Forge port of this mod or how Wayland works on Forge at all since I only use Fabric stuff lately)
@heav33n Can you try the latest vulkanmod version to see if it happens?
@Versatile-V1 i don't have this problem anymore, thanks