【问题标题】:Facebook Audience Network native crash with Android 10Android 10 导致 Facebook Audience Network 原生崩溃
【发布时间】:2023-03-29 06:07:01
【问题描述】:

我在几乎所有运行 Android 10 的 Pixel 手机上使用最新版本的 Audience Network 时发生崩溃。这是跟踪:

backtrace:
  #00  pc 000000000008246c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160)
  #01  pc 00000000004ba0c4  /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+2176)
  #02  pc 000000000000c634  /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+604)
  #03  pc 00000000003781f0  /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1608)
  #04  pc 00000000003784a0  /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbortF(char const*, char const*, ...)+180)
  #05  pc 00000000004ffc84  /apex/com.android.runtime/lib64/libart.so (art::Thread::DecodeJObject(_jobject*) const+780)
  #06  pc 00000000003c6228  /apex/com.android.runtime/lib64/libart.so (art::JNI::GetArrayLength(_JNIEnv*, _jarray*)+580)
  #07  pc 0000000000038d10  /apex/com.android.conscrypt/lib64/libjavacrypto.so (evpUpdate(_JNIEnv*, _jobject*, _jbyteArray*, int, int, char const*, int (*)(env_md_ctx_st*, void const*, unsigned long))+308)
  #08  pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144)
  #09  pc 00000000020007b4  /memfd:/jit-cache (com.android.org.conscrypt.OpenSSLMessageDigestJDK.engineUpdate+116)
  #10  pc 00000000002609c0  /system/framework/arm64/boot.oat (java.security.MessageDigest$Delegate.engineUpdate+64)
  #11  pc 00000000001bd6cc  /system/framework/arm64/boot.oat (java.security.MessageDigest.update+76)
  #12  pc 0000000002000f70  /memfd:/jit-cache (com.facebook.ads.redexgen.X.Nt.A01+416)
  #13  pc 000000000013663c  /apex/com.android.runtime/lib64/libart.so (art_quick_osr_stub+60)
  #14  pc 00000000003380ac  /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1772)
  #15  pc 00000000005ad260  /apex/com.android.runtime/lib64/libart.so (MterpMaybeDoOnStackReplacement+212)
  #16  pc 0000000000135350  /apex/com.android.runtime/lib64/libart.so (MterpHelpers+240)
  #17  pc 00000000001a4fbe  [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Nt.A01+66)
  #18  pc 00000000005a5154  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1160)
  #19  pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
  #20  pc 00000000001a509a  [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Nt.A02+10)
  #21  pc 00000000002b4b04  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.11452150525172173309+240)
  #22  pc 0000000000593744  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+944)
  #23  pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
  #24  pc 00000000001365b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568)
  #25  pc 0000000000145084  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276)
  #26  pc 00000000002e3bc0  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384)
  #27  pc 00000000002deab8  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+928)
  #28  pc 00000000005a4e3c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+368)
  #29  pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
  #30  pc 0000000000172ac4  [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jp.A02+104)
  #31  pc 00000000005a5154  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1160)
  #32  pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
  #33  pc 0000000000172b4c  [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jp.A03)
  #34  pc 00000000005a5154  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1160)
  #35  pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20)
  #36  pc 00000000001728b8  [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jo.A00+16)
  #37  pc 00000000005a4934  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1192)
  #38  pc 0000000000130914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20)
  #39  pc 0000000000172918  [anon:dalvik-DEX (com.facebook.ads.redexgen.X.Jo.call)
  #40  pc 00000000002b4b04  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.11452150525172173309+240)
  #41  pc 0000000000593744  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+944)
  #42  pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
  #43  pc 0000000000298528  /system/framework/arm64/boot.oat (java.util.concurrent.FutureTask.run+200)
  #44  pc 00000000002019d4  /system/framework/arm64/boot.oat (java.util.concurrent.Executors$RunnableAdapter.call+68)
  #45  pc 0000000000298528  /system/framework/arm64/boot.oat (java.util.concurrent.FutureTask.run+200)
  #46  pc 00000000002f9fd8  /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+984)
  #47  pc 00000000002f7640  /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+64)
  #48  pc 00000000001a50b8  /system/framework/arm64/boot.oat (java.lang.Thread.run+72)
  #49  pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548)
  #50  pc 0000000000145064  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244)
  #51  pc 00000000004b1c58  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #52  pc 00000000004b2d28  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416)
  #53  pc 00000000004f3290  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1172)
  #54  pc 00000000000e372c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #55  pc 0000000000084004  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

我首先使用implementation 'com.facebook.android:audience-network-sdk:5.6.0'new AdView(context, adUnit, BANNER_HEIGHT_50) 以及AudienceNetworkAds.initialize(activity.getApplicationContext()); 来初始化SDK。

有人遇到同样的问题并有解决办法吗?

【问题讨论】:

  • 仅限 Android 10 - Pixel 手机
  • 我仍然看到 Facebook 5.8.0 崩溃 :-(
  • 在这里遇到同样的问题。有任何进展或更新吗?你能解决吗?

标签: android crash facebook-audience-network


【解决方案1】:

降级到 5.4.1/崩溃已经消失

implementation 'com.facebook.android:audience-network-sdk:5.4.1'

【讨论】:

    【解决方案2】:

    这对于参与 SDK 开发的 Facebook 开发者来说是非常糟糕的。

    即使在 sdk 版本 6.0.0 中,这个问题也很严重

    昨天只有他们发布了 6.1.0。我不确定他们是否解决了这个问题。但是他们 6.0.0 的更改日志提到了这一点

    修复了 Android 10+ 上插页式广告和奖励视频中的 net::ERR_ACCESS_DENIED

    这里https://developers.facebook.com/docs/audience-network/changelog-android#6_1_0

    但这就是这次 Abort 崩溃的原因吗?

    【讨论】:

      【解决方案3】:

      Android 的 InMemoryDe​​xClassLoader https://issuetracker.google.com/issues/150633385 中的根本原因错误。已在 AN SDK 6.1.0+ 中修复

      【讨论】:

      • 看来我还在 6.2.0 中使用它
      猜你喜欢
      • 1970-01-01
      • 2020-11-07
      • 2016-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多