Native crash (SIGSEGV) in glProgramBinary on MediaTek / PowerVR GE8320 when the map is created (Android, 32-bit)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start by reviewing the Android Maps SDK 11.26 call path into glProgramBinary and the supplied MediaTek/PowerVR tombstone; the issue does not identify a repository file or test. Reproduce on the Galaxy A10s with a release build, then investigate whether shader binary loading can be disabled or fall back to source compilation. Done means the fresh-process map creation no longer crashes, or a supported workaround is identified.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
On a Samsung Galaxy A10s (SM-A107F), the app crashes intermittently with SIGSEGV while the map is being created. The faulting thread is MbxRender. The crash is inside the vendor GL driver (libGLESv2_mtk.so, function glProgramBinary), called from libmapbox-maps.so. It is rare, about 4 to 7 percent of launches in which the map is created, and it always happens in a freshly started process.
Environment
| Item | Value |
|---|---|
| Device | Samsung Galaxy A10s, model SM-A107F |
| SoC / platform | MediaTek MT6762 (ro.board.platform mt6765, ro.hardware mt6762) |
| GPU | Imagination Technologies PowerVR Rogue GE8320, OpenGL ES 3.2 build 1.13@5776728 |
| Android | 11 |
| ABI | armeabi-v7a (32-bit) |
| Flutter | 3.44.6 |
| mapbox_maps_flutter | 2.26.0 |
| Mapbox Maps SDK (Android) | 11.26 (android-ndk27) |
| Android Gradle Plugin | 9.0.1 |
| Release build | yes (release APK, also reproduced from the Play AAB) |
Backtrace (from logcat, crash buffer, 11 Nov 2026 10:26)
signal 11 (SIGSEGV)
backtrace:
#00 pc 000d49b6 /vendor/lib/egl/libGLESv2_mtk.so
#01 pc 000d4503 /vendor/lib/egl/libGLESv2_mtk.so
#02 pc 000d1ed5 /vendor/lib/egl/libGLESv2_mtk.so
#03 pc 000d18ed /vendor/lib/egl/libGLESv2_mtk.so
#04 pc 000db025 /vendor/lib/egl/libGLESv2_mtk.so
#05 pc 000e20f3 /vendor/lib/egl/libGLESv2_mtk.so (glProgramBinary+2442)
#06 pc 00031edd /vendor/lib/egl/libGLES_meow.so (MEOW::meow_call_ddk_gl_2_glProgramBinary(unsigned int, unsigned int, void const*, int)+20)
#07 pc 0075accb base.apk!libmapbox-maps.so
#08 pc 0075b3ed base.apk!libmapbox-maps.so
#09 pc 007f0365 base.apk!libmapbox-maps.so
#10 pc 007ef1c1 base.apk!libmapbox-maps.so
#11 pc 0046e8cb base.apk!libmapbox-maps.so
#12 pc 004706ef base.apk!libmapbox-maps.so
#13 pc 004672d3 base.apk!libmapbox-maps.so
Faulting thread: MbxRender. Registers at the fault were r0 .. r11 with pc cd4a69b6 inside libGLESv2_mtk.so. Build id of the vendor library: f7de7b1572fed04fd384a0a76ed34bcf. Full tombstone available on request.
Frequency (measured)
Automated launch cycles on the one device above, release build:
- Map created on every launch: 2 crashes in 30 launches.
- Map never created (map tab not opened): 0 crashes in 50 launches.
- Earlier build where the map was created at every launch: about 4 crashes in 105 launches.
All crashes were in a fresh process after a force-stop. No crash was tied to a particular screen once the map was up.
Steps to reproduce
- Install a release build with a Mapbox map widget on a Samsung Galaxy A10s (Android 11).
- Force-stop the app (
adb shell am force-stop <package>). - Launch the app and let the map widget be created.
- Repeat 30 to 100 times. About 1 in 15 to 1 in 25 launches crashes.
Suspicion and questions
glProgramBinaryis the call that loads a cached, precompiled shader program. A corrupted or stale shader cache after the process was killed, or a driver fault on this GPU when loading a cached binary, would match the pattern (crashes only in a fresh process after force-stop).- Is there a supported way to disable the program binary cache, or to make the SDK fall back to compiling from source, for example on specific GPU renderers?
- Is this a known issue on PowerVR GE8320 / MediaTek MT676x devices with Maps SDK 11.x? Is a fix or workaround available in a newer 11.x release?
- Could the SDK catch driver failures at program load time (verify
GL_LINK_STATUSafterglProgramBinary) and fall back to source compilation, which would avoid the fault if it is caused by a bad cached blob?
What I tried
- Upgrading
mapbox_maps_flutter2.26.0 to 2.31.1 (Maps SDK 11.31): blocked by the Kotlin built-in AGP 9 requirement in this project, so I could not test whether newer SDKs change the behavior. - Building the map lazily (only when the user opens the navigation screen): removes the crash for launches that never create a map, but does not help once the map is created.
I can attach the full tombstone and a minimal reproduction project if useful.
- Lenguaje dominante
- Dart
- Estrellas
- 382
- Forks
- 205
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mapbox/mapbox-maps-flutter
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
mapbox/mapbox-maps-flutter#1152 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
mapbox/mapbox-maps-flutter#1144 ·
-
iOS: the map cannot be captured or read by flutter, because it is a platform viewPosiblemente ocupada @Nixxx19 la tomó hace 92 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
mapbox/mapbox-maps-flutter#1142 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
mapbox/mapbox-maps-flutter#1140 ·
-
Normalize ornament positioning relative to safe areas on iOS and AndroidQuizá libre de nuevo @maios la tomó hace 136 días y no hay ningún pull request abierto. Abierto
mapbox/mapbox-maps-flutter#1137 · 1 comentario · 1 reacción · 1 asignado ·
Todos los issues de mapbox/mapbox-maps-flutter
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
commetchat/commet#1123 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
lichess-org/mobile#4099 ·
Los mantenedores suelen responder en 1 día
-
RenderListWheelViewport creates a new OpacityLayer on every paint and keeps it after it stops using itPosiblemente ocupada @leoafarias la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
BUG: App crashes on iOS when initializing speech-to-text due to missing microphone and speech recognition keys in Info.plistPosiblemente ocupada @AyushSrivastava1818 la tomó hace 1 día. Abiertobug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
AOSSIE-Org/Ell-ena#365 · 2 comentarios ·