mapbox / mapbox/mapbox-maps-flutter
gl_InstanceID0.0'. Error: 'program failed to link'. Retrying with compilation from source
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting many of these messages in amber text color in the debug console.
What could be the problem? The MapWidget is working fine, but there are crashes sometimes on that page.
Debug Console
```
[mapbox-maps-flutter] [maps-core]: {}[Shader]: glProgramBinary failed for shader 'symbol_sdf_text#version 310 es
#define HAS_ATTRIBUTE_a_pos_offset
#define HAS_ATTRIBUTE_a_tex_size
#define HAS_ATTRIBUTE_a_pixeloffset
#define HAS_ATTRIBUTE_a_projected_pos
#define HAS_ATTRIBUTE_a_fade_opacity
#define HAS_UNIFORM_u_texb
#define HAS_UNIFORM_u_globe_anchor
#define HAS_UNIFORM_u_globe_normal
#define HAS_UNIFORM_u_auto_z_offset
#define HAS_UNIFORM_u_occlusion_query_opacity
#define HAS_ATTRIBUTE_a_opacity
#define HAS_UNIFORM_u_occlusion_opacity
#define HAS_ATTRIBUTE_a_fill_color
#define HAS_UNIFORM_u_halo_color
#define HAS_UNIFORM_u_halo_width
#define HAS_UNIFORM_u_halo_blur
#define HAS_UNIFORM_u_emissive_strength
#define HAS_UNIFORM_u_z_offset
#define HAS_TEXTURE_u_texture
#define HAS_TEXTURE_u_texture_icon
#define TERRAIN
#define TERRAIN_DEM_FLOAT_FORMAT
#define LIGHTING_3D_MODE
#define DEPTH_OCCLUSION
#define DEPTH_D24
#define RENDER_SDF
'. Error: 'program failed to link'. Retrying with compilation from source
[mapbox-maps-flutter] [maps-core]: {}[Shader]: glProgramBinary failed for shader 'occlusion#version 310 es
#define HAS_ATTRIBUTE_a_offset_xy
#define TERRAIN
#define TERRAIN_DEM_FLOAT_FORMAT
gl_InstanceID0.0'. Error: 'program failed to link'. Retrying with compilation from source
```
Environment
Flutter 3.27
Android Virtual Device
* API 34
* Graphics: Hardware
* OpenGL Renderer: Desktop native OpenGL
* OpenGL API level: Autoselect
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the shader-linking messages and intermittent crashes around the MapWidget on the stated Flutter 3.27 Android API 34 emulator configuration. Compare the debug-console failures with the crashes and determine whether the issue is specific to the emulator's Desktop native OpenGL renderer; done means the failure's cause is established and a verified fix or workaround is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100