Rendering is stopped Cesium 1.108

Getting this error
"
Cesium.js:22364 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘_target’)
at UniformSampler.set (Cesium.js:22364:23)
at ShaderProgram._setUniforms (Cesium.js:23287:19)
at continueDraw (Cesium.js:36008:19)
at Context.draw (Cesium.js:36072:5)
at DrawCommand.execute (Cesium.js:20250:13)
at executeCommand (Cesium.js:221224:17)
at executeCommands2 (Cesium.js:221474:11)
at executeCommandsInViewport (Cesium.js:221938:5)
at Scene4.updateAndExecuteCommands (Cesium.js:221745:7)
at Picking.pick (Cesium.js:211209:11)
at Scene4.pick (Cesium.js:222473:26)
at _callee6$ (Pools.tsx:2193:1)
at tryCatch (runtime.js:63:1)
at Generator.invoke [as _invoke] (runtime.js:293:1)
at Generator.next (runtime.js:118:1)
at asyncGeneratorStep (asyncToGenerator.js:3:1)
at _next (asyncToGenerator.js:25:1)
at asyncToGenerator.js:32:1
at new Promise ()
at asyncToGenerator.js:21:1
at onMouseMove (Pools.tsx:2179:1)
at handleMouseMove (Cesium.js:178115:7)
at handlePointerMove (Cesium.js:178504:7)
at HTMLCanvasElement.listener (Cesium.js:177861:7)
"

I have implemented clipping on google photorealistic tiles. The problem is, when I clip an area, and then on mouse hover on 3D model / extruded polygon within clipped area, viewer gets crashed… I dont know why is this happening because with cesium 1.91 everything is working fine.

Hi @saadat2930,

This is a bug. See There is a possibility of throw an error in a frame when continuously modifying the clipping planes and picking · Issue #11410 · CesiumGS/cesium · GitHub for more info.

Thanks,
Gabby

1 Like

Hi @Gabby_Getz ,

Thanks, I resolved it by not adding clipping plane collection multiple times in the code, instead I added an empty clippingPlaneCollection at the initialization of 3D tileset, and then I use removeAll() function to clear existing clipping planes from the collection & add new planes to that collection. This way it is not throwing any error.