Status Update
Comments
iv...@google.com <iv...@google.com> #2
i am using these dependencies for the map
// Maps SDK for Android KTX Library implementation 'com.google.maps.android:maps-ktx:3.0.0'
// Maps SDK for Android Utility Library KTX Library
implementation 'com.google.maps.android:maps-utils-ktx:3.0.0'
implementation 'com.google.android.gms:play-services-base:18.5.0' implementation 'com.google.android.gms:play-services-basement:18.5.0' implementation 'com.google.android.gms:play-services-maps:19.0.0'
and also getting some map sdk error as well dab File created: google_maps_sdk_crash dab File created: _google_maps_sdk_crash_count_1 dab Couldn't create marker: google_maps_sdk_crash dab File created: _google_maps_sdk_crash_count_2 dab Marker deleted: _google_maps_sdk_crash_count_1
as...@google.com <as...@google.com> #3
Thank you for posting.
We are currently looking into this and will get back to you as soon as we have an update.
ta...@bykea.com <ta...@bykea.com> #4
Thank you for waiting.
We'll need some more details to troubleshoot this issue - please provide the following, in particular steps to reproduce the issue:
-
Put together a simplified reproduction case (
http://sscce.org/ ) and add it to a git hosting provider (e.g. github, bitbucket, etc)? The easiest way to do this might be to fork the Google Maps Android API Samples Repository and modify one of the existing demo activities:https://github.com/googlemaps/android-samples -
List steps to reproduce the problem
- Maps SDK client library version (used to build your app):
- Maps renderer (Latest or Legacy):
- Devices you have verified this issue on:
- Google Play Services version on the device:
- Android version:
- Manufacturer and model:
- Was this working correctly on a previous version of Google Play Services? (If yes, which client library and SDK version?)
-
Attach the following:
- screenshots
- sample code
- an APK if possible.
-
Complete stacktrace when the issue occurs
ta...@bykea.com <ta...@bykea.com> #5
fun inflateMapViewImpl() {
mapView = com.google.android.gms.maps.MapView(
context,
GoogleMapOptions().liteMode(liteModeEnabled).mapType(mapType.value)
)
addView(mapView)
}
// map on create
fun onCreate(mapViewBundle: Bundle?) {
mapView.onCreate(mapViewBundle)
try {
MapsInitializer.initialize(context, MapsInitializer.Renderer.LATEST, this)
} catch (e: Exception) {
e.printStackTrace()
}
}
//
so the map initialization done with setting other views as well like textview , images and etc
ta...@bykea.com <ta...@bykea.com> #6
at m.idq.<init> (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:1)
at m.idr.H (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:6)
at m.hrh.<clinit> (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:48)
at m.evz.a (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:3)
at m.edr.ak (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:1)
at m.edr.aj (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:9)
at m.dro.<clinit> (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:169)
at m.dsj.<init> (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:88)
at m.dvb.n (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:53)
at m.dvb.b (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:7)
at m.dvb.l (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:8)
at m.dvb.i (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:7)
at m.deq.k (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:26)
at m.deq.f (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:1)
at
at com.google.maps.api.android.lib6.impl.ek.d (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:13)
at
at m.bcw.onTransact (:com.google.android.gms.policy_maps_core_dynamite@241110203@241110201042.615149234.615149234:21)
at android.os.Binder.transact (Binder.java:1050)
at com.google.android.gms.internal.maps.zza.zzc (com.google.android.gms:play-services-maps@@18.2.0:2)
at com.google.android.gms.maps.internal.zzl.onCreate (com.google.android.gms:play-services-maps@@18.2.0:3)
at com.google.android.gms.maps.zzah.onCreate (com.google.android.gms:play-services-maps@@18.2.0:3)
at com.google.android.gms.dynamic.zac.zab (com.google.android.gms:play-services-base@@18.1.0)
at com.google.android.gms.dynamic.zaa.onDelegateCreated (com.google.android.gms:play-services-base@@18.1.0:3)
at com.google.android.gms.maps.zzai.zzb (com.google.android.gms:play-services-maps@@18.2.0:5)
at com.google.android.gms.maps.zzai.createDelegate (com.google.android.gms:play-services-maps@@18.2.0)
at com.google.android.gms.dynamic.DeferredLifecycleHelper.zaf (com.google.android.gms:play-services-base@@18.1.0:6)
at com.google.android.gms.dynamic.DeferredLifecycleHelper.onCreate (com.google.android.gms:play-services-base@@18.1.0)
at com.google.android.gms.maps.MapView.onCreate (com.google.android.gms:play-services-maps@@18.2.0:4)
is...@google.com <is...@google.com>
ra...@google.com <ra...@google.com>
md...@gmail.com <md...@gmail.com> #7
Example:
#00 pc 0x000000000003b1e4 /system/lib/libandroidfw.so (android::ChunkIterator::Next()+100)
#01 pc 0x000000000003edf3 /system/lib/libandroidfw.so (android::LoadedPackage::Load(android::Chunk const&, unsigned int)+598)
#02 pc 0x0000000000040c07 /system/lib/libandroidfw.so (android::LoadedArsc::LoadTable(android::Chunk const&, android::LoadedIdmap const*, unsigned int)+298)
#03 pc 0x0000000000040fe9 /system/lib/libandroidfw.so (android::LoadedArsc::Load(android::incfs::map_ptr<void, false>, unsigned int, android::LoadedIdmap const*, unsigned int)+156)
#04 pc 0x00000000000293cd /system/lib/libandroidfw.so (android::ApkAssets::LoadImpl(std::__1::unique_ptr<android::Asset, std::__1::default_delete<android::Asset> >, std::__1::unique_ptr<android::AssetsProvider, std::__1::default_delete<android::AssetsProvider> >, unsigned int, std::__1::unique_ptr<android::Asset, std::__1::default_delete<android::Asset> >, std::__1::unique_ptr<android::LoadedIdmap, std::__1::default_delete<android::LoadedIdmap> >)+252)
#05 pc 0x000000000002910f /system/lib/libandroidfw.so (android::ApkAssets::LoadImpl(std::__1::unique_ptr<android::AssetsProvider, std::__1::default_delete<android::AssetsProvider> >, unsigned int, std::__1::unique_ptr<android::Asset, std::__1::default_delete<android::Asset> >, std::__1::unique_ptr<android::LoadedIdmap, std::__1::default_delete<android::LoadedIdmap> >)+190)
#06 pc 0x0000000000028eaf /system/lib/libandroidfw.so (android::ApkAssets::Load(std::__1::unique_ptr<android::AssetsProvider, std::__1::default_delete<android::AssetsProvider> >, unsigned int)+34)
#07 pc 0x000000000012f63b /system/lib/libandroid_runtime.so (android::NativeLoad(_JNIEnv*, _jclass*, int, _jstring*, int, _jobject*)+890)
at android.content.res.ApkAssets.nativeLoad (Native method)
at android.content.res.ApkAssets.<init> (ApkAssets.java:296)
at android.content.res.ApkAssets.loadFromPath (ApkAssets.java:145)
at android.app.ResourcesManager.loadApkAssets (ResourcesManager.java:472)
at android.app.ResourcesManager.-$$Nest$mloadApkAssets (unavailable)
at android.app.ResourcesManager$ApkAssetsSupplier.load (ResourcesManager.java:167)
at android.app.ResourcesManager.createApkAssetsSupplierNotLocked (ResourcesManager.java:997)
at android.app.ResourcesManager.getResources (ResourcesManager.java:1118)
at android.app.ActivityThread.getTopLevelResources (ActivityThread.java:2488)
at android.app.ApplicationPackageManager.getResourcesForApplication (ApplicationPackageManager.java:2045)
at android.app.ApplicationPackageManager.getResourcesForApplication (ApplicationPackageManager.java:2031)
at android.app.ApplicationPackageManager.getResourcesForApplication (ApplicationPackageManager.java:2059)
at m.v.b (:com.google.android.gms.dynamite_dynamiteloader@243137090@24.31.37 (240300-0):9)
at m.ac.c (:com.google.android.gms.dynamite_dynamiteloader@243137090@24.31.37 (240300-0):9)
at m.ac.b (:com.google.android.gms.dynamite_dynamiteloader@243137090@24.31.37 (240300-0):67)
at com.google.android.gms.dynamiteloader.DynamiteLoaderV2.loadModule2NoCrashUtils (:com.google.android.gms.dynamite_dynamiteloader@243137090@24.31.37 (240300-0):80)
at m.ce.a (:com.google.android.gms.dynamite_dynamiteloader@243137090@24.31.37 (240300-0):73)
at m.i.onTransact (:com.google.android.gms.dynamite_dynamiteloader@243137090@24.31.37 (240300-0):21)
at android.os.Binder.transact (Binder.java:1164)
at com.google.android.gms.internal.common.zza.zzB (com.google.android.gms:play-services-basement@@18.3.0:2)
at com.google.android.gms.dynamite.zzr.zzf (com.google.android.gms:play-services-basement@@18.3.0:6)
at com.google.android.gms.dynamite.DynamiteModule.load (com.google.android.gms:play-services-basement@@18.3.0:46)
at com.google.android.gms.maps.internal.zzcc.zzc (com.google.android.gms:play-services-maps@@19.0.0:5)
at com.google.android.gms.maps.internal.zzcc.zzd (com.google.android.gms:play-services-maps@@19.0.0:2)
at com.google.android.gms.maps.internal.zzcc.zza (com.google.android.gms:play-services-maps@@19.0.0:4)
at com.google.android.gms.maps.MapsInitializer.initialize (com.google.android.gms:play-services-maps@@19.0.0:4)
at myapp.MapRendererOptInApplication.onCreate (MapRendererOptInApplication.java:20)
as...@google.com <as...@google.com> #9
#1: does your app always use Maps SDK in lite mode? Or does it choose lite mode or not based on certain conditions? Do you know, e.g. from your logs, whether the ANR in #1 happens mainly when the SDK uses lite mode or not?
ol...@swarco.com <ol...@swarco.com> #10
01-31 14:42:57.243 16687 5906 E gxld : Make sure to call shutdown()/shutdownNow()
01-31 14:42:57.243 16687 5906 E gxld : java.lang.RuntimeException: ManagedChannel allocation site
01-31 14:42:57.243 16687 5906 E gxld : at gxlc.<init>(:com.google.android.gms@250234029@25.02.34 (190400-716794385):21)
01-31 14:42:57.243 16687 5906 E gxld : at gxld.<init>(:com.google.android.gms@250234029@25.02.34 (190400-716794385):10)
01-31 14:42:57.243 16687 5906 E gxld : at gxlb.a(:com.google.android.gms@250234029@25.02.34 (190400-716794385):247)
01-31 14:42:57.243 16687 5906 E gxld : at gwwb.a(:com.google.android.gms@250234029@25.02.34 (190400-716794385):5)
01-31 14:42:57.243 16687 5906 E gxld : at bzpx.g(:com.google.android.gms@250234029@25.02.34 (190400-716794385):81)
01-31 14:42:57.243 16687 5906 E gxld : at fpgu.a(:com.google.android.gms@250234029@25.02.34 (190400-716794385):219)
01-31 14:42:57.243 16687 5906 E gxld : at feds.a(:com.google.android.gms@250234029@25.02.34 (190400-716794385):13)
01-31 14:42:57.243 16687 5906 E gxld : at flzc.a(:com.google.android.gms@250234029@25.02.34 (190400-716794385):3)
01-31 14:42:57.243 16687 5906 E gxld : at flyd.run(:com.google.android.gms@250234029@25.02.34 (190400-716794385):19)
01-31 14:42:57.243 16687 5906 E gxld : at flze.run(:com.google.android.gms@250234029@25.02.34 (190400-716794385):5)
01-31 14:42:57.243 16687 5906 E gxld : at asmp.c(:com.google.android.gms@250234029@25.02.34 (190400-716794385):50)
01-31 14:42:57.243 16687 5906 E gxld : at asmp.run(:com.google.android.gms@250234029@25.02.34 (190400-716794385):76)
01-31 14:42:57.243 16687 5906 E gxld : at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
01-31 14:42:57.243 16687 5906 E gxld : at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
01-31 14:42:57.243 16687 5906 E gxld : at assa.run(:com.google.android.gms@250234029@25.02.34 (190400-716794385):8)
01-31 14:42:57.243 16687 5906 E gxld : at java.lang.Thread.run(Thread.java:1012)
as...@google.com <as...@google.com> #11
#10: the stack trace doesn't look like one generated by Maps SDK.
Description
Hi, We've been encountering a significant number of ANRs related to the Google Maps SDK "com.google.android.gms:play-services-maps:18.2.0" in our application. These ANRs are being reported on Firebase Crashlytics and the Play Console, which is surpassing the defined threshold for the user-presumed ANR rate. Consequently, this is restricting our visibility on the Play Console. Despite our efforts, we've been unable to reproduce the circumstances leading to these ANRs.i am attaching the bug for the better clarity .
The affected devices are running on Android versions are : 11 through 14
Device manufactured by : Vivo, Oppo, Xiaomi, Motorola, and others.
Map SDK version is : 18.2.0
Thanks