VulkanMod icon indicating copy to clipboard operation
VulkanMod copied to clipboard

VRenderSystem.getFogData() returns null in multiple rendering passes (Clouds, Terrain, Sky)

Open xululu200710-netizen opened this issue 4 months ago • 2 comments

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

  1. Launch Minecraft 26.1 Fabric with VulkanMod and malilib familes.
  2. Enter a singleplayer world.
  3. 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

xululu200710-netizen avatar Jul 13 '26 14:07 xululu200710-netizen

now it can run without crashing on fabric API 0.145.1+26.1

xululu200710-netizen avatar Jul 15 '26 19:07 xululu200710-netizen

now it can run without crashing on fabric API 0.145.1+26.1

If it's no longer an issue then you can close this.

Versatile-One avatar Jul 16 '26 01:07 Versatile-One