fluttercommunity / fluttercommunity/platform_maps_flutter

Map keeps crashing my app on Android

Open
#54 2 comments 0 reactions 1 assignee Claimed by @LuisThein View on GitHub
bug
Dominant language
Dart
Stars
83
Forks
72
PR merge metrics
No merged PRs in 30d

Description

This component keeps crashing my app all the time on Android. On IOS it is crash-free.

My app uses bottom navigation bar. When navigating by it, going back and forward between tabs, app crashed inexpectedly on a page that contains a Gooogle Maps map on Android by your component. It not consistant, sometimes it crashes, sometimes not, anyway it does it very often.

StackTrace:
E/AndroidRuntime(13799): FATAL EXCEPTION: GLThread 139
E/AndroidRuntime(13799): Process: com.x.y, PID: 13799
E/AndroidRuntime(13799): java.lang.NullPointerException: Attempt to get length of null array
E/AndroidRuntime(13799): at java.nio.ByteBufferAsIntBuffer.put(ByteBufferAsIntBuffer.java:122)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.gl.buffer.n.i(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):2)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.gl.buffer.n.d(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):3)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.gl.drawable.d.s(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):2)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.gl.drawable.ao.s(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):12)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.bz.s(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):29)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.bs.b(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):151)
E/AndroidRuntime(13799): at com.google.maps.api.android.lib6.gmm6.vector.av.run(:com.google.android.gms.dynamite_mapsdynamite@222116097@22.21.16 (190400-0):48)
D/OpenGLRenderer(13799): setSurface called with nullptr
D/OpenGLRenderer(13799): setSurface() destroyed EGLSurface
D/OpenGLRenderer(13799): destroyEglSurface
3
D/OpenGLRenderer(13799): setSurface called with nullptr
I/Process (13799): Sending signal. PID: 13799 SIG: 9
Lost connection to device.

I tried it on 2 physical devices, it happens on both of them:
- SM A520F (mobile), Android 8.0.0 (API 26)
- SM A525F (mobile), Android 12 (API 31)

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.2, on macOS 12.4 21F79 darwin-x64, locale hu-HU)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.68.1)
[✓] Connected device (5 available)
[✓] HTTP Host Availability

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.