Crashing with "An error occurred while rendering" after years of operation

I have a website that uses CesiumJS version 1.63.1 (yeah, old) to display locations on the Earth. I haven’t modified the site for years (2020?). Recently, it started displaying errors when the page is rendered.

When using the minimized version of Cesium.js, the following is displayed in the browser:

An error occurred while rendering. Rendering has stopped.
RangeError: Invalid array length
RangeError: Invalid array length
    at updateFrustums (
    at View.createPotentiallyVisibleSet (
    at executeCommandsInViewport (
    at Scene.updateAndExecuteCommands (
    at render (
    at tryAndCatchError (
    at Scene.render (
    at CesiumWidget.render (
    at e (

The above text plus the following are displayed in my debugger’s output window:

An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 0 Y: 0 Level: 0.
An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 1 Y: 0 Level: 0.

When using the unminified version, the two “Failed to obtain terrain tile” messages (shown above) are displayed in the debugger’s output window, there aren’t any references to the “array length”, and the map area is rendered showing stars but not the Earth.

I started to upgrade from 1.63.1 to 1.111, but it looks like that’ll require significant changes to the existing code.

Has something changed in the tile provider(?) that could be causing this problem? My code has been dormant for years (at least since 2022, but more likely since 2019).


Looking at the time when this was opened, it might be related to a temporary glitch in the data providers that should be resolved as of Asset 1 not working ( Layer Cannot Found ) - #6 by Matt_Amato . Otherwise (if the error still appars for you), this might have to be investigated further.

Ah! That was it. Thanks!