Game crashing due to abnormal size shader?

LoginId:2a952168433bfaecd6c0379e5eae2f9c
EpicAccountId:f01270469ae34cb2a64f8f743bce77bc

Assertion failed: SingleJob.Output.ShaderCode.GetShaderCodeSize() > 0 [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 2029] Abnormal shader code size for a succeded job: 0 bytes

UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

The error message “Assertion failed: SingleJob.Output.ShaderCode.GetShaderCodeSize() > 0” is indicating that the output of a shader compilation job is 0 bytes in size, which is unexpected. This is likely caused by a problem with the shader code or the shader compiler itself.

Here are a few things you can try to troubleshoot the issue:

  • Check the shader code for any errors or syntax issues. Make sure that all variables and functions are properly defined and that there are no missing semicolons or other syntax errors.
  • Try disabling any custom shaders or material nodes that you may have added to the project, and see if the error still occurs.
  • Check the shader compiler log files to see if there are any error messages related to the problem.
  • Make sure that your GPU and GPU drivers are up to date.
1 Like