Problem/Motivation

Uncaught TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
    at new di (mapbox-gl.js:33)
    at so.useProgram (mapbox-gl.js:33)
    at so.clearStencil (mapbox-gl.js:33)
    at so.render (mapbox-gl.js:33)
    at r._render (mapbox-gl.js:33)
    at mapbox-gl.js:33

together with

WARNING: Too many active WebGL contexts. Oldest context will be lost.

Steps to reproduce

We use the plugin with the follwoing settings (mapbox_ui.settings.yml):

accessToken: XXXXX
style: 'mapbox://styles/oumoumad/cjvzaby660bk01cpo0xqq4xbe'
longitude: '47.576600'
latitude: '7.586780'
markerLongitude: ''
markerLatitude: ''
popupText: ''
zoom: 12
navigationControl: true
_core:
  default_config_hash: rZfScngbX5lI7Binh65An7Y203FIK5NU3gL8qNSHI6Q
langcode: de
'  navigationControl': 0

Can you reproduce the issues on your side?

There are also issues on mapbox-gl-js on GitHub with are discussing this issue.
A fix seems to be merged already. Should this project use a newer mapbox-gl-js version?

https://github.com/mapbox/mapbox-gl-js/issues/8986
https://github.com/mapbox/mapbox-gl-js/issues/6312

And the potential fix:

https://github.com/mapbox/mapbox-gl-js/pull/9017

Thanks for this great module and looking into this.

Comments

fhaeberle created an issue. See original summary.

berramou’s picture

Status: Active » Needs work

  • 20f9d448 committed on 2.0.x
    Issue #3228369: Failed to execute 'shaderSource' on '...
oumoumad’s picture

Version: 8.x-1.3 » 2.0.0
Assigned: Unassigned » oumoumad
Status: Needs work » Fixed
oumoumad’s picture

Status: Fixed » Closed (fixed)