VulkanMod icon indicating copy to clipboard operation
VulkanMod copied to clipboard

Failed to initialize window - Minecraft 26.1.2 crash

Open ChronEngi opened this issue 7 months ago • 4 comments

Describe the bug

Game crashes immediately on startup. VulkanMod's WindowMixin fails to initialize its config field before Window. tries to read config.windowMode, resulting in a NullPointerException.

Tested with only VulkanMod + Fabric API. No other mods involved.

Problem: Game crashes immediately during window initialization: java.lang.NullPointerException: Cannot read field "windowMode" because "config" is null at com.mojang.blaze3d.platform.Window.setMode(Window.java:1276) at com.mojang.blaze3d.platform.Window.(Window.java:120)

Environment

  • Minecraft: 26.1.2
  • Fabric Loader: 0.19.2
  • VulkanMod: 0.6.4
  • Java: 25.0.1
  • OS: Linux x64 (kernel 6.17.0)
  • GPU: AMD Radeon Vega 8 (RADV RAVEN, Vulkan 1.4.335)
  • Launcher: Prism Launcher 11.0.2 (flatpak)

Steps to reproduce

  1. Install Minecraft 26.1.2 with Fabric Loader 0.19.2
  2. Add VulkanMod 0.6.4 and Fabric API
  3. Launch the game

Log files

latest.log

ChronEngi avatar Apr 24 '26 22:04 ChronEngi

Oops, forgot to attach the crash report: crash-2026-04-25_00.29.04-client.txt

ChronEngi avatar Apr 24 '26 22:04 ChronEngi

This issue was introduced in 0.6.4, and it looks like the crash is happening because the new version can't create the config file. When the config file is already present before launching, the game works fine.

nickademas avatar Apr 25 '26 01:04 nickademas

Workarounds:

  1. Downgrade to VulkanMod 0.6.3 or wait for a newer version.

    Or

  2. Generate the config file from another version like 0.6.3 and then upgrade to 0.6.4.

ChronEngi avatar Apr 25 '26 09:04 ChronEngi

This is fixed now on 0.6.5

Versatile-One avatar Apr 25 '26 15:04 Versatile-One