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

[ANR] FetchedAppGateKeepersManager.kt line 49 #1108

Open
5 tasks done
zeepradip opened this issue Sep 12, 2022 · 7 comments
Open
5 tasks done

[ANR] FetchedAppGateKeepersManager.kt line 49 #1108

zeepradip opened this issue Sep 12, 2022 · 7 comments

Comments

@zeepradip
Copy link

Checklist before submitting a bug report

Java version

11

Android version

Android 11 and 12

Android SDK version

14.1.0

Installation platform & version

7.3.3

Package

Other / I don't know

Goals

ANR free Sdk

Expected results

No ANR

Actual results

We are getting ANR

Steps to reproduce

Attaching logs and screenshot.
image

main (runnable): tid=1 systid=25834
at kotlin.reflect.jvm.internal.KClassImpl$data$1.invoke(KClassImpl.kt:180)
at kotlin.reflect.jvm.internal.KClassImpl$data$1.invoke(KClassImpl.kt:180)
at kotlin.reflect.jvm.internal.ReflectProperties$LazyVal.invoke(ReflectProperties.java:63)
at kotlin.reflect.jvm.internal.KClassImpl.getSimpleName(KClassImpl.kt:234)
at com.facebook.internal.FetchedAppGateKeepersManager.(FetchedAppGateKeepersManager.kt:49)
at com.facebook.internal.FeatureManager.checkFeature(FeatureManager.kt:39)
at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.kt:457)
at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.kt:389)
at com.facebook.internal.FacebookInitProvider.onCreate(FacebookInitProvider.kt:21)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2421)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2386)
at android.app.ActivityThread.installProvider(ActivityThread.java:7853)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7370)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7066)
at android.app.ActivityThread.access$1600(ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2127)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8302)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)

Code samples & details

Using standard way auto initing facebook sdk.
@5peak2me
Copy link

5peak2me commented Oct 9, 2022

i got these issues too.

@5peak2me
Copy link

5peak2me commented Oct 9, 2022

main (runnable): tid=1 systid=7243 
       at kotlin.reflect.jvm.internal.impl.name.Name.identifier(Name.java:62)
       at kotlin.reflect.jvm.internal.impl.builtins.StandardNames.<clinit>(StandardNames.kt:19)
       at kotlin.reflect.jvm.internal.impl.builtins.functions.FunctionClassKind.<clinit>(FunctionClassKind.kt:18)
       at kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap.<clinit>(JavaToKotlinClassMap.kt:19)
       at kotlin.reflect.jvm.internal.RuntimeTypeMapper.mapJvmClassToKotlinClassId(RuntimeTypeMapper.kt:275)
       at kotlin.reflect.jvm.internal.KClassImpl.getClassId(KClassImpl.kt:186)
       at kotlin.reflect.jvm.internal.KClassImpl.access$getClassId$p(KClassImpl.kt:44)
       at kotlin.reflect.jvm.internal.KClassImpl$Data$simpleName$2.invoke(KClassImpl.kt:64)
       at kotlin.reflect.jvm.internal.KClassImpl$Data$simpleName$2.invoke(KClassImpl.kt:47)
       at kotlin.reflect.jvm.internal.ReflectProperties$LazySoftVal.invoke(ReflectProperties.java:92)
       at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue(ReflectProperties.java:31)
       at kotlin.reflect.jvm.internal.KClassImpl$Data.getSimpleName(KClassImpl.kt)
       at kotlin.reflect.jvm.internal.KClassImpl.getSimpleName(KClassImpl.kt:234)
       at com.facebook.internal.FetchedAppGateKeepersManager.<clinit>(FetchedAppGateKeepersManager.kt:49)
       at com.facebook.internal.FetchedAppGateKeepersManager.loadAppGateKeepersAsync(FetchedAppGateKeepersManager.kt:70)
       at com.facebook.internal.FeatureManager.checkFeature(FeatureManager.kt:39)
       at com.facebook.appevents.internal.ActivityLifecycleTracker.startTracking(ActivityLifecycleTracker.kt:82)
       at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.kt:447)
       at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.kt:389)
       at com.facebook.internal.FacebookInitProvider.onCreate(FacebookInitProvider.kt:21)
       at android.content.ContentProvider.attachInfo(ContentProvider.java:2413)
       at android.content.ContentProvider.attachInfo(ContentProvider.java:2383)
       at android.app.ActivityThread.installProvider(ActivityThread.java:7805)
       at android.app.ActivityThread.installContentProviders(ActivityThread.java:7322)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7084)
       at android.app.ActivityThread.access$1800(ActivityThread.java:259)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2208)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:233)
       at android.os.Looper.loop(Looper.java:344)
       at android.app.ActivityThread.main(ActivityThread.java:8248)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)

