Shader compiler error - failed to read correct magic number

I recently upgraded to a new laptop, but have been having issues when it comes time to build. About halfway through the build process, my computer locks up, and when it recovers it spews out a bunch of errors. They are things like:

Shader compiler: internal error initializing platforms: Protocol error - failed to read correct magic number

Shader compiler: unrecognized message from the compiler process: 2

Shader compiler: internal error compiling shader snippet type=0 platform=8: Failed reading data from socket

etc.

I downloaded the Unity Viking demo to make sure it wasn’t just an issue with my existing and the same problems persist. The computer is a Dell Precision 5510, running Windows 10 and Unity 5.3.6. Has anyone experienced any issues like this?

Thanks!

Adam

So this issue has continued, even after several Unity uninstallations and re-installations with different versions. Even a blank project with just a cube will freeze up during a build on the sharedassets0.assets stage. When I reboot the computer and check the log file, it mentions the same shader compiler errors. I think those errors have something to do with the security software on my computer, but I’m wondering why they’d only show up now?

Hi guys :slight_smile: I’ve integrated Google’s AdMob to our project and have got some errors by trying to get Cloud build: 'pod' command not found and Shader compiler: internal error compiling shader snippet type=0 platform=5: Protocol error - failed to read correct magic number. The first one I was be able to fix but still struggling with the second issue. Does anyone has got the same troubles?
Thank you :slight_smile:

Part of the log file:

153: [Unity] Shader compiler: internal error compiling shader snippet type=0 platform=5: Protocol error - failed to read correct magic number
154: [Unity] Shader error in 'Skybox/Procedural': Internal error communicating with the shader compiler process
155: [Unity] UnityEngine.Debug:LogWarning(Object)
156: [Unity] UnityEngine.Debug:LogWarning(Object)
157: [Unity] UnityEngine.Debug:LogWarning(Object)
158: [Unity] UnityEngine.Debug:LogWarning(Object)
159: [Unity] UnityEngine.Debug:LogWarning(Object)
160: [Unity] UnityEngine.Debug:LogWarning(Object)
161: [Unity] UnityEngine.Debug:LogWarning(Object)
162: [Unity] UnityEngine.Debug:LogWarning(Object)
163: [Unity] Player export failed. Reason: Shader error in 'Skybox/Procedural': Internal error communicating with the shader compiler process
164: ! build of 'default4-ios' failed. compile failed
165: publishing finished successfully.
166: Finished: FAILURE