Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

java.lang.ClassNotFoundException and signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
Started by Sheekore May 04 2018 09:46 PM

6 replies to this topic
crash java.lang.classnotfoundexcept java.lang.runtimeexception: android crash
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Sheekore

[GLOBAL: userInfoPane.html]
Sheekore
  • Enthusiast

  • 71 posts
  • Corona SDK

Hi

I am seeing the following crash in my Google play console for my game called Sentio Tap Emoji, I have built the game using corona 2018.3281 and use Appodeal plugin the modular one.

Android version: 4.4

Device: Aqua Air
 

java.lang.RuntimeException:
 
at android.app.LoadedApk.makeApplication (LoadedApk.java:516)
 
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:4514)
 
at android.app.ActivityThread.access$1500 (ActivityThread.java:151)
 
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1381)
 
at android.os.Handler.dispatchMessage (Handler.java:110)
 
at android.os.Looper.loop (Looper.java:193)
 
at android.app.ActivityThread.main (ActivityThread.java:5299)
 
at java.lang.reflect.Method.invokeNative (Native Method)
 
at java.lang.reflect.Method.invoke (Method.java:515)
 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:825)
 
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:641)
 
at dalvik.system.NativeStart.main (Native Method)

 

Caused by: java.lang.ClassNotFoundException:
 
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
 
at java.lang.ClassLoader.loadClass (ClassLoader.java:497)
 
at java.lang.ClassLoader.loadClass (ClassLoader.java:457)
 
at android.app.Instrumentation.newApplication (Instrumentation.java:975)
 
at android.app.LoadedApk.makeApplication (LoadedApk.java:511)


And I am seeing the following crash in my other game called Uh Oh and I have built the game using  corona 2018.3281 and use Appodeal plugin the modular one.

Android device: Samsung Galaxy J7 Prime2, Oppo - CPH1609
Android versions: 6.0 and 7.1 respectively
 

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

libcorona.so

 

#00 pc 0000000000115320 /data/app/com.sheekore.games.uhOh-1/lib/arm/libcorona.so


#01 pc 000000000000cc1c /data/app/com.sheekore.games.uhOh-1/lib/arm/liblua.so


#02 pc 000000000001ce30 /data/app/com.sheekore.games.uhOh-1/lib/arm/liblua.so


#03 pc 000000000000d068 /data/app/com.sheekore.games.uhOh-1/lib/arm/liblua.so


#04 pc 000000000000c374 /data/app/com.sheekore.games.uhOh-1/lib/arm/liblua.so


#05 pc 000000000000d1e0 /data/app/com.sheekore.games.uhOh-1/lib/arm/liblua.so


#06 pc 00000000000055b8 /data/app/com.sheekore.games.uhOh-1/lib/arm/liblua.so (lua_pcall+88)


#07 pc 0000000000106c78 /data/app/com.sheekore.games.uhOh-1/lib/arm/libcorona.so


#08 pc 000000000009aa24 /data/app/com.sheekore.games.uhOh-1/lib/arm/libcorona.so


#09 pc 0000000000140d3c /data/app/com.sheekore.games.uhOh-1/lib/arm/libcorona.so


#10 pc 000000000008d138 /data/app/com.sheekore.games.uhOh-1/lib/arm/libcorona.so


#11 pc 00000000011323f5 /data/app/com.sheekore.games.uhOh-1/oat/arm/base.odex

My test device - Asus Zenfone 3 Max, and  I couldn't reproduce the crashes in my test device.

Any idea what might be causing these?

Thanks in advance
 



[TOPIC: post.html]
#2

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 543 posts
  • Corona Staff

What plugins are you using? Also, you can try latest daily build.



[TOPIC: post.html]
#3

Sheekore

[GLOBAL: userInfoPane.html]
Sheekore
  • Enthusiast

  • 71 posts
  • Corona SDK

What plugins are you using? Also, you can try latest daily build.

I am using the following plugins:
 

["CoronaProvider.native.popup.social"] =
        {
            publisherId = "com.coronalabs"
        },
        ["plugin.gpgs"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = {android = true}
        },
        ['plugin.toast'] = 
        {
        publisherId = 'com.spiralcodestudio'
        },
        ["plugin.google.iap.v3"] =
        {
            publisherId = "com.coronalabs"
        },


