android-maps-compose icon indicating copy to clipboard operation
android-maps-compose copied to clipboard

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

Open aritra-tech opened this issue 9 months ago • 8 comments

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@[email protected]:221)
       at com.google.maps.api.android.lib6.impl.eo.run(:com.google.android.gms.policy_maps_core_dynamite@[email protected]: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)```

aritra-tech avatar Apr 25 '24 14:04 aritra-tech

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.

wangela avatar Apr 25 '24 14:04 wangela

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

kikoso avatar May 06 '24 12:05 kikoso

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

kikoso avatar May 13 '24 12:05 kikoso

@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.

binayshaw7777 avatar May 21 '24 05:05 binayshaw7777

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?

aritra-tech avatar May 26 '24 16:05 aritra-tech

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.

eckoj433 avatar May 27 '24 08:05 eckoj433

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.

kikoso avatar May 28 '24 06:05 kikoso

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.

ChristophKaser avatar Jul 29 '24 11:07 ChristophKaser