Can't use ndk-stack for log from logcat in cocos2d-x 3

Hey
I got SIGSEGV and tried to use ndk-stack to read log. But it’s failed to parse log.
So I made clean cocos2d-x 3 android project and got the same issue.

And there were only two lines in backtrace and only from my code. It’s strange.

log:

08-29 13:55:48.290: INFO/DEBUG(1845): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-29 13:55:48.290: INFO/DEBUG(1845): Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys'
08-29 13:55:48.290: INFO/DEBUG(1845): Revision: '14'
08-29 13:55:48.290: INFO/DEBUG(1845): pid: 554, tid: 568, name: Thread-4507  >>> com.mobiledynamix.crossme <<<
08-29 13:55:48.290: INFO/DEBUG(1845): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
08-29 13:55:48.405: INFO/DEBUG(1845): r0 00000000  r1 528863a8  r2 00000000  r3 00000000
08-29 13:55:48.405: INFO/DEBUG(1845): r4 528863a8  r5 5313c101  r6 5350bbd4  r7 400469e8
08-29 13:55:48.405: INFO/DEBUG(1845): r8 5350bc50  r9 40064f28  sl 51381018  fp 5350bc64
08-29 13:55:48.405: INFO/DEBUG(1845): ip ffffffff  sp 5350bba0  lr 5310e4fb  pc 530cab02  cpsr 600b0030
08-29 13:55:48.405: INFO/DEBUG(1845): d0  697469736f507265  d1  7275747865546e43
08-29 13:55:48.405: INFO/DEBUG(1845): d2  000000000000006f  d3  000000000000006c
08-29 13:55:48.405: INFO/DEBUG(1845): d4  ffffffffffffffff  d5  ffffffffffffffff
08-29 13:55:48.405: INFO/DEBUG(1845): d6  ffffffffffffffff  d7  ffffffffffffffff
08-29 13:55:48.405: INFO/DEBUG(1845): d8  0000000000000000  d9  0000000000000000
08-29 13:55:48.405: INFO/DEBUG(1845): d10 0000000000000000  d11 0000000000000000
08-29 13:55:48.405: INFO/DEBUG(1845): d12 0000000000000000  d13 0000000000000000
08-29 13:55:48.405: INFO/DEBUG(1845): d14 0000000000000000  d15 0000000000000000
08-29 13:55:48.405: INFO/DEBUG(1845): d16 413e40423d404040  d17 403c3f403c3f3f3e
08-29 13:55:48.405: INFO/DEBUG(1845): d18 403d3f413c3f3f3f  d19 ffffffffffffffff
08-29 13:55:48.405: INFO/DEBUG(1845): d20 ff00000000000000  d21 0000039000000370
08-29 13:55:48.405: INFO/DEBUG(1845): d22 fcfdfcfefdfeffff  d23 090a0b0c0d0e0f10
08-29 13:55:48.405: INFO/DEBUG(1845): d24 0000e237000034da  d25 000010770000d2cb
08-29 13:55:48.405: INFO/DEBUG(1845): d26 0000444c0000c22e  d27 00004a400000433f
08-29 13:55:48.405: INFO/DEBUG(1845): d28 0000443d0000c21f  d29 0000493200004330
08-29 13:55:48.405: INFO/DEBUG(1845): d30 0000000100000001  d31 0000000100000001
08-29 13:55:48.405: INFO/DEBUG(1845): scr 20000010
08-29 13:55:48.405: INFO/DEBUG(1845): backtrace:
08-29 13:55:48.405: INFO/DEBUG(1845): #00  pc 00126b02  /data/app-lib/com.mobiledynamix.crossme-1/libcocos2dcpp.so (HelloWorld::init()+445)
08-29 13:55:48.405: INFO/DEBUG(1845): #01  pc 0016a4f9  /data/app-lib/com.mobiledynamix.crossme-1/libcocos2dcpp.so (cocos2d::Node::addChild(cocos2d::Node*, int, int)+204)

ndk-stack output:

********** Crash dump: **********
Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys'
pid: 554, tid: 568, name: Thread-4507  >>> com.mobiledynamix.crossme <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Assertion failed: (num != 0), function add, file elff/dwarf_defs.h, line 744.
Stack frame #00  pc 00126b02  /data/app-lib/com.mobiledynamix.crossme-1/libcocos2dcpp.so (HelloWorld::init()+445)Abort trap: 6

Maybe it’s known issue and somebody found how it can be solved.

Hi. I’m having a similar problem, previous to the ndk stack there is a failed asset, but I couldn’t found why it fails. Have you solved your problem?

W/dalvikvm(19952): JNI: unpinPrimitiveArray(0x42052618) failed to find entry (valid=1)
E/cocos2d-x assert(19952): cocos2dx/cocos2dx/platform/android/CCApplication.cpp function:sharedApplication line:60
F/libc    (19952): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 19967 (Thread-1464)

Sebastian Marconi wrote:

Hi. I’m having a similar problem, previous to the ndk stack there is a failed asset, but I couldn’t found why it fails. Have you solved your problem?
[…]
Hello. I think it happens because of other NDK version, 4.8 in cocos2dx 3. In last 2 version with older NDK everything is fine.
But I found only one solution: using arm-linux-androideabi-addr2line from 4.8 to get data from pointers.