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

PangleWebView crash on 12.6.1 #710

Open
stdlam opened this issue Sep 13, 2024 · 1 comment
Open

PangleWebView crash on 12.6.1 #710

stdlam opened this issue Sep 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@stdlam
Copy link

stdlam commented Sep 13, 2024

MAX SDK Version

12.6.1

Device/Platform Info

Android

Crashes/ANRs per Day

every time to load native ads

Percentage of Users Affected

100%

First Occurrence of Crash/ANR

Maybe after updating from an older SDK version.

Exception and Stack Trace

java.lang.RuntimeException: java.lang.Throwable: A WebView method was called on thread 'AppLovinSdk:shared_thread_pool'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 2) {4f6fe91} called on null, FYI main Looper is Looper (main, tid 2) {4f6fe91})
at android.webkit.WebView.checkThread(WebView.java:2630)
at android.webkit.WebView.removeJavascriptInterface(WebView.java:1943)
at com.bytedance.sdk.component.widget.PangleWebView.removeJavascriptInterface(PangleWebView.java:81)
at com.bytedance.sdk.openadsdk.gQ.NlF.lFD(LandingPageLog.java:565)
at com.bytedance.sdk.openadsdk.core.nativeexpress.Zdu.ErO(WebViewRender.java:312)
at com.bytedance.sdk.component.adexpress.gQ.ho.OXt(WebViewRenderInterceptor.java:75)
at com.bytedance.sdk.openadsdk.core.nativeexpress.NativeExpressView.NlF(NativeExpressView.java:997)
at com.bytedance.sdk.openadsdk.core.bannerexpress.BannerExpressView.lFD(BannerExpressView.java:186)
at com.bytedance.sdk.openadsdk.core.bannerexpress.OXt.destroy(PAGBannerAdImpl.java:184)
at com.applovin.mediation.adapters.ByteDanceMediationAdapter.onDestroy(ByteDanceMediationAdapter.java:274)
at com.applovin.impl.mediation.g.l(SourceFile:3)
at com.applovin.impl.mediation.g.$r8$lambda$M0-41Qz0EJAwuzvMp176QgZnzQA(Unknown Source:0)
at com.applovin.impl.mediation.g$$ExternalSyntheticLambda11.run(D8$$SyntheticClass:0)
at com.applovin.impl.mediation.g.a(SourceFile:5870)
at com.applovin.impl.mediation.g.$r8$lambda$Bzit5t9eqfA6lP9x96YlsSo49TU(Unknown Source:0)
at com.applovin.impl.mediation.g$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at com.applovin.impl.jn.run(SourceFile:46)
at com.applovin.impl.tm$d.run(SourceFile:24)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
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)
Caused by: java.lang.Throwable: A WebView method was called on thread 'AppLovinSdk:shared_thread_pool'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 2) {4f6fe91} called on null, FYI main Looper is Looper (main, tid 2) {4f6fe91})
at android.webkit.WebView.checkThread(WebView.java:2625)
at android.webkit.WebView.removeJavascriptInterface(WebView.java:1943) 
at com.bytedance.sdk.component.widget.PangleWebView.removeJavascriptInterface(PangleWebView.java:81) 
at com.bytedance.sdk.openadsdk.gQ.NlF.lFD(LandingPageLog.java:565) 
at com.bytedance.sdk.openadsdk.core.nativeexpress.Zdu.ErO(WebViewRender.java:312) 
at com.bytedance.sdk.component.adexpress.gQ.ho.OXt(WebViewRenderInterceptor.java:75) 
at com.bytedance.sdk.openadsdk.core.nativeexpress.NativeExpressView.NlF(NativeExpressView.java:997) 
at com.bytedance.sdk.openadsdk.core.bannerexpress.BannerExpressView.lFD(BannerExpressView.java:186) 
at com.bytedance.sdk.openadsdk.core.bannerexpress.OXt.destroy(PAGBannerAdImpl.java:184) 
at com.applovin.mediation.adapters.ByteDanceMediationAdapter.onDestroy(ByteDanceMediationAdapter.java:274) 
at com.applovin.impl.mediation.g.l(SourceFile:3) 
at com.applovin.impl.mediation.g.$r8$lambda$M0-41Qz0EJAwuzvMp176QgZnzQA(Unknown Source:0) 
at com.applovin.impl.mediation.g$$ExternalSyntheticLambda11.run(D8$$SyntheticClass:0) 
at com.applovin.impl.mediation.g.a(SourceFile:5870) 
at com.applovin.impl.mediation.g.$r8$lambda$Bzit5t9eqfA6lP9x96YlsSo49TU(Unknown Source:0) 
at com.applovin.impl.mediation.g$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) 
at com.applovin.impl.jn.run(SourceFile:46) 
at com.applovin.impl.tm$d.run(SourceFile:24) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487) 
at java.util.concurrent.FutureTask.run(FutureTask.java:264) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)

How to Reproduce

Just open AppLovin native ads

Reproducible in the demo app?

Yes

Additional Info

No response

@stdlam stdlam added the bug Something isn't working label Sep 13, 2024
@NanaAmoah NanaAmoah self-assigned this Sep 13, 2024
@NanaAmoah
Copy link
Contributor

NanaAmoah commented Sep 16, 2024

Hi @stdlam I am not able to reproduce the issue on our demo app on v12.6.1 of the AppLovin SDK. Can you clarify the following:

  • Are you able to reproduce this with v13.0.0 of the AppLovin SDK?
  • What Pangle adapter version are you on?
  • Since you were able to reproduce this in our demo app 100% of the time, can you share the project with me?

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

2 participants