[Bug] WebGL warnings when loading model in multiple Cesium viewers

Description:

I recently encountered an issue while building an application that supports multiple Cesium views. The viewers are created as separate instances, with their own entities. I am able to add entities that use basic shapes (polylines, points, etc.) without issue, but I receive the following warnings in the console when attempting to add model entities:

I created a minimal Sandcastle to reproduce the warnings. One thing to note is the commented setTimeout that demonstrates that the issue occurs even if the second viewer is initialized, and second model added, some time after the first.

Any help would be much appreciated! Thank you!

Sandcastle:

Multiple viewers

Similar Issues:

Tileset lighting broken

[Bug Report] OSM Buildings broken when multiple viewers involved

System:

  • Win 11 Pro
  • Chrome 141.0.7390.123
  • RTX 5070 Ti Laptop

Interesting.. I can replicate this on my machine (MacOS Sequoia 15.6, Apple M4 Max), but only on Chrome, not Firefox.

It does look like there are other instances of this on the forums, as you pointed out. I can do some investigation to see if there’s an issue tracking this on github, but I know we have plans to support multiple viewports that share a GL context instead of having separate contexts, so there’s also a hope this issue may resolve itself in time.

I’ll update if I find anything useful.

1 Like

Looks like we’re mostly tracking multiple-viewport-related issues here. As I said, we intend to do a major rework to multiple viewports so they can share a context. I’ll cross link this post so we keep it in mind when we do that.

2 Likes

I appreciate the update, and for the multi-viewport git link! I’ll be watching its progress with interest, as out-of-the-box multi-viewport support would be a very useful feature for our use-case.

Thank you again for your help!