-- I am working to remove OneSignal Plugin in my next update though.
["plugin.OneSignal"] =
{
publisherId = "com.onesignal",
},




        -- Base
        ['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },


        -- Interstitial
        ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Ogury'] = { publisherId = 'com.coronalabs' },

Sorry, I have built the apps with 2018.3281. I am currently testing new features with build 2018.3282 though.



[TOPIC: post.html]
#4

Sheekore

[GLOBAL: userInfoPane.html]
Sheekore
  • Enthusiast

  • 71 posts
  • Corona SDK

Any updates what might be causing the problem and possible fixes, because I have checked my game code and is working fine in my phone and simulator also.



[TOPIC: post.html]
#5

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 132 posts
  • Corona SDK

I believe this is something that is caused by multidex (which Corona enables by default, I believe?) on old android versions only (4.4, 4.2). I see it in Corona builds as recent as 3294.

 

I see it on all my apps, and the only plugins hey all share are:

 

         -- includes IAP Badger as a plug in
        ["plugin.iap_badger"] =
        {
            -- required
            publisherId = "uk.co.happymongoose",
        },
        
        ["plugin.google.iap.v3"] =
        {
            -- required
            publisherId = "com.coronalabs",
            supportedPlatforms = { android = true },
        },
Some sample backtraces:

 

 

java.lang.RuntimeException:
 
at android.app.LoadedApk.makeApplication (LoadedApk.java:572)
 
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:4818)
 
at android.app.ActivityThread.access$1500 (ActivityThread.java:178)
 
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1531)
 
at android.os.Handler.dispatchMessage (Handler.java:111)
 
at android.os.Looper.loop (Looper.java:194)
 
at android.app.ActivityThread.main (ActivityThread.java:5624)
 
at java.lang.reflect.Method.invoke (Native Method)
 
at java.lang.reflect.Method.invoke (Method.java:372)
 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:959)
 
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:754)
Caused by: java.lang.ClassNotFoundException:
 
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
 
at java.lang.ClassLoader.loadClass (ClassLoader.java:511)
 
at java.lang.ClassLoader.loadClass (ClassLoader.java:469)
 
at android.app.Instrumentation.newApplication (Instrumentation.java:985)
 
at android.app.LoadedApk.makeApplication (LoadedApk.java:567)

------------

 

java.lang.RuntimeException:
 
at android.app.LoadedApk.makeApplication (LoadedApk.java:528)
 
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:4566)
 
at android.app.ActivityThread.access$1500 (ActivityThread.java:151)
 
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1402)
 
at android.os.Handler.dispatchMessage (Handler.java:110)
 
at android.os.Looper.loop (Looper.java:193)
 
at android.app.ActivityThread.main (ActivityThread.java:5344)
 
at java.lang.reflect.Method.invokeNative (Native Method)
 
at java.lang.reflect.Method.invoke (Method.java:515)
 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:860)
 
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:676)
 
at dalvik.system.NativeStart.main (Native Method)
Caused by: java.lang.RuntimeException:
 
at android.support.multidex.MultiDex.install (MultiDex.java:178)
 
at android.support.multidex.MultiDexApplication.attachBaseContext (MultiDexApplication.java:39)
 
at android.app.Application.attach (Application.java:181)
 
at android.app.Instrumentation.newApplication (Instrumentation.java:991)
 
at android.app.Instrumentation.newApplication (Instrumentation.java:975)
 
at android.app.LoadedApk.makeApplication (LoadedApk.java:523)

  • nugett and Sheekore like this

[TOPIC: post.html]
#6

nugett

[GLOBAL: userInfoPane.html]
nugett
  • Observer

  • 22 posts
  • Corona SDK

I see this exception message on all android versions in my apps (from the stats of android "vitals" in google dev console).



[TOPIC: post.html]
#7

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 543 posts
  • Corona Staff

Hey guys. Please use https://pastebin.com/ to post all output from your crash log page.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: crash, java.lang.classnotfoundexcept, java.lang.runtimeexception:, android crash