Skip to main content
warningCrash ReportsAffects: Java Edition 1.17 and later

How to Fix Shader Compilation Failed

Shader errors come from resource packs with broken core shaders or from the graphics driver. What Couldn't compile and Resource reload failed mean in 26.2.

Quick Fix

Turn off resource packs that change shaders. If the error comes back without packs, update your graphics driver and set Graphics API to Default.

Error Message

java.lang.RuntimeException: Failed to load required shader programs:

How to Fix

1

Turn off resource packs in Options, Resource Packs, and start the game. Packs with files in assets/minecraft/shaders replace vanilla shaders.

2

Search latest.log for Couldn't compile. The compiler message after it comes from the graphics driver and points to the problem in the shader.

3

Update the resource pack to a version made for your Minecraft version, because core shaders change between releases.

4

Update your graphics driver.

5

Set Graphics API back to Default or Prefer OpenGL if you switched to Prefer Vulkan (Experimental). The change needs a restart.

6

If the game warns Graphics Device Unsupported for Fabulous! graphics, choose Fancy instead.

Common Causes

  • A resource pack replaces a core shader with code that doesn't compile. The log shows Couldn't compile with the shader and the compiler's message, or Couldn't compile pipeline with the shader that was invalid.
  • A required shader can't be loaded at all. The game throws Failed to load required shader programs, removes all selected resource packs and shows Resource reload failed.
  • A shader file is missing. The log says Couldn't find source for, followed by the shader type and name.
  • The graphics driver can't link the shader program. The error then starts with Error encountered when linking program containing VS and FS and ends with the driver's log.
  • With Prefer Vulkan (Experimental), drawing with a broken pipeline stops the game with Pipeline is not valid (may contain invalid shaders?).
  • Shader loaders such as Iris use their own shader packs and messages, which are separate from the vanilla core shaders.

Diagnostic Steps

  1. Turn off resource packs.
  2. Search latest.log for Couldn't compile.
  3. Update the pack or the graphics driver.
  4. Set Graphics API back to Default.

FAQ

What are core shaders?

The shader files the game uses to draw everything from terrain to text. Minecraft 26.2 keeps them in assets/minecraft/shaders/core, and resource packs can replace them.

Why were my resource packs turned off?

When a required shader fails to load, the game removes all selected resource packs to get back to a working state and shows Resource reload failed. Fix or remove the broken pack before you turn the others back on.

Does Vulkan fix shader errors?

No. Vulkan is marked experimental in 26.2, and shaders from resource packs still have to compile. Keep Graphics API on Default unless you have a specific reason to change it.

Related Errors

Need More Help?