I caught some annoying bug that leads to the black screen
It happens randomly, and I can't find what is the issue, the code seems okay, and the bug related to the render of COnstruct, something wrong happen in the render process
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'GetZElevation')
at SortByInstZElevation (layer.js:2:218)
at Array.sort (<anonymous>)
at Layer._UpdateZIndices (layer.js:40:74)
at Layer.Draw (layer.js:57:260)
at Layout._DrawLayerList (layout.js:55:107)
at Layout.DrawMain (layout.js:52:113)
at C3Runtime._Render (runtime.js:103:144)
at C3Runtime.Render (runtime.js:101:226)
at C3Runtime.Tick (runtime.js:86:418)
SortByInstZElevation layer.js:2
_UpdateZIndices layer.js:40
Draw layer.js:57
_DrawLayerList layout.js:55
DrawMain layout.js:52
_Render runtime.js:103
I saw the same issue on github, which was closed because it can't be reproduced and I can't reproduce it as well. I can't share the project sadly, it is not only mine.
So, are there any ideas on how to resolve this kind of issues?