How to try catch error when viewer.render()

i use: useDefaultRenderLoop: true
i do not know why something is wrong when viewer.render()
cesium version 1.119

RangeError: Invalid array length at dut (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:12894:9176) at YD.createPotentiallyVisibleSet (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:12894:11474) at Cy (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15585:28543) at mi.updateAndExecuteCommands (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15585:25802) at f0t (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15585:39163) at OS (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15585:39361) at mi.render (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15585:40389) at zS.render (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15587:1631) at n (http://192.168.1.155:8075/static/Build/Cesium/Cesium.js:15585:55154)

It’s hard to say what happens, because you didn’t write what exactly you are trying to render.

Please try to write your code in a Sandcastle, see if you can reproduce it there, and then share that sandcastle with us.