googlemaps / android-maps-compose

Jetpack Compose composables for the Maps SDK for Android
https://developers.google.com/maps/documentation/android-sdk/maps-compose
Apache License 2.0
1.16k stars 143 forks source link

Crash `com.google.maps.api.android.lib6.phoenix.cv.d` #560

Open aritra-tech opened 7 months ago

aritra-tech commented 7 months ago

Fatal Exception: java.lang.ClassCastException java.util.HashMap$Node cannot be cast to java.util.HashMap$TreeNode

Crash Log


       at java.util.HashMap$TreeNode.moveRootToFront(HashMap.java:1963)
       at java.util.HashMap$TreeNode.treeify(HashMap.java:2079)
       at java.util.HashMap.treeifyBin(HashMap.java:768)
       at java.util.HashMap.putVal(HashMap.java:640)
       at java.util.HashMap.put(HashMap.java:608)
       at com.google.maps.api.android.lib6.phoenix.cv.d(:com.google.android.gms.policy_maps_core_dynamite@240506509@240506504042.610497723.610497723:221)
       at com.google.maps.api.android.lib6.impl.eo.run(:com.google.android.gms.policy_maps_core_dynamite@240506509@240506504042.610497723.610497723:13)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
       at java.lang.Thread.run(Thread.java:1012)```
wangela commented 7 months ago

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@aritra-tech Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

kikoso commented 6 months ago

@aritra-tech , can you provide some steps to reproduce this issue?

kikoso commented 6 months ago

aritra-tech, did you have the chance to check the message above?

binayshaw7777 commented 6 months ago

@kikoso Hey, sorry for the late response. We are working together and we found out multiple instance of this from Firebase Crashlytics log. This is from the prod release crash log and never faced this ourselves, hence we can't reproduce it.

aritra-tech commented 6 months ago

Hey, @kikoso in our debug build it's working fine but in prod it's getting multiple instances. It is mainly happening on Android 14and after checking the logs whenever the user comes to the Map Screen it crashes.

Is it occurring because the version of google maps compose?

eckoj433 commented 5 months ago

Hey, @kikoso in our debug build it's working fine but in prod it's getting multiple instances. It is mainly happening on Android 14and after checking the logs whenever the user comes to the Map Screen it crashes.

Is it occurring because the version of google maps compose?

having the same exact issue, can not reproduce but seeing it in crashlytics. We however have an even spread of android 11, 12, 13 and 14.

kikoso commented 5 months ago

Hi @aritra-tech and @eckoj433 .

Without a snippet that we could use to reproduce the issue it is hard to say. At a first glance it does not seem that this is triggered by the Compose layer. From what I see it could be related to a concurrency issue.

Let's keep this open until we can gather more information.

ChristophKaser commented 3 months ago

I am seeing the same issue (in production) with a Mapview without compose, so it seems to be a concurrency issue in the Google Maps Library.