-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
I'm trying to debug an unusual Cesium crash with 3D Tiles. A hierarchy of Composite-packed models is being loaded (although the same issue occurred with un-composited b3dm models). The top-level tile and model loads fine; after zooming, Cesium starts to load the child models. After a predictable amount of time, which appears from the Network debugging tab in Chrome to correspond to all child Composite tiles being loaded, Cesium crashes with the following error, context, and call stack.
Error (in cesium/Source/Renderer/Texture.js):
if (width <= 0) {
throw new DeveloperError('Width must be greater than zero.');
}
Call stack:
Texture
createTexture
updateFramebuffers
GlobeDepth.update
updateAndClearFramebuffers
executeCommandsInViewport
updateAndExecuteCommands
render
The context (that is, scene._context) passed all the way down to Texture() from updateAndClearFramebuffer has width (drawingBufferWidth) and height (drawingBufferHeight) 0. Therefore, as far as I can tell, the models themselves are not the problem. How can I proceed in debugging this issue, as I suspect Cesium itself, not my models, are at fault? Thanks in advance, and my apologies if it turns out to be a spurious issue.