android-samples icon indicating copy to clipboard operation
android-samples copied to clipboard

Fatal Exception: com.google.android.libraries.maps.jy.zzb: tname=DefaultPool7

Open ragummrsa2930 opened this issue 3 years ago • 7 comments

Fatal Exception: com.google.android.libraries.maps.jy.zzb: tname=DefaultPool7 - Not on the main thread at com.google.android.libraries.maps.jx.zzo.zzb(Preconditions.java:11) at com.google.android.libraries.maps.jx.zzu.zza(ThreadChecker.java:5) at com.google.android.libraries.maps.jw.zzd.run(Authorizer.java:58) at com.google.android.libraries.maps.jw.zzd.zza(Authorizer.java:36) at com.google.android.libraries.maps.jw.zzd.zza(Authorizer.java:77) at com.google.android.libraries.maps.ke.zzb.zza(ApiTokenProviderPhoenix.java:4) at com.google.android.libraries.maps.fi.zza.zzb(ApiTokenRequirement.java:12) at com.google.android.libraries.maps.fi.zza.zza(ApiTokenRequirement.java:15) at com.google.android.libraries.maps.fg.zzf.zza(:50) at com.google.android.libraries.maps.iy.zzn.zza(RetryingFuture.java:9) at com.google.android.libraries.maps.jj.zze.zza(AbstractTransformFuture.java:7) at com.google.android.libraries.maps.jj.zzf.run(AbstractTransformFuture.java:36) at com.google.android.libraries.maps.jj.zzak.run(MoreExecutors.java:3) at com.google.android.libraries.maps.fv.zzc.run(CancelableRunnable.java:7) at com.google.android.libraries.maps.fv.zzae.run(Task.java:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at com.google.android.libraries.maps.fv.zzv.run(GmmThread.java:10) at java.lang.Thread.run(Thread.java:764)

"MY code" all are in main activity thread itself but still i dont know why the above crash is happening in production app. Strange thing is im not able to reproduce this issue.

SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.mapFragment); mapFragment.getMapAsync(this);

@Override public void onMapReady(GoogleMap googleMap) { this.googleMap = googleMap; setupMap(); }

ragummrsa2930 avatar Sep 07 '20 19:09 ragummrsa2930

Any update on this? is this bug in google map latest version 3.0.1 beta? So is there any issue in my app side? we are receiving more than 10 crash each day. Should i downgrade the google map sdk?

ragummrsa2930 avatar Sep 08 '20 16:09 ragummrsa2930

From Firebase:

Devices: Samsung Galaxy S7 ; Lenovo Tab M10 (FHD) OS: Android 8, Android 9 Device states: 100% background

Correct me if I'm wrong, but this happens when App is in background?

kirvis250 avatar Nov 04 '20 08:11 kirvis250

Since this issue is related to the Maps BETA library itself, the best place to receive support for this and surface this to our engineering team is by filing an issue in our issue tracker here.

arriolac avatar Nov 04 '20 17:11 arriolac

I confirm the error when migrating to the new sdk beta

danilshik avatar Mar 24 '21 09:03 danilshik

Also encountering this bug on occasion

samstenner2 avatar May 10 '21 08:05 samstenner2

We are also encountering this issue on about 2,6k devices. It also seems there is already an issue in google issue tracker: https://issuetracker.google.com/issues/186436360.

Del-S avatar Aug 16 '21 11:08 Del-S

I had the same issue. What I did, checked the internet connection before using the method that related to google com.google.android.libraries.maps..... In this case before "mapFragment.getMapAsync(this);"

Xamarine Android

if(reachability.Has_Internet()){ mapFragment.getMapAsync(this); }

public bool Has_Internet() { var access = Connectivity.NetworkAccess; switch (access) { case NetworkAccess.None: case NetworkAccess.Unknown: case NetworkAccess.ConstrainedInternet: case NetworkAccess.Local: return false; case NetworkAccess.Internet: return true; default: return false; }

This is the idea, do a similar thing before access google library.

dilankafernando avatar Aug 18 '21 03:08 dilankafernando

Closing this issue, since it was related to an old Maps SDK version.

kikoso avatar Dec 14 '22 10:12 kikoso