Unknown Crash in android

Unknown Crash in android
0

Cocos2dx version 3.17.2

and ndk 19.2.5345600

Crash log(i have changed package name)

pid: 0, tid: 0 >>> com.demo.game <<<

backtrace:

#00 pc 0000000000049df4 /system/lib/libc.so (tgkill+12)

#01 pc 0000000000047593 /system/lib/libc.so (pthread_kill+34)

#02 pc 000000000001d855 /system/lib/libc.so (raise+10)

#03 pc 00000000000193a1 /system/lib/libc.so (__libc_android_abort+34)

#04 pc 0000000000017014 /system/lib/libc.so (abort+4)

#05 pc 000000000001b84f /system/lib/libc.so (__libc_fatal+22)

#06 pc 000000000001959b /system/lib/libc.so (__assert2+18)

#07 pc 00000000008e784d /data/app/com.demo.game-1/lib/arm/libMyGame.so

#08 pc 00000000008e7955 /data/app/com.demo.game-1/lib/arm/libMyGame.so

#09 pc 00000000008e5ead /data/app/com.demo.game-1/lib/arm/libMyGame.so

#10 pc 00000000008e5843 /data/app/com.demo.game-1/lib/arm/libMyGame.so

#11 pc 00000000008e580b /data/app/com.demo.game-1/lib/arm/libMyGame.so (__cxa_throw+74)

#12 pc 00000000008b1f9d /data/app/com.demo.game-1/lib/arm/libMyGame.so (_Znwj+56)

#13 pc 0000000000571868 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZNSt6__ndk16vectorIN7cocos2d11V3F_C4B_T2FENS_9allocatorIS2_EEE8__appendEj+148)

#14 pc 0000000000571374 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN5spine13SkeletonBatch16allocateVerticesEj+92)

#15 pc 0000000000560fe4 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN5spine16SkeletonRenderer4drawEPN7cocos2d8RendererERKNS1_4Mat4Ej+624)

#16 pc 0000000000612a60 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d4Node5visitEPNS_8RendererERKNS_4Mat4Ej+316)

#17 pc 0000000000612ac0 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d4Node5visitEPNS_8RendererERKNS_4Mat4Ej+412)

#18 pc 0000000000612ac0 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d4Node5visitEPNS_8RendererERKNS_4Mat4Ej+412)

#19 pc 0000000000612ac0 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d4Node5visitEPNS_8RendererERKNS_4Mat4Ej+412)

#20 pc 0000000000630eec /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d5Scene6renderEPNS_8RendererEPKNS_4Mat4ES5_j+460)

#21 pc 0000000000630d14 /data/app/com.demo.game-1/lib/arm/libMyGame.so (ZN7cocos2d5Scene6renderEPNS_8RendererERKNS_4Mat4EPS4+28)

#22 pc 0000000000696f98 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d8Director9drawSceneEv+496)

#23 pc 0000000000699fa0 /data/app/com.demo.game-1/lib/arm/libMyGame.so (_ZN7cocos2d8Director8mainLoopEv+128)

#24 pc 00000000004af61d /data/app/com.demo.game-1/oat/arm/base.odex

@Big_Bear @zhangxm @shivmsit @slackmoehrle any suggestion?

thanks in andvance .

Sorry, the log can not provide any useful information.

1 Like

It’s a been a while since I’ve written anything for Android, but you need to “symbolicate” that crash log following this guide. Once you have a symbolicated crash log you will see where it’s crashing in your code and go from there.

1 Like

Cocos2dx version 3.17.2

and ndk 19.2.5345600

java.lang.UnsatisfiedLinkError:
at java.lang.Runtime.loadLibrary0 (Runtime.java:1011)
at java.lang.System.loadLibrary (System.java:1657)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries (Cocos2dxActivity.java:22)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate (Cocos2dxActivity.java:23)
at org.cocos2dx.cpp.AppActivity.onCreate (AppActivity.java:4)
at android.app.Activity.performCreate (Activity.java:7044)
at android.app.Activity.performCreate (Activity.java:7035)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2759)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2884)
at android.app.ActivityThread.-wrap11 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1614)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6524)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:451)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:888)

@Big_Bear @zhangxm @shivmsit @slackmoehrle any suggestion?

thanks in advance.

It seems either your library is not built correctly or you had changed library name to something else other than “MyGame”. If you changed library name other than “MyGame”, so please update same into “AndroidManifest.xml”

<meta-data android:name="android.app.lib_name"
                   android:value="MyGame" />

no i did not change library name

This error only see into my google play console(in ANR&Crash ) while i played into my device it run smoothly.

@smitpatel88 any suggestion?

On which devices is your application crashing? Are they all the same devices? Are they 32 or 64Bit? Which version of Android is on them, and is the crash happening on specific versions of Android only?

We cant do anything about this. We have thousands of crash similar to this in all games.
But we dont have any comment/feedback from user regarding crash so we normally ignore such crash issue reported google. We only fix which shows in our classes.

I had also a lot of errors with NDK 18 on old Androids. I’m using NDK 17c and have much less crashes.

Many such crashes have been solved by using ReLinker.

if i use cmake can it less my crashes ?

No as far as I know.

i am asking about crashes due to ndk . @dimon4eg

Cocos2dx 3.17.2 with ndk 17.2.5345600

[Samsung Galaxy Note3 (hltespr), Android 4.4

Report 1 of 1

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** pid: 0, tid: 0 >>> com.demo.xyz (i have changed package name) <<< backtrace:

#00 pc 0000000000011894 /system/lib/libc.so (dlfree+1191)

#01 pc 000000000000dd33 /system/lib/libc.so (free+10)

#02 pc 0000000000082465 /system/lib/libcrypto.so (CRYPTO_free+24)

#03 pc 000000000002aa85 /system/lib/libssl.so (ssl_parse_serverhello_tlsext+244)

#04 pc 0000000000016bbd /system/lib/libssl.so (ssl3_get_server_hello+904)

#05 pc 00000000000196bf /system/lib/libssl.so (ssl3_connect+642)

#06 pc 0000000000024f55 /system/lib/libssl.so (SSL_do_handshake+72)

#07 pc 000000000000c67f /system/lib/libjavacrypto.so

#08 pc 0000000000020bcc /system/lib/libdvm.so (dvmPlatformInvoke+112)

#09 pc 0000000000051927 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)

#10 pc 000000000002a060 /system/lib/libdvm.so

#11 pc 0000000000031510 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)

#12 pc 000000000002eba8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)

#13 pc 0000000000063e75 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)

#14 pc 0000000000063e99 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, …)+20)

#15 pc 0000000000058b6b /system/lib/libdvm.so

#16 pc 000000000000d298 /system/lib/libc.so (__thread_entry+72)

#17 pc 000000000000d430 /system/lib/libc.so (pthread_create+240)

@zhangxm @slackmoehrle any idea about this crash ?