MoPub Android SDK 5.0.0 crashes


#1

I try to implement GDPR compliant version of MoPub Android SDK (5.0.0). Unfortunately, after adding the code to my app, MoPub SDK crashes non-deterministically after calling MoPub.initializeSdk before SdkInitializationListener gets notified. It happens in more or less 1/2 of attempts in the Android Emulator on Android 7.0 (I do not own the device with this version of Android, so I cannot confirm if it happens on real devices as well, but generally I found emulators very close to real devices). It seems to work fine on 8.0.

Here is my code:
SdkConfiguration sdkConfiguration = new SdkConfiguration.Builder(getString(R.string.banner_ad_mopub_main_id))
.build();
MoPub.initializeSdk(this, sdkConfiguration, new SdkInitializationListener() { … });

And here is the error log:
D/MoPub: Initializing MoPub
I/MoPub: ManifestUtils running without interstitial module
D/: HostConnection::get() New Host Connection established 0x9439bc00, tid 20471
W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library “libwvm.so” not found
I/OMXClient: MuxOMX ctor
I/art: Do partial code cache collection, code=122KB, data=71KB
I/art: After code cache collection, code=122KB, data=71KB
Increasing code cache capacity to 512KB
I/OMXClient: MuxOMX ctor
I/OMXClient: MuxOMX ctor
D/: HostConnection::get() New Host Connection established 0x91d5f580, tid 20527
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without…
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0x91f9a180: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0x91f9a180: ver 3 0 (tinfo 0x91f65c30)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
glUtilsParamSize: unknow param 0x00008824
I/OMXClient: MuxOMX ctor
D/MoPub: MoPubIdentifier initialized.
D/EGL_emulation: eglMakeCurrent: 0x91f9a180: ver 3 0 (tinfo 0x91f65c30)
I/OMXClient: MuxOMX ctor
W/System: ClassLoader referenced unknown path: /system/app/Chrome/lib/x86
I/WebViewFactory: Loading com.android.chrome version 51.0.2704.90 (code 275509012)
I/OMXClient: MuxOMX ctor
I/cr_LibraryLoader: Time to load native libraries: 235 ms (timestamps 9738-9973)
I/cr_LibraryLoader: Expected native library version number “51.0.2704.90”, actual native library version number “51.0.2704.90”
W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {796ee8}
I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
Selected remote version of com.google.android.gms.googlecertificates, version >= 4
I/cr_LibraryLoader: Expected native library version number “51.0.2704.90”, actual native library version number “51.0.2704.90”
I/chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0
W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000008/n/x86
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
E/ApkAssets: Error while loading asset assets/natives_blob_64.bin: java.io.FileNotFoundException: assets/natives_blob_64.bin
E/ApkAssets: Error while loading asset assets/snapshot_blob_64.bin: java.io.FileNotFoundException: assets/snapshot_blob_64.bin
D/EGL_emulation: eglCreateContext: 0x86d6caa0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0x86d6caa0: ver 3 0 (tinfo 0x91d247c0)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
W/google-breakpad: Chrome build fingerprint:
1.9.2
W/google-breakpad: 1090200
eaa28381-0b2f-4a9d-b3d7-2eabbaa5dbbe
### ### ### ### ### ### ### ### ### ### ### ### ###
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20471 (oft.pacecontrol)


#2

Can anyone confirm or deny the same behavior? Android 7.0 is the most popular Android version among users of my app and I cannot risk crashing the app on their devices…