When I open Multiple pages(More then 20) basic 3D ball pages at the same time, the page reports an error

Compute Configuration

cpu Memory disk gpu
8*i7-7700 360Ghz 16GB 250GB NVIDIA GeForce GT 730

browser:Chrome newest

Two kinds of errors
First kind

An error occurred while rendering. Rendering has stopped.
DeveloperError: Expected width to be greater than 0, actual value was 0

    at new DeveloperError (
    at Function.Check.typeOf.number.greaterThan (
    at new Texture (
    at createTextures$1 (
    at updateFramebuffers$4 (
    at GlobeDepth.update (
    at updateAndClearFramebuffers (
    at executeCommandsInViewport (
    at Scene.updateAndExecuteCommands (
    at render (

Second King

Cesium.js:1 [Cesium WebGL] Fragment shader compile log:
createAndLinkProgram @ Cesium.js:1
Cesium.js:1 WebGL: INVALID_OPERATION: getTranslatedShaderSource: attempt to use a deleted object
createAndLinkProgram @ Cesium.js:1
Cesium.js:1 [Cesium WebGL] Fragment shader translation failed.
createAndLinkProgram @ Cesium.js:1
Cesium.js:1 An error occurred while rendering. Rendering has stopped.
RuntimeError: Fragment shader failed to compile. Compile log:

    at new RuntimeError (
    at createAndLinkProgram (
    at reinitialize (
    at initialize$b (
    at ShaderProgram._bind (
    at beginDraw (
    at Context.draw (
    at DrawCommand.execute (
    at executeCommand (
    at executeCommands (
CesiumWidget.showErrorPanel @ Cesium.js:1
:18030/test/#/Map?userId=18:1 WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost

I think webgl restrictions? You cannot open multiple cesium web pages at the same time Maybe

But When I try to open your online address more then 20 on this machine. https://sandcastle.cesium.com/standalone.html#c=bY9Pa8MwDMW/ivGpgyGz6+qGQq+FHQY7+aI6Wmuq2MFSUtJPvyS9jK26vaf3058RqxkT3aiancl0MweSNHTwtXqbYOOqDyUrpkw12JdtyPbVetGJqQnZrLVPXV+qmqHyBsApdT2jkrjTEK+kEEUWcIl69xv1bRpNandPNpnIKDJ3vgfmz3SnYBvv5vw/lAu2KZ8/RqqM0xK7vDXHhwkA3s3yOaml8Anrn8nzfxfVXt6dE8xtRFEmeBwIsXTujMxUJ/cD.A miracle happened,No error reported!!

So,Call the cesium app deployed in my environment for more than 20 times and an error will be reported,but if you open your online address more than 20 times, you will not report an error.

I will try not to use the Vue Framework ,but to use pure HTML to implement the basic create Cesium page for testing. In the meantime, I hope to get some comments from you!! :smiley:

the bat Can open more pagestartOpenMultipleCesiumPage.zip (559 Bytes)

I solved it.

Container width and height must be set to the default value. As follows.

.mapViewer {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;

Because the width passed in when webgl initializes the texture must be greater than 0.


Congratulations on solving the issue! Your solution looks robust :rocket: I will share it with the community if similar questions arise.