# RuntimeError: Fragment shader failed to compile

**URL:** <https://community.cesium.com/t/runtimeerror-fragment-shader-failed-to-compile/6696>\
**Category:** CesiumJS\
**Created:** [March 20, 2018, 12:13am UTC](https://community.cesium.com/t/runtimeerror-fragment-shader-failed-to-compile/6696 "2018-03-20T00:13:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Morris](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jack\_Morris](https://community.cesium.com/u/Jack_Morris)\
**Post date:** [March 20, 2018, 12:13am UTC](https://community.cesium.com/t/runtimeerror-fragment-shader-failed-to-compile/6696/1 "2018-03-20T00:13:01Z")

</div>

Hello everyone.

**1. A concise explanation of the problem you’re experiencing.**

CesiumJS is throwing a “RuntimeError: Fragment shader failed to compile” (full trace at the end).

After searching the forums, the suggestion has been to update the graphic card’s drivers, however I’m using the latest ones.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

The problem occurs only if the GUI widgets are included.

If they are deactivated during initialization, the exception is not raised.

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

homeButton : false,

fullscreenButton : false,

navigationHelpButton : false,

navigationInstructionsInitiallyVisible: false,

sceneModePicker: false,

selectionIndicator: false,

infoBox: false,

terrainProvider : new Cesium.CesiumTerrainProvider({

url : ‘[//assets.agi.com/stk-terrain/world](https://assets.agi.com/stk-terrain/world)’

})

});

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

**4. The Cesium version you’re using, your operating system and browser.**

Cesium version: 1.42

Browser: CEF 3.2987.1601.gf035232 (Chromium 57.0.2987.133)

Graphics card: Intel HD Graphics 520

OS: Windows 10

**Traceback**  
Error

at new t ([http://localhost:8080/Build/Cesium/Cesium.js:471:28582](http://localhost:8080/Build/Cesium/Cesium.js:471:28582))

at f ([http://localhost:8080/Build/Cesium/Cesium.js:497:25773](http://localhost:8080/Build/Cesium/Cesium.js:497:25773))

at y ([http://localhost:8080/Build/Cesium/Cesium.js:497:28190](http://localhost:8080/Build/Cesium/Cesium.js:497:28190))

at d.\_bind ([http://localhost:8080/Build/Cesium/Cesium.js:497:29205](http://localhost:8080/Build/Cesium/Cesium.js:497:29205))

at V ([http://localhost:8080/Build/Cesium/Cesium.js:523:2208](http://localhost:8080/Build/Cesium/Cesium.js:523:2208))

at k.draw ([http://localhost:8080/Build/Cesium/Cesium.js:523:5843](http://localhost:8080/Build/Cesium/Cesium.js:523:5843))

at n.execute ([http://localhost:8080/Build/Cesium/Cesium.js:496:30018](http://localhost:8080/Build/Cesium/Cesium.js:496:30018))

at Ue ([http://localhost:8080/Build/Cesium/Cesium.js:544:22509](http://localhost:8080/Build/Cesium/Cesium.js:544:22509))

at He ([http://localhost:8080/Build/Cesium/Cesium.js:544:24572](http://localhost:8080/Build/Cesium/Cesium.js:544:24572))

at Ke ([http://localhost:8080/Build/Cesium/Cesium.js:545:375](http://localhost:8080/Build/Cesium/Cesium.js:545:375))

---

<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:** [March 23, 2018, 6:21pm UTC](https://community.cesium.com/t/runtimeerror-fragment-shader-failed-to-compile/6696/2 "2018-03-23T18:21:12Z")

</div>

I’m having a hard time figuring what could be going on here. Is it possible to run your application against Build/CesiumUnminified rather than Build/Cesium? It will give us a more description stack trace.

Thanks,

Gabby

---

<div class="post-metadata">

**Author:** ![Jack\_Morris](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jack\_Morris](https://community.cesium.com/u/Jack_Morris)\
**Post date:** [March 25, 2018, 9:40pm UTC](https://community.cesium.com/t/runtimeerror-fragment-shader-failed-to-compile/6696/3 "2018-03-25T21:40:02Z")

</div>

Hello Gabby.

I was unable to find instructions on how to use CesiumUnminified. How can I use it instead?

Thanks.

-Jack

---

<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:** [March 27, 2018, 8:57pm UTC](https://community.cesium.com/t/runtimeerror-fragment-shader-failed-to-compile/6696/4 "2018-03-27T20:57:57Z")

</div>

You should be able to use the [Getting Started tutorial](https://cesiumjs.org/tutorials/cesium-up-and-running/) instructions and replace “/Build/Cesium/Cesium.js” with “/Build/CesiumUnminified/Cesium.js”.

You should also be able to put your code in[this version of Sandcastle](https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases).

Thanks,

Gabby
