# RuntimeError: Vertex shader failed to compile error in iOS

**URL:** <https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104>\
**Category:** CesiumJS\
**Created:** [September 24, 2015, 1:58am UTC](https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104 "2015-09-24T01:58:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio\_Giraldo](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Mauricio\_Giraldo](https://community.cesium.com/u/Mauricio_Giraldo)\
**Post date:** [September 24, 2015, 1:58am UTC](https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104/1 "2015-09-24T01:58:44Z")

</div>

I am getting a RuntimeError: Vertex shader failed to compile in iOS.

This does not occur in desktop browsers.

The app in question can be found in: [http://mgiraldo.github.io/pic/](http://mgiraldo.github.io/pic/)

The error log starts with:

[Cesium WebGL] Vertex shader compile log: ERROR: 0:7: ‘_’ : wrong operand types no operation '_’ exists that takes a left-hand operand of type ‘uniform lowp samplerCube’ and a right operand of type ‘highp 4-component vector of float’ (or there is no acceptable conversion)  
ERROR: 0:7: ‘assign’ : cannot convert from ‘uniform lowp samplerCube’ to ‘Position highp 4-component vector of float’

``

Any idea why this is happening?

---

<div class="post-metadata">

**Author:** ![Mauricio\_Giraldo](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Mauricio\_Giraldo](https://community.cesium.com/u/Mauricio_Giraldo)\
**Post date:** [September 24, 2015, 2:00am UTC](https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104/2 "2015-09-24T02:00:32Z")

</div>

iOS 9

navigator.appVersion: “5.0 (Macintosh; Intel Mac OS X 10\_11) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Safari/601.1.42”

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [September 24, 2015, 3:04pm UTC](https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104/3 "2015-09-24T15:04:15Z")

</div>

This is a bug in Safari. See this thread for details: [https://groups.google.com/d/msg/cesium-dev/KVS97hZLXIY/sScWEzHcAAAJ](https://groups.google.com/d/msg/cesium-dev/KVS97hZLXIY/sScWEzHcAAAJ)

---

<div class="post-metadata">

**Author:** ![dihand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dihand/32/6622_2.png) [@dihand](https://community.cesium.com/u/dihand)\
**Post date:** [February 14, 2023, 8:05pm UTC](https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104/4 "2023-02-14T20:05:34Z")

</div>

similar BUG in Jan 2023 -  
Win 11 x64, last Chrome v110 , ASUS ROG STRIX 9750H 16Gb RTX2070

Cesium.js:50 [Cesium WebGL] Vertex shader compile log: ERROR: 0:15: ‘a\_normal’ : undeclared identifier  
ERROR: 0:15: ‘normalize’ : no matching overloaded function found  
ERROR: 0:15: ‘=’ : dimension mismatch  
ERROR: 0:15: ‘=’ : cannot convert from ‘const mediump float’ to ‘highp 3-component vector of float’

BUT in my Macbook M1 today last Chrome v110 all good work. Also all good work severals day ago & last 2 years )

Im simply load 3D models without ANY my shaders

![image](https://global.discourse-cdn.com/cesium/original/2X/e/ec08517ae4a290668c5d01ebaa7bee2564d31798.png)

 ![image](https://global.discourse-cdn.com/cesium/original/2X/b/b419aa6c9d33f11fdfaafebad97fe3251180a302.png)

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [February 22, 2023, 8:08pm UTC](https://community.cesium.com/t/runtimeerror-vertex-shader-failed-to-compile-error-in-ios/3104/5 "2023-02-22T20:08:23Z")

</div>

Hi @dihand,

In the January release, we included [moving to WebGL 2 by default, which requires an update of any custom shader code](https://github.com/CesiumGS/cesium/pull/10894). If you are still having trouble, I would suggest opening a new thread and including a [Sandcastle example](https://sandcastle.cesium.com/) which replicates the issue.
