How to bypass "Fatal signal 11( SIGSEGV), code 1"?
To reproduce the error, you need to open and close the application several times. After 2-5 times of opening and closing, I catch this error on the emulator. In theory, this is just loading interstitial.
Perhaps someone found out on which versions of webview this happens? As an option, I thought just not to show ads to users with such versions of webview.
Or do you have any other ideas on how to overcome this?
--------- beginning of crash 09-08 09:08:39.351 9566-9566/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 9566 (appwebviewcrash) 09-08 09:08:39.454 1173-1173/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 09-08 09:08:39.454 1173-1173/? I/DEBUG: Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:5.1.1/LMY48X/6695563:userdebug/test-keys' 09-08 09:08:39.454 1173-1173/? I/DEBUG: Revision: '0' 09-08 09:08:39.454 1173-1173/? I/DEBUG: ABI: 'x86_64' 09-08 09:08:39.454 1173-1173/? I/DEBUG: pid: 9566, tid: 9566, name: appwebviewcrash >>> info.just3soft.appwebviewcrash
device: Android Emulator
system image:
Release Name: Lollipop
API Level: 22
ABI: x86_64
Target: Android 5.1 (Google APIs)
AndroidMainfest.xml
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-***~***" />
MainActivity.java
public class MainActivity extends AppCompatActivity {
private InterstitialAd interstitialAd;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
MobileAds.initialize(this);
interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId("ca-app-pub-3940256099942544/1033173712");
interstitialAd.loadAd(new AdRequest.Builder().build());
}
}
Build.gradle
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'com.google.android.gms:play-services-ads:19.3.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}