Skip to content

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

Description

@xululu200710-netizen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions