App crash on startup after installing sdkbox(chartboost plugin) android v2.3.6

after installing sdkbox and importing chartboost plugin, the app crashes on startup
exactly at loading libcocos2dcpp.so

i get a fatal signal 4 SIGILL error

ndk-stack reveals the following

adb logcat | ndk-stack -sym /home/elmagnifico/Desktop/cocos2d-x-3.9/test2/proj.android/obj/local/armeabi
********** Crash dump: **********
Build fingerprint: ‘samsung/GT-S5830i/GT-S5830i:2.3.6/GINGERBREAD/JPLK1:user/release-keys’
pid: 15452, tid: 15452 >>> org.cocos2dx.test2 <<<
signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 8111a97c
Stack frame #00 pc 0011a97c /mnt/asec/org.cocos2dx.test2-2/lib/libcocos2dcpp.so: Routine _GLOBAL__sub_I_CCData.cpp at /private/var/jenkins/.jenkins/jobs/_release_1.5.2/workspace/csc/protocols/proj.android/jni/…/…/share/CCData.cpp:92
Crash dump is completed

I tried with another android version 4.4 … and it works fine,
Help would be much appreciated

Hi @elmagnifico

could you tell me which verison of SDKBOX and cocos you are using ?
Also, could you paste the contents of Application.mk file here… !!

Best,
Pabitra

Hi @pabitrapadhy I am using v0.5.8.12

cocos2dx v3.9

I am using an empty project (helloWorld) to avoid any conflicts,anyway this is Application.mk

APP_STL := gnustl_static

APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic

ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif
APP_PLATFORM := android-9

Let us ask @nite to look into that.
If there’s a crash we will try to fix it and release in a staging build. :smile:

Best,
Pabitra

Hello @nite , do you have an idea about why the app is crashing??

This is really strange, I wasn’t able to reproduce this issue with our sample, is there a way we can get your test code/project so we can test and reproduce this issue?

hi @nite, thank you for replying :smile: ,
the code/project is the default one (cocos new test2 -l cpp)
created it then imported chartboost plug in, it compiles fine but it crashes as stated above,
anyway here is a git repo:

using ndk r10d

my phone is galaxy ace GT-S5830i and galaxy young(android v2.3.6)
…anything else?

All logcat will be nice.

@yinjimmy
here you go

I/ApplicationPackageManager(10177): cscCountry is not German : KSA

D/dalvikvm(10177): Trying to load lib /mnt/asec/org.cocos2dx.test2-1/lib/libcocos2dcpp.so 0x40516b40

D/ProgramMonitor(10153): onReceive - action:com.sec.android.app.controlpanel.CPU_USAGE_WARN

I/ProgramMonitor(10153): cpu_usage_wan

D/ProgramMonitor(10153): updateSlideText

D/ProgramMonitor(10153): updateDefaultText

D/ProgramMonitor(10153): updateWidget

D/ProgramMonitor(10153): updateWidget - appWidgetIds == null -->> resetting

D/ProgramMonitor(10153): updateWidget - appWidgetIds.length == 0

I/DEBUG ( 1320): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 1320): Build fingerprint: ‘samsung/GT-S5830i/GT-S5830i:2.3.6/GINGERBREAD/JPLK1:user/release-keys’

I/DEBUG ( 1320): pid: 10177, tid: 10177 >>> org.cocos2dx.test2 <<<

I/DEBUG ( 1320): signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 8137e154

I/DEBUG ( 1320): r0 819e8abc r1 81384101 r2 819df000 r3 8137e121

I/DEBUG ( 1320): r4 819e8abc r5 819df000 r6 00000004 r7 00000000

I/DEBUG ( 1320): r8 80318200 r9 0000cec8 10 4428fc04 fp bef4b7e0

I/DEBUG ( 1320): ip 80b00000 sp bef4b3f0 lr 8137e14b pc 8137e154 cpsr 40000030

I/DEBUG ( 1320): d0 3f8000003f800000 d1 3ff0000040000000

I/DEBUG ( 1320): d2 4d86b02d424d164f d3 00540ff04a2c66a0

I/DEBUG ( 1320): d4 3fbc71c7002b19a8 d5 3fcef049fb9094d1

I/DEBUG ( 1320): d6 401c000000000000 d7 4014000000000000

I/DEBUG ( 1320): d8 0000000000000000 d9 0000000000000000

I/DEBUG ( 1320): d10 0000000000000000 d11 0000000000000000

I/DEBUG ( 1320): d12 0000000000000000 d13 0000000000000000

I/DEBUG ( 1320): d14 0000000000000000 d15 0000000000000000

I/DEBUG ( 1320): scr 60000010

I/DEBUG ( 1320):

I/DEBUG ( 1320): #00 pc 0037e154 /mnt/asec/org.cocos2dx.test2-1/lib/libcocos2dcpp.so

I/DEBUG ( 1320): #01 lr 8137e14b /mnt/asec/org.cocos2dx.test2-1/lib/libcocos2dcpp.so

I/DEBUG ( 1320):

I/DEBUG ( 1320): code around pc:

I/DEBUG ( 1320): 8137e134 462a4c0c 68094479 f172f109 6824447c

I/DEBUG ( 1320): 8137e144 f0054620 4908ffa5 462a4620 68094479

I/DEBUG ( 1320): 8137e154 4038e8bd b164f109 0066a98e 00660ed4

I/DEBUG ( 1320): 8137e164 0065f35c 0065f378 0065f36c 4c08b510

I/DEBUG ( 1320): 8137e174 3448447c f10c4620 4906f59b 46204a06

I/DEBUG ( 1320):

I/DEBUG ( 1320): code around lr:

I/DEBUG ( 1320): 8137e128 4620447d f5c2f10c 4620490c 462a4c0c

I/DEBUG ( 1320): 8137e138 68094479 f172f109 6824447c f0054620

I/DEBUG ( 1320): 8137e148 4908ffa5 462a4620 68094479 4038e8bd

I/DEBUG ( 1320): 8137e158 b164f109 0066a98e 00660ed4 0065f35c

I/DEBUG ( 1320): 8137e168 0065f378 0065f36c 4c08b510 3448447c

I/DEBUG ( 1320):

I/DEBUG ( 1320): stack:

I/DEBUG ( 1320): bef4b3b0 4428fc04

I/DEBUG ( 1320): bef4b3b4 81378e40 /mnt/asec/org.cocos2dx.test2-1/lib/libcocos2dcpp.so

I/DEBUG ( 1320): bef4b3b8 00000015

I/DEBUG ( 1320): bef4b3bc 8108bff8 /mnt/asec/org.cocos2dx.test2-1/lib/libcocos2dcpp.so

I/DEBUG ( 1320): bef4b3c0 b000e3a4

I/DEBUG ( 1320): bef4b3c4 b0003c4d /system/bin/linker

I/DEBUG ( 1320): bef4b3c8 3f000000

I/DEBUG ( 1320): bef4b3cc 3f000000

I/DEBUG ( 1320): bef4b3d0 3dcccccd

I/DEBUG ( 1320): bef4b3d4 819e8a84

I/DEBUG ( 1320): bef4b3d8 b000e548

I/DEBUG ( 1320): bef4b3dc bef4b3f4

I/DEBUG ( 1320): bef4b3e0 0000ffff

I/DEBUG ( 1320): bef4b3e4 00000001

I/DEBUG ( 1320): bef4b3e8 df002777

I/DEBUG ( 1320): bef4b3ec e3a070ad

I/DEBUG ( 1320): #00 bef4b3f0 8137e121 /mnt/asec/org.cocos2dx.test2-1/lib/libcocos2dcpp.so

I/DEBUG ( 1320): bef4b3f4 819cab7c

I/DEBUG ( 1320): bef4b3f8 00000046

I/DEBUG ( 1320): bef4b3fc b00037f5 /system/bin/linker

I/DEBUG ( 1320): bef4b400 b000e3fc

I/DEBUG ( 1320): bef4b404 b000e3f8

I/DEBUG ( 1320): bef4b408 00002762

I/DEBUG ( 1320): bef4b40c b00038a9 /system/bin/linker

I/DEBUG ( 1320): bef4b410 009f4000

I/DEBUG ( 1320): bef4b414 afd00000 /system/lib/libc.so

I/DEBUG ( 1320): bef4b418 00000021

I/DEBUG ( 1320): bef4b41c b000e318

I/DEBUG ( 1320): bef4b420 819dd408

I/DEBUG ( 1320): bef4b424 b000e318

I/DEBUG ( 1320): bef4b428 00002762

I/DEBUG ( 1320): bef4b42c b0004f93 /system/bin/linker

I/DEBUG ( 1320): bef4b430 00000021

I/DEBUG ( 1320): bef4b434 b000e3a4

D/BatteryService( 4739): update start

I/DEBUG ( 1320): dumpstate /data/log/dumpstate_app_native.txt

E/StatusBarPolicy( 4790): ecio: 17

E/StatusBarPolicy( 4790): iconLevel: 1

W/WindowManager( 4739): App freeze timeout expired.

W/WindowManager( 4739): Force clearing freeze: AppWindowToken{409befb8 token=HistoryRecord{409a4178 org.cocos2dx.test2/org.cocos2dx.cpp.AppActivity}}

D/PowerManagerService( 4739): releaseWakeLock flags=0x1 tag=SCREEN_FROZEN

W/PowerManagerService( 4739): Timer 0x7->0x3|0x0

I/PowerManagerService( 4739): Ulight 7->3|0

I/ActivityManager( 4739): Low Memory: No more background processes.

D/dalvikvm( 4739): GC_EXPLICIT freed 1228K, 43% free 6753K/11655K, external 2457K/3069K, paused 1484ms

the ndk stack trace is in the OP

We looked into this issue, but can’t reproduce it, I would recommend you try update to our latest version and see if you still have this issue.