Select to view content in your preferred language

WebGL error : Failed to execute 'shaderSource'

443
1
06-12-2023 11:02 AM
AdminRFVL
New Contributor III

Hi,

I have an issue with WebGL in a Web app built using Web appbuilder. I get the following warning "Too many active WebGL contexts" when the app loads followed by an error when I open some layer from the layer list widget: Uncaught TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.

I know from reading the different posts that there's a maximum number of layers to be rendered using Webgl in the 3.x JS API but what I don't know is what makes a layer "WebGL Enabled".

What are the criterias for a layer to be needing a WebGL Context rendering ? Most of our map layers come from our REST API and were added individually to the web map using the full layer url ex:
https://server-domain/arcgis/rest/services/folder/service/MapServer/1

In our Webmap we have around 80 layers from MapServer url + 10 WMS layers. Only 3-4 layers have the Failed to execute 'shaderSource'. when opend in the layer list widget.

Any input would be appreciated.

Thanks

0 Kudos
1 Reply
Tony_J_Van_Der_Wielen
New Contributor III

Any luck with this? We are running into the same issue!

0 Kudos