Increased crash rate on Android 4.x

Hi There

We recently updated one of our apps (Corona Native 2017.3154) and for some reason we’re getting increased crash rate mostly on android 4.4, as well as on 4.2 and 4.3.

Here is the error report from the google console:

java.lang.NoClassDefFoundError :

 

at com.ansca.corona.CoronaEnvironment.<clinit> (CoronaEnvironment.java:49)

 

at com.iabuzz.TDPuzzleBlocksAnimals.TDPuzzleBlocksAnimals.onCreate (TDPuzzleBlocksAnimals.java:22)

 

at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1069)

 

at android.app.ActivityThread.handleBindApplication (ActivityThread.java:4640)

 

at android.app.ActivityThread.access$1300 (ActivityThread.java:165)

 

at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1433)

 

at android.os.Handler.dispatchMessage (Handler.java:107)

 

at android.os.Looper.loop (Looper.java:194)

 

at android.app.ActivityThread.main (ActivityThread.java:5370)

 

at java.lang.reflect.Method.invokeNative (Native Method)

 

at java.lang.reflect.Method.invoke (Method.java:525)

 

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:833)

 

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:600)

 

at dalvik.system.NativeStart.main (Native Method)

Any idea on what might be causing these.

P.S. com.android.support:support-v4:25.0.+ is included in the project as well.

Thanks 

Anybody?

I’m asking the team to see if the error points to anything specific.

Rob

Managed to reproduce the crash on a device. Here is some more info from the log

11-09 08:48:45.326 9804-9804/? I/dalvikvm: Failed resolving Lcom/ansca/corona/CoronaLuaErrorHandler; interface 8792 ‘Lcom/naef/jnlua/JavaFunction;’

11-09 08:48:45.326 9804-9804/? W/dalvikvm: Link of class ‘Lcom/ansca/corona/CoronaLuaErrorHandler;’ failed

11-09 08:48:45.327 9804-9804/? I/dalvikvm: Failed resolving Lcom/ansca/corona/CoronaLuaErrorHandler; interface 8792 ‘Lcom/naef/jnlua/JavaFunction;’

11-09 08:48:45.327 9804-9804/? W/dalvikvm: Link of class ‘Lcom/ansca/corona/CoronaLuaErrorHandler;’ failed

11-09 08:48:45.327 9804-9804/? I/dalvikvm: Could not find method com.ansca.corona.CoronaLuaErrorHandler.setController, referenced from method com.ansca.corona.CoronaEnvironment.setController

11-09 08:48:45.327 9804-9804/? W/dalvikvm: VFY: unable to resolve virtual method 22076: Lcom/ansca/corona/CoronaLuaErrorHandler;.setController (Lcom/ansca/corona/Controller;)V

11-09 08:48:45.327 9804-9804/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002

11-09 08:48:45.327 9804-9804/? W/dalvikvm: VFY: unable to find class referenced in signature (Lcom/naef/jnlua/JavaFunction;)

11-09 08:48:45.328 9804-9804/? I/dalvikvm: Failed resolving Lcom/ansca/corona/CoronaLuaErrorHandler; interface 8792 ‘Lcom/naef/jnlua/JavaFunction;’

11-09 08:48:45.328 9804-9804/? W/dalvikvm: Link of class ‘Lcom/ansca/corona/CoronaLuaErrorHandler;’ failed

11-09 08:48:45.328 9804-9804/? D/dalvikvm: DexOpt: unable to opt direct call 0x5636 at 0x10 in Lcom/ansca/corona/CoronaEnvironment;.<clinit>

11-09 08:48:45.328 9804-9804/? D/dalvikvm: DexOpt: unable to opt direct call 0xe675 at 0x0e in Lcom/ansca/corona/CoronaEnvironment;.invokeLuaErrorHandler

11-09 08:48:45.328 9804-9804/? W/dalvikvm: Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/ansca/corona/CoronaEnvironment;

Try updating to the latest daily build. We’ve fixed several Android issues recently.

Rob

Have already done that today - have used 2017.3172 but the result is still the same.

Have noticed that the issue is coming after we implemented appodeal SDK (Appodeal-Android-SDK-2.1.7) and these are the issues caused by the various SDKs they include:

  1. If vungle-sdk-android-5.1.0.jar is included, then I get the " java.lang.NoClassDefFoundError:" error only for Android 4.4 (Probably for other Android 4.X versions)

  2. If I remove vungle-sdk-android-5.1.0.jar, then I get " java.lang.ClassNotFoundException: network.LuaLoader", the app opens but runtime error is generated, since we’re using android native code: “ERROR: Runtime error /Users/jenkins/slaveroot/workspace/Enterprise/OS/ios-11.0/release/release/platform/resources/init.lua:906: module ‘plugin.library’ not found:resource (plugin.library.lu) does not exist in archive

  3. If I remove vungle-sdk-android-5.1.0.jar, unity_ads-2.1.0, startapp-3.6.2, rxjava-1.2.0, picasso-2.5.2 then the app works fine.

Not sure what might be causing the issue #2 since I’m running out of ideas for testing.

Anybody?

I’m asking the team to see if the error points to anything specific.

Rob

Managed to reproduce the crash on a device. Here is some more info from the log

11-09 08:48:45.326 9804-9804/? I/dalvikvm: Failed resolving Lcom/ansca/corona/CoronaLuaErrorHandler; interface 8792 ‘Lcom/naef/jnlua/JavaFunction;’

11-09 08:48:45.326 9804-9804/? W/dalvikvm: Link of class ‘Lcom/ansca/corona/CoronaLuaErrorHandler;’ failed

11-09 08:48:45.327 9804-9804/? I/dalvikvm: Failed resolving Lcom/ansca/corona/CoronaLuaErrorHandler; interface 8792 ‘Lcom/naef/jnlua/JavaFunction;’

11-09 08:48:45.327 9804-9804/? W/dalvikvm: Link of class ‘Lcom/ansca/corona/CoronaLuaErrorHandler;’ failed

11-09 08:48:45.327 9804-9804/? I/dalvikvm: Could not find method com.ansca.corona.CoronaLuaErrorHandler.setController, referenced from method com.ansca.corona.CoronaEnvironment.setController

11-09 08:48:45.327 9804-9804/? W/dalvikvm: VFY: unable to resolve virtual method 22076: Lcom/ansca/corona/CoronaLuaErrorHandler;.setController (Lcom/ansca/corona/Controller;)V

11-09 08:48:45.327 9804-9804/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002

11-09 08:48:45.327 9804-9804/? W/dalvikvm: VFY: unable to find class referenced in signature (Lcom/naef/jnlua/JavaFunction;)

11-09 08:48:45.328 9804-9804/? I/dalvikvm: Failed resolving Lcom/ansca/corona/CoronaLuaErrorHandler; interface 8792 ‘Lcom/naef/jnlua/JavaFunction;’

11-09 08:48:45.328 9804-9804/? W/dalvikvm: Link of class ‘Lcom/ansca/corona/CoronaLuaErrorHandler;’ failed

11-09 08:48:45.328 9804-9804/? D/dalvikvm: DexOpt: unable to opt direct call 0x5636 at 0x10 in Lcom/ansca/corona/CoronaEnvironment;.<clinit>

11-09 08:48:45.328 9804-9804/? D/dalvikvm: DexOpt: unable to opt direct call 0xe675 at 0x0e in Lcom/ansca/corona/CoronaEnvironment;.invokeLuaErrorHandler

11-09 08:48:45.328 9804-9804/? W/dalvikvm: Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/ansca/corona/CoronaEnvironment;

Try updating to the latest daily build. We’ve fixed several Android issues recently.

Rob

Have already done that today - have used 2017.3172 but the result is still the same.

Have noticed that the issue is coming after we implemented appodeal SDK (Appodeal-Android-SDK-2.1.7) and these are the issues caused by the various SDKs they include:

  1. If vungle-sdk-android-5.1.0.jar is included, then I get the " java.lang.NoClassDefFoundError:" error only for Android 4.4 (Probably for other Android 4.X versions)

  2. If I remove vungle-sdk-android-5.1.0.jar, then I get " java.lang.ClassNotFoundException: network.LuaLoader", the app opens but runtime error is generated, since we’re using android native code: “ERROR: Runtime error /Users/jenkins/slaveroot/workspace/Enterprise/OS/ios-11.0/release/release/platform/resources/init.lua:906: module ‘plugin.library’ not found:resource (plugin.library.lu) does not exist in archive

  3. If I remove vungle-sdk-android-5.1.0.jar, unity_ads-2.1.0, startapp-3.6.2, rxjava-1.2.0, picasso-2.5.2 then the app works fine.

Not sure what might be causing the issue #2 since I’m running out of ideas for testing.