Hello Cesium Support Team,
I am reaching out for assistance regarding an intermittent rendering crash in our CesiumJS-based application. We see this issue during map initialization or when loading entities, and it occurs unpredictably in production.
We consistently receive the following runtime error:
An error occurred while rendering. Rendering has stopped.
TypeError: Failed to execute ‘shaderSource’ on ‘WebGL2RenderingContext’:
parameter 1 is not of type ‘WebGLShader’.
We also see Chrome DevTools reporting that the render process unexpectedly terminates:
Debugging connection was closed. Reason: Render process gone.
Environment Details
-
Browser: Google Chrome 114.0.5
-
CesiumJS Version: (114)
-
GPU: Hardware supports 3D + WebGL
-
Context: WebGL2
-
Environment: Production
-
Features: Using Cesium Custom Shaders + multiple 3D entities
Observed Behavior
-
The crash is random, not tied to specific user actions.
-
It typically occurs during scene load (“Initializing entities”).
-
When the error appears, Cesium stops rendering entirely.
-
The issue seems related to shader creation or WebGL2 context loss.
Screenshots
Below are screenshots showing the crash, error dialogs, and DevTools output:
Screenshot 1 – Rendering crash message
Screenshot 2 – DevTools showing WebGL shaderSource error
Screenshot 3 – Full stack trace and error screen
Questions for Support
-
Is this a known CesiumJS issue with WebGL2 or custom shader handling?
-
Are there recommended mitigation steps (memory settings, context options, shader limits, etc.)?
-
What is the recommended approach for handling WebGL context loss in Cesium?
-
Could this be caused by custom shaders combined with 3D Tiles?
-
Are there fixes for this issue in more recent Cesium releases?
Any guidance would be greatly appreciated. The issue is affecting production stability, and we would like to understand the root cause and recommended remediation.
Thank you very much.
Best regards,
Efi Ben Ezra