@raghav2945
Copy link

We (audiomack) are encountering a similar problem as well. If we disregard Firebase, which only reports ANRs for Android 11 and above, and instead examine the Google Console, we will see that this issue is being reported at a high frequency on Android version 10.

I am sharing the screenshot and stacktrace from the Play Console as a point of reference, which is similar to what we see in Firebase.

facebook_sdk_issue

Stack-trace

"main" tid=1 Runnable
  #00  pc 0x00000000002fe4cf  /apex/com.android.runtime/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+78)
  #01  pc 0x00000000003a6dfb  /apex/com.android.runtime/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+358)
  #02  pc 0x00000000003a35d3  /apex/com.android.runtime/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+34)
  #03  pc 0x00000000003bbffd  /apex/com.android.runtime/lib/libart.so (art::DumpCheckpoint::Run(art::Thread*)+576)
  #04  pc 0x00000000003a7805  /apex/com.android.runtime/lib/libart.so (art::Thread::RunCheckpointFunction()+120)
  #05  pc 0x0000000000417275  /apex/com.android.runtime/lib/libart.so (art::JniMethodFastEnd(unsigned int, art::Thread*)+40)
  at java.lang.Class.getInnerClassFlags (Native method)
  at java.lang.Class.getModifiers (Class.java:1104)
  at java.lang.Class.isEnum (Class.java:2399)
  at java.lang.Class.getEnumConstantsShared (Class.java:2427)
  at java.util.EnumMap.getKeyUniverse (EnumMap.java:755)
  at java.util.EnumMap.<init> (EnumMap.java:138)
  at kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType.<clinit> (JvmPrimitiveType.java:45)
  at kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType.values (JvmPrimitiveType.java:26)
  at kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap.<clinit> (JavaToKotlinClassMap.kt:79)
  at kotlin.reflect.jvm.internal.RuntimeTypeMapper.mapJvmClassToKotlinClassId (RuntimeTypeMapper.kt:275)
  at kotlin.reflect.jvm.internal.KClassImpl.getClassId (KClassImpl.kt:186)
  at kotlin.reflect.jvm.internal.KClassImpl.access$getClassId$p (KClassImpl.kt:44)
  at kotlin.reflect.jvm.internal.KClassImpl$Data$simpleName$2.invoke (KClassImpl.kt:64)
  at kotlin.reflect.jvm.internal.KClassImpl$Data$simpleName$2.invoke (KClassImpl.kt:47)
  at kotlin.reflect.jvm.internal.ReflectProperties$LazySoftVal.invoke (ReflectProperties.java:92)
  at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue (ReflectProperties.java:31)
  at kotlin.reflect.jvm.internal.KClassImpl$Data.getSimpleName (KClassImpl.kt:8)
  at kotlin.reflect.jvm.internal.KClassImpl.getSimpleName (KClassImpl.kt:234)
  at com.facebook.internal.FetchedAppGateKeepersManager.<clinit> (FetchedAppGateKeepersManager.kt:37)
  at com.facebook.internal.FeatureManager.checkFeature (FeatureManager.kt:27)
  at com.facebook.FacebookSdk.sdkInitialize (FacebookSdk.kt:465)
  at com.facebook.FacebookSdk.sdkInitialize (FacebookSdk.kt:391)
  at com.facebook.internal.FacebookInitProvider.onCreate (FacebookInitProvider.kt:28)
  at android.content.ContentProvider.attachInfo (ContentProvider.java:2092)
  at android.content.ContentProvider.attachInfo (ContentProvider.java:2066)
  at android.app.ActivityThread.installProvider (ActivityThread.java:7224)
  at android.app.ActivityThread.installContentProviders (ActivityThread.java:6764)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6681)
  at android.app.ActivityThread.access$1400 (ActivityThread.java:237)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1933)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:264)
  at android.app.ActivityThread.main (ActivityThread.java:7663)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)

I am including the complete stacktrace, including details about different threads, as a point of reference.
stacktrace.log

@mistletoe5215
Copy link

the same,is there any solutions?

@annhienktuit
Copy link

I got this issue too, anyone know the root cause?

@Hyyzt
Copy link

Hyyzt commented Jun 28, 2024

I got this issue too at 2024 ,anyone konw the root cause?

@sahilpocketfm
Copy link

Still facing these issues and numbers are very high, solution please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants