Excessive increase "crashes rate" from Build 3692

my latest builds are seeing quite an ANR increase with this ANR specifically being the culprit of the increase. Im using the previous version of admob v38 as the latest v39 reintroduced the fragment warning issue. @Scott_Harrison any idea what is causing the below ANR??

plugin.admob.LuaLoader$Init$1.run

  #00  pc 0x0000000000018cc8  /system/lib/libc.so (syscall+32)
  #01  pc 0x0000000000047c91  /system/lib/libc.so (__pthread_mutex_lock_with_timeout(pthread_mutex_internal_t*, bool, timespec const*)+164)
This native synchronization routine is blocking the main thread, causing an ANR

  #02  pc 0x000000000005874d  /system/lib/libc.so (je_arena_dalloc_small+68)
  #03  pc 0x000000000006a2f1  /system/lib/libc.so (ifree+468)
  #04  pc 0x000000000006a575  /system/lib/libc.so (je_free+68)
  #05  pc 0x0000000000149345  /system/lib/libart.so (art::DexFileVerifier::Verify(art::DexFile const*, unsigned char const*, unsigned int, char const*, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+288)
  #06  pc 0x000000000013c791  /system/lib/libart.so (art::DexFile::OpenOneDexFileFromZip(art::ZipArchive const&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, art::DexFile::ZipOpenErrorCode*)+612)
  #07  pc 0x000000000013c277  /system/lib/libart.so (art::DexFile::OpenAllDexFilesFromZip(art::ZipArchive const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const>>, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const>>>>*)+394)
  #08  pc 0x000000000013beeb  /system/lib/libart.so (art::DexFile::OpenZip(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const>>, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const>>>>*)+270)
  #09  pc 0x000000000013bcb7  /system/lib/libart.so (art::DexFile::Open(char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, std::__1::vector<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const>>, std::__1::allocator<std::__1::unique_ptr<art::DexFile const, std::__1::default_delete<art::DexFile const>>>>*)+374)
  #10  pc 0x000000000031b199  /system/lib/libart.so (art::OatFileManager::OpenDexFilesFromOat(char const*, _jobject*, _jobjectArray*, art::OatFile const**, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>*)+4580)
  #11  pc 0x00000000002ea375  /system/lib/libart.so (art::DexFile_openDexFileNative(_JNIEnv*, _jclass*, _jstring*, _jstring*, int, _jobject*, _jobjectArray*)+96)
  #12  pc 0x0000000000191ac3  /system/framework/arm/boot-core-libart.oat (Java_dalvik_system_DexFile_openDexFileNative__Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_ClassLoader_2_3Ldalvik_system_DexPathList_00024Element_2+194)
  at dalvik.system.DexFile.openDexFileNative (Native method)
  at dalvik.system.DexFile.openDexFile (DexFile.java:353)
  at dalvik.system.DexFile.<init> (DexFile.java:100)
  at dalvik.system.DexFile.<init> (DexFile.java:74)
  at dalvik.system.DexPathList.loadDexFile (DexPathList.java:374)
  at dalvik.system.DexPathList.makeDexElements (DexPathList.java:337)
  at dalvik.system.DexPathList.<init> (DexPathList.java:157)
  at dalvik.system.BaseDexClassLoader.<init> (BaseDexClassLoader.java:65)
  at dalvik.system.PathClassLoader.<init> (PathClassLoader.java:64)
  at com.android.internal.os.ClassLoaderFactory.createClassLoader (ClassLoaderFactory.java:73)
  at com.android.internal.os.ClassLoaderFactory.createClassLoader (ClassLoaderFactory.java:88)
  at android.app.ApplicationLoaders.getClassLoader (ApplicationLoaders.java:69)
  at android.app.ApplicationLoaders.getClassLoader (ApplicationLoaders.java:35)
  at android.app.LoadedApk.createOrUpdateClassLoaderLocked (LoadedApk.java:713)
  at android.app.LoadedApk.getClassLoader (LoadedApk.java:747)
  at android.app.ContextImpl.getClassLoader (ContextImpl.java:304)
  at com.google.android.gms.dynamic.RemoteCreator.getRemoteCreatorInstance (com.google.android.gms:play-services-basement@@18.0.0:4)
  at com.google.android.gms.ads.internal.client.zzeq.zza (com.google.android.gms:play-services-ads-lite@@21.5.0:2)
  at com.google.android.gms.ads.internal.client.zzaq.zzc (com.google.android.gms:play-services-ads-lite@@21.5.0:12)
  at com.google.android.gms.ads.internal.client.zzax.zzf (com.google.android.gms:play-services-ads-lite@@21.5.0:1)
  at com.google.android.gms.ads.internal.client.zzax.zzd (com.google.android.gms:play-services-ads-lite@@21.5.0:11)
  at com.google.android.gms.ads.internal.client.zzej.zzA (com.google.android.gms:play-services-ads-lite@@21.5.0:3)
  at com.google.android.gms.ads.internal.client.zzej.zzn (com.google.android.gms:play-services-ads-lite@@21.5.0:8)
  at com.google.android.gms.ads.MobileAds.initialize (com.google.android.gms:play-services-ads-lite@@21.5.0:3)
  at plugin.admob.LuaLoader$Init$1.run (LuaLoader.java:626)
  at android.os.Handler.handleCallback (Handler.java:795)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:166)
  at android.app.ActivityThread.main (ActivityThread.java:6861)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:450)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)

Admob also causes this crash if you use banner ads. It was fixed in May 2023 for Unity users so I’m not sure if we can get that same fix somehow?

@vlads, my User-Perceived Crashes on Google Play have jumped from 0.2% to almost 3% :flushed: since I last updated my apps, using 2023.3701.

I have two versions of a nearly identical app - one with ads (Appodeal and IAP plugins) and one without ads and IAP. Both apps are now in Bad behaviour as a result of this bug, so this isn’t related to ads.

Trace from NON-ADS version:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 27425 >>> com.dave.dubya.games.remember.full <<<

backtrace:
  #00  pc 0x000000000011f67c  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #01  pc 0x00000000000a1234  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #02  pc 0x0000000000122fa0  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #03  pc 0x00000000000416b0  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #04  pc 0x000000000004a8c0  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/oat/arm64/base.odex (art_jni_trampoline+256)
  #05  pc 0x0000000000063d6c  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/oat/arm64/base.odex (com.ansca.corona.JavaToNativeShim.resize+1116)
  #06  pc 0x0000000000070c60  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/oat/arm64/base.odex (com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged+288)
  #07  pc 0x00000000000754d0  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/oat/arm64/base.odex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun+2176)
  #08  pc 0x0000000000076028  /data/app/~~w_Ip488bpiBKN-33Yp4e_Q==/com.dave.dubya.games.remember.full-9jROqdMaW6jEql4KVBNTUw==/oat/arm64/base.odex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run+312)
  #09  pc 0x000000000033eda4  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #10  pc 0x0000000000239d54  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
  #11  pc 0x000000000053a1b0  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
  #12  pc 0x0000000000539b60  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
  #13  pc 0x00000000000c9ccc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #14  pc 0x000000000005db00  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Trace from ADS version:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 15268 >>> com.dave.dubya.games.remember.lite <<<

backtrace:
  #00  pc 0x000000000011f67c  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #01  pc 0x00000000000a1234  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #02  pc 0x0000000000122fa0  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #03  pc 0x00000000000416b0  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/split_config.arm64_v8a.apk!libcorona.so (BuildId: c33dbfdb7f98e853460114504cf4274d5a59254f)
  #04  pc 0x000000000004aae4  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/oat/arm64/base.odex (art_jni_trampoline+260)
  #05  pc 0x00000000005ba60c  /apex/com.android.art/lib64/libart.so (nterp_helper+3852)
  #06  pc 0x00000000004b2f8c  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/oat/arm64/base.vdex (com.ansca.corona.JavaToNativeShim.resize+164)
  #07  pc 0x00000000005b9ee4  /apex/com.android.art/lib64/libart.so (nterp_helper+2020)
  #08  pc 0x00000000013ab7d6  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/oat/arm64/base.vdex (com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged+110)
  #09  pc 0x0000000002037c68  /memfd:jit-cache (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun+2776)
  #10  pc 0x00000000005ba6b0  /apex/com.android.art/lib64/libart.so (nterp_helper+4016)
  #11  pc 0x0000000001b1da4e  /data/app/~~CUVLvohA3g4sWqfo7AHwLg==/com.dave.dubya.games.remember.lite-AC4J_Gof0ASWqE_NMEOKzA==/oat/arm64/base.vdex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run+42)
  #12  pc 0x000000000033eda4  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #13  pc 0x0000000000239d54  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
  #14  pc 0x000000000053a1b0  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
  #15  pc 0x00000000000b6668  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
  #16  pc 0x00000000000532cc  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Plugins common between both apps:

plugins={
["CoronaProvider.native.popup.social"]={
publisherId="com.coronalabs",
},
["plugin.zip"]={
publisherId="com.coronalabs"
},
["plugin.CoronaSplashControl"]={
publisherId="com.coronalabs"
},
["plugin.gpgs.v3"]={
publisherId="com.solar2d", 
},
["plugin.firebaseAnalytics"]={
publisherId="tech.scotth", 
marketplaceId="xxxxx", 
},
["plugin.utf8"]={
publisherId="com.coronalabs", 
},
["plugin.openssl"]={
publisherId="com.coronalabs", 
},
},

Plugins used for ADS version:

plugins={
["CoronaProvider.native.popup.social"]={
publisherId="com.coronalabs",
},
["plugin.zip"]={
publisherId="com.coronalabs"
},
["plugin.CoronaSplashControl"]={
publisherId="com.coronalabs"
},
['plugin.appodeal.beta.base']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.AdColony']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.AppLovin']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.FacebookAudience']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.GoogleAdMob']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.InMobi']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.Mobvista']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.MyTarget']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.Unity']={ publisherId='com.coronalabs' },
['plugin.appodeal.beta.Vungle']={ publisherId='com.coronalabs' },
["plugin.gpgs.v3"]={
publisherId="com.solar2d", 
},
["plugin.iap_badger"]={
publisherId="uk.co.happymongoose", 
},
["plugin.google.iap.billing.v2"]={
publisherId="com.solar2d", 
},
["plugin.firebaseAnalytics"]={
publisherId="tech.scotth", 
marketplaceId="xxxx", 
},
["plugin.utf8"]={
publisherId="com.coronalabs", 
},
["plugin.openssl"]={
publisherId="com.coronalabs", 
},
},

Don’t use 3701. 3702 is available now to fix this.

I’m just pushing out new builds to GP using the last known good Solar build, 2023.3699 in my case. Hopefully that fixes the immediate issue.

The 3702 release notes don’t appear to mention this issue. Have you confirmed 3702 in the wild?

Be careful with 3702, the audio onComplete listener is not working. There’s a fix in the forums, but we need a 3703 quickly.

1 Like

Hi, we are also seeing an above threshold User-perceived ANR rate

Maybe this article would be helpful:

Finally! ANRs under bad behaviour for the past few days…

Great… what build are you using?

@anon63346430 interested to know which build your using also?

To resolve the crash issue I reverted to build 2023.3699. Published it on Jan 11.

build 3700

1 Like

Thank you @anon63346430

Two games now below bad behaviour on 3700

Where is the fix that you are talking about for the audio onComplete listener?

Do you know if this impacts iOS as well as Android?

I stupidly went to Sonoma and xcode 15.2 once they had sorted out old iOS version crashes but didn’t realise that this was an outstanding bug so now I am a bit stuck…

Hop on Discord, StarCrunch has a fix there. Yah, they really need to push a new build as this is a fairly major bug to have out there.

1 Like

Thanks. Do you know where the bug list is for this specific one?

This was the pull request that fixed itt: Audio and onComplete... third time's a charm? by ggcrunchy · Pull Request #673 · coronalabs/corona · GitHub

I noticed 3704 dropped yesterday with a fix for the onComplete handler. Wondering if anyone has had a chance to give it a whirl.

3704 fixes the audio onComplete issue and no one has reported any new issues with the build.

1 Like