在 MobileAds.initialize(this) 致命信号 11 (SIGSEGV),代码 1 (SEGV_MAPERR) 上崩溃

Crash on MobileAds.initialize(this) Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

从今天开始,我开始收到此错误:

A/libc:致命信号 11 (SIGSEGV),代码 1 (SEGV_MAPERR),tid 31968

中的故障地址 0x0

在某些设备上,当 MobileAds.initialize(this) 被调用时。如果我卸载该程序并重新安装,它会在第一次打开该应用程序时按预期工作,但如果我关闭并再次打开该应用程序,我会再次开始崩溃。删除 MobileAds.initialize(this) 也可以解决问题,但显然广告不会 运行.

有什么想法可能已经改变了吗?

在 AndroidManifest 中:

<meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="ca-app-pub-2882944708681916~4204025586" />

在build.gradle中:

implementation 'com.google.android.gms:play-services-ads:19.8.0'
implementation "com.android.billingclient:billing:3.0.3"

我今天遇到了同样的问题。许多用户联系我说我的应用程序在启动时崩溃了。 我检查了我的 play console 崩溃,它有大量的崩溃和很多用户受到这个问题的影响 唯一的堆栈跟踪是这个 /data/app/com.android.chrome-p65-sPd3ac7AycjqzKIQbg==/base.apk

我没有更新我的应用程序,它只是自己更新了 我找到了这个 https://groups.google.com/g/google-admob-ads-sdk/c/Q-edauZ27g8 它以前发生过,现在仍然发生

并非所有设备都受此问题影响。我的 phone 中的应用程序运行良好。但是我有另一个 phone 并且我打开了我的应用程序然后它在开始时崩溃了。昨天不是。

我更新了 google chrome 然后问题就消失了。确保它是 google chrome 2021 年 3 月 22 日的最后一次更新

我认为我们无能为力,我不知道如何向我的用户宣布更新 google chrome。

告诉您的用户更新 Android 系统 Webview 或 Chrome...

查看发表在 support.google.com、

上的这篇文章

On March 22, we began to receive reports that several Google apps, including Gmail and Chrome, and partner apps began to crash unexpectedly on Android. After conducting an investigation, we identified that the issue was related to a recent update to the WebView system app. We halted the update and have posted a new version of WebView (89.0.4389.105). If your device was impacted, the steps below will walk you through your options to resolve this issue.

To resolve this issue, Android System WebView and Google Chrome need to be updated. Google Play will soon download the update to these apps on affected devices, or you can update manually to resolve the issue immediately. Some devices do not have WebView pre-installed and only need to update Chrome. To manually update Android System WebView and Google Chrome right now:

  • Open the Play Store app.
  • Search for “Android System WebView.”
  • Select Update. If it doesn't say “Update”, skip this step.
  • Repeat these steps for Google Chrome Learn more about updating Android apps

Note: We do not recommend manually uninstalling updates to WebView. It may result in loss of data from some apps.

In some rare cases in Android 10 or 11, a manual update of WebView or Chrome may fail to complete. Here are additional steps users can take to resolve the issue:

  • Open your phone’s Settings app.
  • Tap Apps & notifications > Google Play Store > Storage & cache > Clear Data

Please note that doing this will clear some of your Play Store settings like parental controls, auto-update preferences, etc. Please recheck these settings after following these steps. Repeat the steps above to update WebView and Chrome

参考,

https://support.google.com/android/thread/103561027?hl=en