Android 4.1.2 crash with Cocos2d-x 2.2 (android::NativeInputEventReceiver::consumeEvents...)


#1

My Cocos2d-x Android app normally runs flawlessly, but now a crash happened:

10-08 22:10:27.140: I/DEBUG(1905): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000003
10-08 22:10:27.350: I/DEBUG(1905):     r0 00441fff  r1 00000000  r2 00000008  r3 ffffffff
10-08 22:10:27.350: I/DEBUG(1905):     r4 00001378  r5 5ec53760  r6 00000050  r7 78000000
10-08 22:10:27.350: I/DEBUG(1905):     r8 00000050  r9 bec70460  sl ffffffff  fp 00000000
10-08 22:10:27.350: I/DEBUG(1905):     ip ffffffff  sp bec70390  lr 4006a013  pc 4006a612  cpsr a0000030
10-08 22:10:27.350: I/DEBUG(1905):     d0  0000000080000000  d1  4059000044238000
10-08 22:10:27.350: I/DEBUG(1905):     d2  409b140000000000  d3  44a0000000000000
10-08 22:10:27.350: I/DEBUG(1905):     d4  0000000000000000  d5  44a0000044340000
10-08 22:10:27.350: I/DEBUG(1905):     d6  449fe0004433c000  d7  4423800000000000
10-08 22:10:27.350: I/DEBUG(1905):     d8  0000000000000000  d9  0000000000000000
10-08 22:10:27.350: I/DEBUG(1905):     d10 0000000000000000  d11 0000000000000000
10-08 22:10:27.350: I/DEBUG(1905):     d12 0000000000000000  d13 0000000000000000
10-08 22:10:27.350: I/DEBUG(1905):     d14 0000000000000000  d15 0000000000000000
10-08 22:10:27.355: I/DEBUG(1905):     d16 7fffffffffffffff  d17 7fffffffffffffff
10-08 22:10:27.355: I/DEBUG(1905):     d18 0000000000000000  d19 2000000840070c40
10-08 22:10:27.355: I/DEBUG(1905):     d20 0000000000000000  d21 0000000000000000
10-08 22:10:27.355: I/DEBUG(1905):     d22 0000000000000000  d23 0000000000000000
10-08 22:10:27.355: I/DEBUG(1905):     d24 3ff0000000000000  d25 3ff0000000000000
10-08 22:10:27.355: I/DEBUG(1905):     d26 0000000000000000  d27 c035000000000000
10-08 22:10:27.355: I/DEBUG(1905):     d28 0000000000000000  d29 3ff0000000000000
10-08 22:10:27.355: I/DEBUG(1905):     d30 3ff0000000000000  d31 3ff0000000000000
10-08 22:10:27.355: I/DEBUG(1905):     scr 60000013
10-08 22:10:27.360: I/DEBUG(1905): backtrace:
10-08 22:10:27.365: I/DEBUG(1905):     #00  pc 00014612  /system/lib/libc.so (dlmalloc+1589)
10-08 22:10:27.365: I/DEBUG(1905):     #01  pc 00016f7f  /system/lib/libc.so (malloc+10)
10-08 22:10:27.365: I/DEBUG(1905):     #02  pc 0000f0a5  /system/lib/libutils.so (android::SharedBuffer::alloc(unsigned int)+8)
10-08 22:10:27.365: I/DEBUG(1905):     #03  pc 00011e7b  /system/lib/libutils.so (android::VectorImpl::_grow(unsigned int, unsigned int)+78)
10-08 22:10:27.365: I/DEBUG(1905):     #04  pc 00011f03  /system/lib/libutils.so (android::VectorImpl::insertAt(void const*, unsigned int, unsigned int)+22)
10-08 22:10:27.365: I/DEBUG(1905):     #05  pc 0002935b  /system/lib/libandroidfw.so (android::InputConsumer::consume(android::InputEventFactoryInterface*, bool, long long, unsigned int*, android::InputEvent**)    +274)
10-08 22:10:27.365: I/DEBUG(1905):     #06  pc 0005e0fd  /system/lib/libandroid_runtime.so (android::NativeInputEventReceiver::consumeEvents(_JNIEnv*, bool, long long)+68)
10-08 22:10:27.365: I/DEBUG(1905):     #07  pc 0005e271  /system/lib/libandroid_runtime.so (android::NativeInputEventReceiver::handleEvent(int, int, void*)+76)
10-08 22:10:27.365: I/DEBUG(1905):     #08  pc 00014a3d  /system/lib/libutils.so (android::Looper::pollInner(int)+516)
10-08 22:10:27.365: I/DEBUG(1905):     #09  pc 00014b01  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
10-08 22:10:27.365: I/DEBUG(1905):     #10  pc 000635fb  /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
10-08 22:10:27.365: I/DEBUG(1905):     #11  pc 0001deb0  /system/lib/libdvm.so (dvmPlatformInvoke+112)
10-08 22:10:27.365: I/DEBUG(1905):     #12  pc 0004d103  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
10-08 22:10:27.365: I/DEBUG(1905):     #13  pc 000272e0  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):     #14  pc 0002bbe8  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
10-08 22:10:27.365: I/DEBUG(1905):     #15  pc 0005fb37  /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
10-08 22:10:27.365: I/DEBUG(1905):     #16  pc 000670e5  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):     #17  pc 000272e0  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):     #18  pc 0002bbe8  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
10-08 22:10:27.365: I/DEBUG(1905):     #19  pc 0005f871  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
10-08 22:10:27.365: I/DEBUG(1905):     #20  pc 000496f3  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):     #21  pc 0004c571  /system/lib/libandroid_runtime.so
10-08 22:10:27.365: I/DEBUG(1905):     #22  pc 0004d677  /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
10-08 22:10:27.365: I/DEBUG(1905):     #23  pc 00000dcf  /system/bin/app_process
10-08 22:10:27.365: I/DEBUG(1905): stack:
10-08 22:10:27.365: I/DEBUG(1905):          bec70350  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec70354  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec70358  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec7035c  40899ebd  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):          bec70360  408b81a8  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):          bec70364  400a6a6c  
10-08 22:10:27.365: I/DEBUG(1905):          bec70368  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec7036c  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec70370  bec70420  [stack]
10-08 22:10:27.365: I/DEBUG(1905):          bec70374  5707f800  /dev/ashmem/dalvik-LinearAlloc (deleted)
10-08 22:10:27.365: I/DEBUG(1905):          bec70378  c0000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec7037c  00001370  
10-08 22:10:27.365: I/DEBUG(1905):          bec70380  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec70384  00000001  
10-08 22:10:27.365: I/DEBUG(1905):          bec70388  df0027ad  
10-08 22:10:27.365: I/DEBUG(1905):          bec7038c  00000000  
10-08 22:10:27.365: I/DEBUG(1905):     #00  bec70390  408b81a8  /system/lib/libdvm.so
10-08 22:10:27.365: I/DEBUG(1905):          bec70394  400a6a6c  
10-08 22:10:27.365: I/DEBUG(1905):          bec70398  41d2b038  /dev/ashmem/dalvik-heap (deleted)
10-08 22:10:27.365: I/DEBUG(1905):          bec7039c  41d2b038  /dev/ashmem/dalvik-heap (deleted)
10-08 22:10:27.365: I/DEBUG(1905):          bec703a0  bec70450  [stack]
10-08 22:10:27.365: I/DEBUG(1905):          bec703a4  00001360  
10-08 22:10:27.365: I/DEBUG(1905):          bec703a8  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec703ac  00000001  
10-08 22:10:27.365: I/DEBUG(1905):          bec703b0  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec703b4  00000001  
10-08 22:10:27.365: I/DEBUG(1905):          bec703b8  bec70460  [stack]
10-08 22:10:27.365: I/DEBUG(1905):          bec703bc  ffffffff  
10-08 22:10:27.365: I/DEBUG(1905):          bec703c0  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec703c4  4006cf81  /system/lib/libc.so (malloc+12)
10-08 22:10:27.365: I/DEBUG(1905):     #01  bec703c8  00000000  
10-08 22:10:27.365: I/DEBUG(1905):          bec703cc  4012d0a9  /system/lib/libutils.so (android::SharedBuffer::alloc(unsigned int)+12)
10-08 22:10:27.365: I/DEBUG(1905):     #02  bec703d0  5ec62880  
10-08 22:10:27.365: I/DEBUG(1905):          bec703d4  4012fe7f  /system/lib/libutils.so (android::VectorImpl::_grow(unsigned int, unsigned int)+82)
10-08 22:10:27.375: I/DEBUG(1905): memory near r0:
10-08 22:10:27.375: I/DEBUG(1905):     00441fdc ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     00441fec ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     00441ffc ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     0044200c ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     0044201c ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905): memory near r4:
10-08 22:10:27.375: I/DEBUG(1905):     00001358 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     00001368 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     00001378 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     00001388 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     00001398 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905): memory near r5:
10-08 22:10:27.375: I/DEBUG(1905):     5ec53740 00000018 00000023 5d63c6a0 00036c12  ....#.....c].l..
10-08 22:10:27.375: I/DEBUG(1905):     5ec53750 00000000 00000002 00000000 5ec2bf58  ............X..^
10-08 22:10:27.375: I/DEBUG(1905):     5ec53760 00000020 000013c9 5ec53760 5ec53760   .......`7.^`7.^
10-08 22:10:27.375: I/DEBUG(1905):     5ec53770 00000000 5ecb2c08 5ecb0390 00000008  .....,.^...^....
10-08 22:10:27.375: I/DEBUG(1905):     5ec53780 0002471a 00000000 4682ba88 000007c4  .G.........F....
10-08 22:10:27.375: I/DEBUG(1905): memory near r7:
10-08 22:10:27.375: I/DEBUG(1905):     77ffffe0 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     77fffff0 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     78000000 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     78000010 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905):     78000020 ffffffff ffffffff ffffffff ffffffff  ................
10-08 22:10:27.375: I/DEBUG(1905): memory near r9:
10-08 22:10:27.375: I/DEBUG(1905):     bec70440 00000000 401d6101 ffffffff ffffffff  .....a.@........
10-08 22:10:27.375: I/DEBUG(1905):     bec70450 bec70460 bec70464 408ae6f3 00058d7c  `...d......@|...
10-08 22:10:27.380: I/DEBUG(1905):     bec70460 00000000 00000000 5d696df0 00000000  .........mi]....
10-08 22:10:27.380: I/DEBUG(1905):     bec70470 41078958 5c1dc488 00000000 0000002c  X..A...\....,...
10-08 22:10:27.380: I/DEBUG(1905):     bec70480 00000000 5bb69ebc 0000002c 401d6275  .......[,...ub.@
10-08 22:10:27.380: I/DEBUG(1905): memory near sp:
10-08 22:10:27.380: I/DEBUG(1905):     bec70370 bec70420 5707f800 c0000000 00001370   ......W....p...
10-08 22:10:27.380: I/DEBUG(1905):     bec70380 00000000 00000001 df0027ad 00000000  .........'......
10-08 22:10:27.380: I/DEBUG(1905):     bec70390 408b81a8 400a6a6c 41d2b038 41d2b038  ...@lj.@8..A8..A
10-08 22:10:27.380: I/DEBUG(1905):     bec703a0 bec70450 00001360 00000000 00000001  P...`...........
10-08 22:10:27.380: I/DEBUG(1905):     bec703b0 00000000 00000001 bec70460 ffffffff  ........`.......
10-08 22:10:27.380: I/DEBUG(1905): code around pc:
10-08 22:10:27.380: I/DEBUG(1905):     4006a5f0 0240f3c0 66a8f8df f102fa30 0c02eb03  ..@....f0.......
10-08 22:10:27.380: I/DEBUG(1905):     4006a600 0501eb0c eb06447e 25000085 312cf8d0  ....~D.....%..,1
10-08 22:10:27.380: I/DEBUG(1905):     4006a610 685ae00d f0226919 ebc40c03 4542020c  ..Zh.i".......BE
10-08 22:10:27.380: I/DEBUG(1905):     4006a620 4642bf2c b901461d 460b6959 2b004690  ,.BF.F..Yi.F.F.+
10-08 22:10:27.380: I/DEBUG(1905):     4006a630 2d00d1ef 818ff000 2668f8df 6890447a  ...-......h&zD.h
10-08 22:10:27.380: I/DEBUG(1905): code around lr:
10-08 22:10:27.380: I/DEBUG(1905):     40069ff0 b930fd21 2becf8df f8d2447a 078b11b4  !.0....+zD......
10-08 22:10:27.380: I/DEBUG(1905):     4006a000 f8dfd50a 447d5be4 70dcf505 f7fe2500  .....[}D...p.%..
10-08 22:10:27.380: I/DEBUG(1905):     4006a010 2800e958 8249f041 f2002cf4 2c0a823f  X..(A.I..,..?..,
10-08 22:10:27.380: I/DEBUG(1905):     4006a020 340bd903 0407f024 2410e000 7bbcf8df  ...4$......$...{
10-08 22:10:27.380: I/DEBUG(1905):     4006a030 447f08e2 fa36683e 079df302 f003d042  ...D>h6.....B...
10-08 22:10:27.585: I/DEBUG(1905): !@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 24234

It does not look like it has to do with my code or Cocos2d-x code, so I’m not sure where to start to solve this problem … is this maybe a known issue?

I’m using Cocos2d-x 2.2, my test device was a Samsung Galaxy S3 with Android 4.1.2. The crash happended during “normal” use, which normally works, no special case.


#2

I also don’t know what happened from the error message.