Describe the bug
Description
VulkanMod crashes with NullPointerException because net.vulkanmod.vulkan.VRenderSystem.getFogData() returns null when setting up shader uniforms. The crash occurs in different rendering passes depending on configuration:
- With clouds enabled:
CloudRenderer.renderClouds
- With clouds disabled:
WorldRenderer.renderSectionLayer (terrain)
- After downgrading VulkanMod + with Beryl:
SkyRenderer2.renderSkyDisc (sky disc)
The issue happens entering a singleplayer world.
Tested variations:
- Clouds ON/OFF (still crashes)
- VulkanMod 0.6.8+26.1.2 (latest) and 0.6.6 (downgraded)
- With/without Beryl mod
Crash Logs
- Full crash reports attached (3 different crashes).
- Common stack trace always points to
Uniforms.lambda$setupDefaultUniforms* accessing fields like cloudEnd / environmentalStart / renderDistanceStart from null fog data.
Environment
- Minecraft: 26.1 (Fabric 0.19.3)
- VulkanMod: 0.6.8+26.1.2 (also reproduced on 0.6.6)
- Launcher: PCL
- OS: Windows 11 (amd64)
- GPU: NVIDIA GeForce RTX 4060 Laptop GPU (Vulkan 1.4.341)
- Java: 25.0.1 (Microsoft)
- Render Distance: 16
- Other relevant mods: Beryl 0.2.0-alpha, Not Enough Vulkan, Malilib family (Tweakeroo, MiniHUD, etc.), Jade, JourneyMap, Advanced XRay
Additional Info
- The crash is not present without malilib family mods.
- Happens on entering the world.
Steps to reproduce
- Launch Minecraft 26.1 Fabric with VulkanMod and malilib familes.
- Enter a singleplayer world.
- Crash occurs when entering.
Log files
错误报告-2026-7-13_21.53.03.zip
错误报告-2026-7-13_21.57.01.zip
错误报告-2026-7-13_22.01.15.zip
Describe the bug
Description
VulkanMod crashes with
NullPointerExceptionbecausenet.vulkanmod.vulkan.VRenderSystem.getFogData()returnsnullwhen setting up shader uniforms. The crash occurs in different rendering passes depending on configuration:CloudRenderer.renderCloudsWorldRenderer.renderSectionLayer(terrain)SkyRenderer2.renderSkyDisc(sky disc)The issue happens entering a singleplayer world.
Tested variations:
Crash Logs
Uniforms.lambda$setupDefaultUniforms*accessing fields likecloudEnd/environmentalStart/renderDistanceStartfrom null fog data.Environment
Additional Info
Steps to reproduce
Log files
错误报告-2026-7-13_21.53.03.zip
错误报告-2026-7-13_21.57.01.zip
错误报告-2026-7-13_22.01.15.zip