Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map keeps crashing my app on Android #54

Open
tmatrai opened this issue Jun 22, 2022 · 2 comments
Open

Map keeps crashing my app on Android #54

tmatrai opened this issue Jun 22, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tmatrai
Copy link

tmatrai commented Jun 22, 2022

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

@tmatrai tmatrai added the bug Something isn't working label Jun 22, 2022
@dodderss
Copy link

Did you ever find a solution to this?

@smhoz
Copy link

smhoz commented Feb 1, 2023

@WilliamD47 @tmatrai The plugin now supports renderer selection, so project-level changes are no longer needed to request the new renderer; see https://pub.dev/packages/google_maps_flutter_android#map-renderer for details. (You will need to add a direct dependency on the google_maps_flutter_android implementation package to use that new API).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants