Still Error loading image for billboard: DeveloperError: Width must be less than ... maximum texture size

Hi,

i wrote a testprogram that displays 1000 billboards around the world. The billboards have a svg-image defined in a symbol-library.

I got this error in several test cases independent of size and number of the images.

I see the report

https://groups.google.com/g/cesium-dev/c/JzpfPUvBdEA

and also the comments in

but I can’t solve the problem. Is the problem actually solved in chrome or not ?
Has someone a solution for this ?

The problem happens unpredictable - sometimes with thousand billboards but in other examples also with hundred.

Rüdiger

I have written an sandcastle and could reproduce the error:

var viewer = new Cesium.Viewer('cesiumContainer', {timeline : false, animation : false});

var b64 = "data:image/svg+xml;base64,";
var imagearray = [];

fetch('http://localhost:8080/Apps/SampleData/svgStrings.txt')
  .then(response => response.text())
  .then(data => {
    imagearray = data.split('|');
  
    var count = 0;
    var mysvg = b64 + btoa(imagearray[count]);
  
    for (var i=-0; i < 180; i++) {
      for (var j=-0; j <80; j++) {
        
        
        if (count <= imagearray.length-1) {
          mysvg = b64 + btoa(imagearray[count]);
          count++;
        }else {
          count=0;
          mysvg = b64 + btoa(imagearray[count]);
          count++;
        }
        
        viewer.entities.add({         
        name : 'mySVG',
        position : Cesium.Cartesian3.fromDegrees(i, j),
        billboard : { image : mysvg }
        });
      }

    viewer.zoomTo(viewer.entities);  
    }
  }
);

In the file svgStrings.txt there 11000 svg-images of different content separated by ‘|’ - it is not public.

Why is this a developer-error ? In which way could I prevent this error ?
Is there a possibility to clean the textureAtlas - what are the consequences ?

Regards

Rüdiger

Hi,

has anyone solved this problem ?

We evade this message by setting the calculated size to the maximum and add the image nevertheless.

this works, but I don’t know if I loose texture information ?

Can anyone from Cesium help ?

Regards Rüdiger