Baking lighting stuck on 'Waiting for Shaders to compile'
tracked
turtledude01
The last SDK version I was able to successfully test was 3.8.1. This one allows for lighting to bake successfully
On latest SDK 3.8.2 (And 3.8.2-beta.1):
'Generate Lighting' with unity built in lighting menu
-> Background task stuck "Waiting for shaders to compile" - The time to completion continuously rises and never moves past 5%
I am using an AMD rx 5700xt, screenshot attached is from another user who has the same issue and is using NVidia.
Log In
W i l k
OMG, I thought I was going crazy. This also caused Bakery to hang forever trying to bake occlusion probes using Unity's built in renderer.
I don't know whether Magic Light Probes failing to calculate light volumes is also related to this.
But Downgrading to 3.8.1 solved the issue
orels
Thanks for all the details, everyone ❤️
We have found the root cause and going to investigate the potential solutions
turtledude01
orels Through more testing I was able to narrow this down to the VRChat/Mobile/Standard Lite shader.
Specifically an object with 'Specular Anti-Aliasing' enabled on the Standard Lite shader. As soon as I disable this option baking works normally.
Edit: Able to 100% reproduce in a fresh project via the following steps:
- New project, put the Standard lite shader on the floor
- Configure the Mesh Renderer to enable 'Contribute Global Illumination'
- Ensure 'Specular Anti-Aliasing' is enabled on the shader
- Attempt to bake.
owlboy
orels I can confirm that these settings are present in the scene where I reproduced the issue too.
FunnyLeos
Same problem. Large project, couldn't bake light on 3.8.2
turtledude01
through more talking about this, i believe it may be related to an old sdk being updated through the years, difficult to test for sure
orels
Hey! Thanks for the report.
I need some more information since I haven't been able to get this to trigger on my end so far:
- Does the scene use any of the VRChat's shaders?
- Does this happen in a new default VRChat scene (when you create a new project it opens automatically)?
turtledude01
i make heavy use of the vrchat shaders, ill open a new test project with a single item and narrow it down tomorrow.
turtledude01
I tested a fresh unity project without issue. Additionally, I tested all VRChat and Poiyomi shaders I use in my main project where this issue is being seen. It seems to be a more complex issue than simply a shader not cooperating.
owlboy
orels This is happening on my Intel Mac too!
owlboy
orels More details:
As soon as I roll back to 3.8.1 light bake gets past that step just fine.
I also observed:
In 3.8.1 it appears to not actually need to compile any shaders. It gets past that step fast. And when it hangs on 3.8.2 it never seems to kick off the sub processes to compile shaders properly. The process(s) sit at 0% CPU and seem to become stray processes when I cancel.This post was marked as
tracked
Casa Delanoche
Without the mobile VRChat shaders, light baking also works with version 3.8.2. For example, if we use "Standard Lite" or "Bumped Diffuse" from the mobile VRChat shaders, light baking no longer works and we have to downgrade to version 3.8.1.
XenIneX
yeah, something that was done on the backend in 3.8.2-beta1 for the toon shader broke at least bumped diffuse and standard lite. dunno about other shaders, but i'm guessing it likely generalizes across at least the non-particle mobile shaders. for now, i'm just stripping the mobile shaders from the handful of places it exists in my world; its not like we care about questie performance (cries in terrible-person.... ;_; )
Casa Delanoche
We have the same problem.
Mario Manstar
I have the same issue I had to downgrade to 3.8.1 to get the lighting to generate.