WebGL errors with 4.26.4

2203
3
Jump to solution
03-01-2023 11:42 AM
VictorBerchet
Frequent Contributor

I have updated my app from 4.25 to 4.26.4 and got a WebGL error

184WebGL: INVALID_OPERATION: useProgram: program not valid
72WebGL: INVALID_OPERATION: getUniformLocation: program not linked
@arcgis_core_views_SceneView.js?v=d508d2c9:25775 WebGL: too many errors, no more errors will be reported to the console for this context.

 

I was able to narrow down the issues to this code

The error is gone when those 2 lines are commented out.

Is this a bug in 4.26?

0 Kudos
1 Solution

Accepted Solutions
VictorBerchet
Frequent Contributor

I figured out the root cause. I had:

 

 

 

// https://community.esri.com/t5/arcgis-api-for-javascript-questions/3d-scene-view-slow-with-es-modules-from-4-21/m-p/1218085
externalRenderers.forceWebGLContext(1);

 

 
In my code. Removing that fixed the issues.
 
What about adding an error log in 4.26? (or ignoring the call).

View solution in original post

0 Kudos
3 Replies
VictorBerchet
Frequent Contributor

The layer is created as 

 

this.gndGraphicsLayer = new GraphicsLayer({ elevationInfo: { mode: 'on-the-ground' } });

 

 
When I remove the elevationInfo it starts working again. It seems like a bug the API.
0 Kudos
VictorBerchet
Frequent Contributor
0 Kudos
VictorBerchet
Frequent Contributor

I figured out the root cause. I had:

 

 

 

// https://community.esri.com/t5/arcgis-api-for-javascript-questions/3d-scene-view-slow-with-es-modules-from-4-21/m-p/1218085
externalRenderers.forceWebGLContext(1);

 

 
In my code. Removing that fixed the issues.
 
What about adding an error log in 4.26? (or ignoring the call).
0 Kudos