Closed (fixed)
Project:
Mapbox UI
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Aug 2021 at 14:47 UTC
Updated:
29 Dec 2022 at 14:06 UTC
Jump to comment: Most recent
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.
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
Comment #2
berramou commentedComment #4
oumoumad commentedComment #5
oumoumad commented