Possible bug in kml with clustering

Hello everybody,

Please run the Sandcastle clustering demo, just replace the URL in KmlDataSource.load with:


For me, rendering crashes with the following messages:
An error occurred while rendering. Rendering has stopped.


TypeError: Unable to get property ‘get’ of undefined or null reference

TypeError: Unable to get property ‘get’ of undefined or null reference

at addNonClusteredItem (http://cesiumjs.org/Cesium/Source/DataSources/EntityCluster.js:146:13)

at Anonymous function (http://cesiumjs.org/Cesium/Source/DataSources/EntityCluster.js:387:21)

at EntityCluster.prototype.update (http://cesiumjs.org/Cesium/Source/DataSources/EntityCluster.js:721:13)

at PrimitiveCollection.prototype.update (http://cesiumjs.org/Cesium/Source/Scene/PrimitiveCollection.js:366:13)

at updatePrimitives (http://cesiumjs.org/Cesium/Source/Scene/Scene.js:2190:9)

at executeCommandsInViewport (http://cesiumjs.org/Cesium/Source/Scene/Scene.js:2100:9)

at updateAndExecuteCommands (http://cesiumjs.org/Cesium/Source/Scene/Scene.js:1968:17)

at render (http://cesiumjs.org/Cesium/Source/Scene/Scene.js:2398:9)

at Scene.prototype.render (http://cesiumjs.org/Cesium/Source/Scene/Scene.js:2436:13)

at CesiumWidget.prototype.render (http://cesiumjs.org/Cesium/Source/Widgets/CesiumWidget/CesiumWidget.js:683:13)

The KML demo does not crash with this URL.

Also this demo does not crash if you request outputFormat=json in the URL and of course replace KmlDataSource by GeoJsonDataSource in the code.

By the way, the response to this URL consists of just 2 placemarks.

Thanks, Boris.

Hello Boris,

I was able to reproduce the crash. I’ve created an issue here for us to look into it: https://github.com/AnalyticalGraphicsInc/cesium/issues/4414



Hi Hannah,

May I ask you to pay attention to my post “Sandcastle KML demo slow in IE11, possible memory leak”. It demonstrate a crash in KML demo, but what really matters for me is very slow rendering (and slow removal too) of billboards. For me such speed is really a deal breaker.

Thanks, Boris.

(and shabbat shalom)