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

Many ANR's in android #463

Open
michaellev-sp opened this issue Dec 26, 2024 · 3 comments
Open

Many ANR's in android #463

michaellev-sp opened this issue Dec 26, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@michaellev-sp
Copy link

MAX Plugin Version

8.0.1

Unity Version

2022.3.45f1

Device/Platform Info

Android (min sdk = 28)

Crashes/ANRs per Day

1 per day at least

Percentage of Users Affected

<0.5%

First Occurrence of Crash/ANR

After implementing the Max sdk in an existing game, we have seen many ANR's or crashes happening right after app put to background while showing an interstitial with multiple different stack traces.
Mainly safesdk, but some attributed directly to Applovin.

Exception and Stack Trace

Stack 1:

com.safedk.android.analytics.brandsafety.c.h (SourceFile:261)
com.safedk.android.analytics.brandsafety.c.l (SourceFile:323)
com.safedk.android.analytics.brandsafety.InterstitialInfo.toString (SourceFile:118)
java.lang.String.valueOf (String.java:4102)
java.lang.StringBuilder.append (StringBuilder.java:179)
com.safedk.android.analytics.brandsafety.InterstitialFinder.d (SourceFile:1814)
com.safedk.android.analytics.brandsafety.InterstitialFinder.g (SourceFile:3035)
com.safedk.android.internal.b.b (SourceFile:326)
com.safedk.android.internal.b.onActivityStopped (SourceFile:280)
android.app.Application.dispatchActivityStopped (Application.java:510)
android.app.Activity.dispatchActivityStopped (Activity.java:1589)
android.app.Activity.onStop (Activity.java:2789)
com.applovin.adview.AppLovinFullscreenActivity.onStop (SourceFile:1)
android.app.Instrumentation.callActivityOnStop (Instrumentation.java:1623)
android.app.Activity.performStop (Activity.java:9236)
android.app.ActivityThread.callActivityOnStop (ActivityThread.java:5898)
android.app.ActivityThread.performStopActivityInner (ActivityThread.java:5872)
android.app.ActivityThread.handleStopActivity (ActivityThread.java:5943)
android.app.servertransaction.StopActivityItem.execute (StopActivityItem.java:43)
android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:180)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:98)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:230)
android.os.Looper.loop (Looper.java:319)
android.app.ActivityThread.main (ActivityThread.java:8919)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

Stack 2:

com.safedk.android.analytics.brandsafety.InterstitialInfoCollection.b (SourceFile:107)
com.safedk.android.analytics.brandsafety.InterstitialFinder.d (SourceFile:871)
com.safedk.android.internal.b.onActivityResumed (SourceFile:193)
android.app.Application.dispatchActivityResumed (Application.java:450)
android.app.Activity.dispatchActivityResumed (Activity.java:1523)
android.app.Activity.onResume (Activity.java:2124)
com.applovin.adview.AppLovinFullscreenActivity.onResume (SourceFile:1)
android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1603)
android.app.Activity.performResume (Activity.java:9134)
android.app.ActivityThread.performResumeActivity (ActivityThread.java:5399)
android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5508)
android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:57)
android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:180)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:98)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:230)
android.os.Looper.loop (Looper.java:319)
android.app.ActivityThread.main (ActivityThread.java:8919)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

Stack3: (probably not applovin specific)

android.media.MediaPlayer._release (Native method)
android.media.MediaPlayer.release (MediaPlayer.java:2250)
android.widget.VideoView.stopPlayback (VideoView.java:365)
com.safedk.android.internal.partials.UnityAdsVideoBridge.VideoViewStop (UnityAdsSourceFile:71)
com.unity3d.services.ads.adunit.VideoPlayerHandler.destroy (VideoPlayerHandler.java:14)
com.unity3d.services.ads.adunit.AdUnitActivityController.setViews (AdUnitActivityController.java:57)
com.unity3d.services.ads.adunit.AdUnitActivity.setViews (AdUnitActivity.java:3)
com.unity3d.services.ads.api.AdUnit$1.run (AdUnit.java:17)
android.os.Handler.handleCallback (Handler.java:958)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:205)
android.os.Looper.loop (Looper.java:294)
android.app.ActivityThread.main (ActivityThread.java:8227)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:573)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)

