# Unable to compile effects error

**URL:** <https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548>\
**Category:** Questions\
**Created:** [January 7, 2022, 3:13pm UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548 "2022-01-07T15:13:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cort](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cort/32/8793_2.png) [@Cort](https://forum.babylonjs.com/u/Cort)\
**Post date:** [January 7, 2022, 3:13pm UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548/1 "2022-01-07T15:13:20Z")

</div>

One of my user is encountering an “Unable to compile effects” error in the console, and one of the texture is not appearing (…but all other textures appears and everything else seems to work fine). This only seem to affect one user only; I’m unable to replicate the error and no one else has reported this issue.

On the browser console, he’s getting what appears to be shader code and the only other message that looks useful is “FRAGMENT SHADER ERROR 'sampler2DShadow” : No precision specified".

The application only uses webgl 1 and doesn’t have any custom shaders. The user with the problem is using Chrome on Windows.

Any ideas what could cause this or how I can start debugging this?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 7, 2022, 3:53pm UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548/2 "2022-01-07T15:53:19Z")

</div>

This is related to a recent release of Chrome we published 4.2.1 yesterday if that helps

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 7, 2022, 4:29pm UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548/3 "2022-01-07T16:29:06Z")

</div>

[Broken shadows after recent Chrome update in 4.2 - Bugs - Babylon.js (babylonjs.com)](https://forum.babylonjs.com/t/broken-shadows-after-recent-chrome-update-in-4-2/26479/22)

---

<div class="post-metadata">

**Author:** ![Cort](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cort/32/8793_2.png) [@Cort](https://forum.babylonjs.com/u/Cort)\
**Post date:** [January 9, 2022, 10:07am UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548/4 "2022-01-09T10:07:25Z")

</div>

Thanks. Upgrading to 4.2.1 fixed it.

Probably an off-topic question, but I’ve always thought that shader code is compiled by the GPU driver. How would a browser update caused a compilation error? Does the browser pre-process the shader code? I guess I must be understanding the shader compilation process wrongly…

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 10, 2022, 4:13pm UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548/5 "2022-01-10T16:13:29Z")

</div>

Angle is doing lots of trickery on shaders 🙂 so yup there is a browser stage involved

---

<div class="post-metadata">

**Author:** ![ivomarel](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ivomarel/32/11618_2.png) [@ivomarel](https://forum.babylonjs.com/u/ivomarel)\
**Post date:** [January 11, 2022, 9:52am UTC](https://forum.babylonjs.com/t/unable-to-compile-effects-error/26548/6 "2022-01-11T09:52:35Z")

</div>

This resolved the issue for us. Thanks so much!
