Unity 6 infinite Compiling Shader pass "ShadowCaster" bug

Screenshot 2024-10-25 134428

Ever since updating to Unity 6 I’ve been getting this infinite Compiling Shader pass “ShadowCaster”, this happens across different shaders and none of my team members are experiencing this issue.

I am in HDRP 17.0.3

I’ve tried:

  • Letting it load for 8 hours
  • Reinstalling the project
  • Deleting the Library folder
  • Checking shaders for unsupported / outdated nodes
  • Deleting the shaders and reimporting

I’d like to highlight my other two team members are not experiencing this issue.

My PC Specs:
Intel Core i5 @ 4.10GHz
Ram: 24GB
GPU: RTX 4070
M.2 SSD

5 Likes

This bug is annoying and randomly occurs.

Please file a bug from the Help menu with a repro project attached.

in unity preferences window go to probuilder and i probuilder section you find shadow cast mode to off and assign default material

Same thing.

I got an rtx 4070 ti super.
Any solution on this?

Nope, I’ve lost days of my life to this bug. It happens to me with that same shader pack that you have but also happens to me with AutoDeskInteractive shader which is built into the engine and happens the one in the screenshot I originally provided.

I just deleted the shaders and I’m currently just developing the project with a bunch of pink objects on till this gets fixed.

For some reason, after I pushed my git local to remote it stopped happening. I just simply alt + f4ed whenever it occured haha!

Man…is there any traction on this? I’m on 6…28f1, and this is starting to plague me. I’ve made zero recent changes or additions to shaders or materials, so I do not know what would have triggered this issue.

I’m sure it’s related, but I get this error anytime I start Unity now:

Error in Graph at Packages/com.unity.probuilder/Content/Shader/Standard Vertex Color.shadergraph on line 1: Parse error: syntax error, unexpected $end, expecting TOK_SHADER

Yeah I get that too after the crash, annoying too because no idea what triggers this bug

Removing and re-adding Probuilder package seems to be a workaround. If the bug will trigger again is yet to be seen.

Yeah, this really needs to be sorted! I’m still waiting for them to fix this??? happening all over the place and they seem to be ignoring it completely

Uff…it randomly returned after removing and re-adding Probuilder package. Have made zero changes to any Probuilder assets.

I find no such thing you’re speaking off, I would like to try

And it’s back, with other shaders. Seems others are experience this as well

https://www.reddit.com/r/Unity3D/comments/1fi8wkt/unity_6_keeps_crashing_trying_to_compile_the/

https://www.reddit.com/r/Unity3D/comments/1gjm48i/anyone_have_a_solution_to_this_infinite_pass/

I submitted a bug with a link to my repo. Hopefully something will come of this.

1 Like

Yep definitely back 6000.0.31f1

Error in Graph at Assets/XXX/Shaders/URP/XXX.ShaderGraph on line 1: Parse error: syntax error, unexpected $end, expecting TOK_SHADER

Experiencing this on windows. Since it seems to not get fixed, I wrote a bat script containing:

set pathToUnity="C:\Program Files\Unity\Hub\Editor\6000.0.30f1\Editor\Unity.exe"
set pathToProject="Path to my project"

taskkill -f -im Unity.exe
start "" %pathToUnity% -projectPath %pathToProject%
exit

I created a shortcut to this bat script in C:\ProgramData\Microsoft\Windows\Start Menu\Programs and pinned it in the start menu. Now when Unity hangs, I press Windows button and click the script shortcut - it gets force reopened.

And remember to save regularly.

2 Likes

This is massively annoying, please fix this Unity!

I reimported ProBuilder as some people said it was related to it - but I still get the issue.

Can anyone post the link to the bug report? I can’t find it.

I have the issue on URP .23 and .30f1

I hope they fix this soon! :pray: :pray:

I have same problem in 6000.0.28f1

Also having this issue 6000.0.29f1