Stack 4:

java.lang.AbstractStringBuilder.newCapacity (AbstractStringBuilder.java:204)
java.lang.AbstractStringBuilder.ensureCapacityInternal (AbstractStringBuilder.java:178)
java.lang.AbstractStringBuilder.append (AbstractStringBuilder.java:543)
java.lang.StringBuilder.append (StringBuilder.java:186)
com.applovin.mediation.adapters.FacebookMediationAdapter$1.onInitialized (FacebookMediationAdapter.java:16)
com.facebook.ads.redexgen.X.Zd.A06 (Unknown Source:70483)
com.facebook.ads.redexgen.X.KY.run (Unknown Source:42613)
android.os.Handler.handleCallback (Handler.java:958)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:257)
android.os.Looper.loop (Looper.java:368)
android.app.ActivityThread.main (ActivityThread.java:8839)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:572)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)

Stack 5:

android.os.BinderProxy.transact (BinderProxy.java:550)
android.app.IActivityTaskManager$Stub$Proxy.finishActivity (IActivityTaskManager.java:4351)
android.app.Activity.finish (Activity.java:6476)
android.app.Activity.finish (Activity.java:6512)
com.applovin.impl.o9.f (SourceFile:15)
com.applovin.impl.p9.f (SourceFile:14)
com.applovin.impl.o9$a.adHidden (SourceFile:24)
com.applovin.impl.fc.d (SourceFile:4)
com.applovin.impl.fc.x (SourceFile:1)
com.applovin.impl.lv.run (R8$$SyntheticClass:5)
com.applovin.sdk.AppLovinSdkUtils.runOnUiThread (SourceFile:3)
com.applovin.sdk.AppLovinSdkUtils.runOnUiThread (SourceFile:1)
com.applovin.impl.fc.b (SourceFile:1)
com.applovin.impl.adview.a.z (SourceFile:56)
com.applovin.impl.adview.c.a (SourceFile:97)
com.applovin.impl.adview.c.a (SourceFile:24)
com.applovin.impl.adview.c.safedk_c_shouldOverrideUrlLoading_678f8c4351efae3cc506edb28e260cba (SourceFile:2)
com.applovin.impl.adview.c.shouldOverrideUrlLoading (SourceFile)
org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading (chromium-TrichromeWebViewGoogle6432.aab-stable-677813533:124)
android.os.MessageQueue.nativePollOnce (Native method)
android.os.MessageQueue.next (MessageQueue.java:342)
android.os.Looper.loop (Looper.java:197)
android.app.ActivityThread.main (ActivityThread.java:7877)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:958)

Stack6:

com.safedk.android.analytics.AppLovinBridge.<clinit> (SourceFile:94)
com.safedk.android.SafeDK.<init> (SourceFile:123)
com.safedk.android.SafeDK.a (SourceFile:356)
com.safedk.android.SafeDKApplication.onCreate (SourceFile:22)
android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1211)
android.app.ActivityThread.handleBindApplication (ActivityThread.java:6765)
android.app.ActivityThread.access$1600 (ActivityThread.java:253)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2090)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:201)
android.os.Looper.loop (Looper.java:288)
android.app.ActivityThread.main (ActivityThread.java:7886)
java.lang.reflect.Method.invoke (Native method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:568)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1045)

How to Reproduce

Hard to reproduce, but happens when app is put to background while ad is running.

Reproducible in the demo app?

Not Tested

Additional Info

No response

@michaellev-sp michaellev-sp added the bug Something isn't working label Dec 26, 2024
@applovinAsh
Copy link

@michaellev-sp, what Ad Review version are you using in your application?

@applovinAsh applovinAsh self-assigned this Dec 26, 2024
@Mecze
Copy link

Mecze commented Jan 2, 2025

We are also seeing this ANR on 8.0.1 using Unity.
our Ad Review Version being pulled by Applovin is 5.6.6

@applovinAsh
Copy link

@Mecze - this crash is fixed with ad review version 5.6.6. Are you sure that the crashes are coming from that version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants