Problem when running a complied game.

hello,

I have ported a game to cocos2dx, its running on iPhone , and in Iphone simulator , but when i try to compile it for android it shows this debug

07-14 17:45:02.706: I/Choreographer(459): Skipped 40 frames! The application may be doing too much work on its main thread. 07-14 17:45:02.896: I/dalvikvm(882): Turning on JNI app bug workarounds for target SDK version 8... 07-14 17:45:02.986: E/Trace(882): error opening trace file: No such file or directory (2) 07-14 17:45:03.086: D/dalvikvm(882): Trying to load lib /data/data/org.cocos2dx.application/lib/libhelloworld.so 0x411e17a0 07-14 17:45:03.147: A/libc(882): Fatal signal 11 (SIGSEGV) at 0x00000030 (code=1), thread 882 (2dx.application) 07-14 17:45:03.268: I/DEBUG(33): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 07-14 17:45:03.268: I/DEBUG(33): Build fingerprint: 'generic/sdk/generic:4.1/JRN83C/391408:eng/test-keys' 07-14 17:45:03.276: I/DEBUG(33): pid: 882, tid: 882, name: UNKNOWN >>> org.cocos2dx.application <<< 07-14 17:45:03.276: I/DEBUG(33): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000030 07-14 17:45:03.636: I/DEBUG(33): r0 4a558de8 r1 2a0d65e0 r2 74318cea r3 00000030 07-14 17:45:03.636: I/DEBUG(33): r4 4a55601c r5 2a0f8a80 r6 00000004 r7 2a00b9e0 07-14 17:45:03.646: I/DEBUG(33): r8 00000000 r9 4079c1a8 sl 44bebc2c fp 00000001 07-14 17:45:03.646: I/DEBUG(33): ip 00000000 sp beb1f598 lr 4a38b1e7 pc 4a386c86 cpsr 00000030 07-14 17:45:03.646: I/DEBUG(33): d0 000000f043700000 d1 3ff0000043700000 07-14 17:45:03.646: I/DEBUG(33): d2 3ff0000000000000 d3 bf62cda764a98eab 07-14 17:45:03.646: I/DEBUG(33): d4 4000000000000000 d5 3f40000000000000 07-14 17:45:03.646: I/DEBUG(33): d6 3fe999999999999a d7 000000f000000000 07-14 17:45:03.646: I/DEBUG(33): d8 0000000000000000 d9 0000000000000000 07-14 17:45:03.646: I/DEBUG(33): d10 0000000000000000 d11 0000000000000000 07-14 17:45:03.646: I/DEBUG(33): d12 0000000000000000 d13 0000000000000000 07-14 17:45:03.646: I/DEBUG(33): d14 0000000000000000 d15 0000000000000000 07-14 17:45:03.657: I/DEBUG(33): scr 60000010 07-14 17:45:03.676: I/DEBUG(33): backtrace: 07-14 17:45:03.676: I/DEBUG(33): #00 pc 000fcc86 /data/data/org.cocos2dx.application/lib/libhelloworld.so (cocos2d::CCNode::CCNode()+293) 07-14 17:45:03.676: I/DEBUG(33): #01 pc 001429cf /data/data/org.cocos2dx.application/lib/libhelloworld.so (cocos2d::CCLayer::CCLayer()+14) 07-14 17:45:03.676: I/DEBUG(33): #02 pc 000d55df /data/data/org.cocos2dx.application/lib/libhelloworld.so (ThemeLayer::ThemeLayer()+14) 07-14 17:45:03.676: I/DEBUG(33): #03 pc 000d7e2b /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.676: I/DEBUG(33): #04 pc 000d7e91 /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.686: I/DEBUG(33): #05 pc 00003733 /system/bin/linker 07-14 17:45:03.686: I/DEBUG(33): #06 pc 00005c2b /system/bin/linker 07-14 17:45:03.686: I/DEBUG(33): #07 pc 0004f33f /system/lib/libdvm.so (dvmLoadNativeCode(char const*, Object*, char**)+186) 07-14 17:45:03.686: I/DEBUG(33): #08 pc 00065cf5 /system/lib/libdvm.so 07-14 17:45:03.686: I/DEBUG(33): #09 pc 00027260 /system/lib/libdvm.so 07-14 17:45:03.686: I/DEBUG(33): #10 pc 0002bb2c /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180) 07-14 17:45:03.686: I/DEBUG(33): #11 pc 0005f591 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272) 07-14 17:45:03.686: I/DEBUG(33): #12 pc 0005f5bb /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20) 07-14 17:45:03.686: I/DEBUG(33): #13 pc 0006a151 /system/lib/libdvm.so (dvmInitClass+1032) 07-14 17:45:03.686: I/DEBUG(33): #14 pc 00065713 /system/lib/libdvm.so 07-14 17:45:03.696: I/DEBUG(33): #15 pc 00027260 /system/lib/libdvm.so 07-14 17:45:03.696: I/DEBUG(33): #16 pc 0002bb2c /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180) 07-14 17:45:03.696: I/DEBUG(33): #17 pc 0005f857 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374) 07-14 17:45:03.696: I/DEBUG(33): #18 pc 00066ce9 /system/lib/libdvm.so 07-14 17:45:03.696: I/DEBUG(33): #19 pc 00027260 /system/lib/libdvm.so 07-14 17:45:03.696: I/DEBUG(33): #20 pc 0002bb2c /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180) 07-14 17:45:03.696: I/DEBUG(33): #21 pc 0005f591 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272) 07-14 17:45:03.707: I/DEBUG(33): #22 pc 000494bf /system/lib/libdvm.so 07-14 17:45:03.707: I/DEBUG(33): #23 pc 0003d0cf /system/lib/libdvm.so 07-14 17:45:03.707: I/DEBUG(33): #24 pc 000447fd /system/lib/libandroid_runtime.so 07-14 17:45:03.707: I/DEBUG(33): #25 pc 000452df /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390) 07-14 17:45:03.707: I/DEBUG(33): #26 pc 00000dcf /system/bin/app_process 07-14 17:45:03.707: I/DEBUG(33): stack: 07-14 17:45:03.707: I/DEBUG(33): beb1f558 2a0d65e0 [heap] 07-14 17:45:03.707: I/DEBUG(33): beb1f55c 2a0d65e0 [heap] 07-14 17:45:03.716: I/DEBUG(33): beb1f560 2a0f8a80 [heap] 07-14 17:45:03.716: I/DEBUG(33): beb1f564 4a38b1e7 /data/data/org.cocos2dx.application/lib/libhelloworld.so (cocos2d::CCPoolManager::push()+54) 07-14 17:45:03.716: I/DEBUG(33): beb1f568 4a558de8 07-14 17:45:03.716: I/DEBUG(33): beb1f56c 2a0df628 [heap] 07-14 17:45:03.716: I/DEBUG(33): beb1f570 2a0c45c8 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f574 2a0d65e0 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f578 2a0d65b0 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f57c 4a393c6f /data/data/org.cocos2dx.application/lib/libhelloworld.so (cocos2d::CCDirector::init()+446) 07-14 17:45:03.726: I/DEBUG(33): beb1f580 00000000 07-14 17:45:03.726: I/DEBUG(33): beb1f584 4a558de8 07-14 17:45:03.726: I/DEBUG(33): beb1f588 4a55601c /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.726: I/DEBUG(33): beb1f58c 4a393a13 /data/data/org.cocos2dx.application/lib/libhelloworld.so (cocos2d::CCDirector::sharedDirector()+30) 07-14 17:45:03.726: I/DEBUG(33): beb1f590 df0027ad 07-14 17:45:03.726: I/DEBUG(33): beb1f594 00000000 07-14 17:45:03.726: I/DEBUG(33): #00 beb1f598 00000133 07-14 17:45:03.726: I/DEBUG(33): beb1f59c 2a0f8a80 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f5a0 4a55601c /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.726: I/DEBUG(33): beb1f5a4 4a558de8 07-14 17:45:03.726: I/DEBUG(33): beb1f5a8 4a55601c /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.726: I/DEBUG(33): beb1f5ac 4a3cc9d3 /data/data/org.cocos2dx.application/lib/libhelloworld.so (cocos2d::CCLayer::CCLayer()+18) 07-14 17:45:03.726: I/DEBUG(33): #01 beb1f5b0 00000000 07-14 17:45:03.726: I/DEBUG(33): beb1f5b4 2a0f8a80 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f5b8 00000128 07-14 17:45:03.726: I/DEBUG(33): beb1f5bc 00000004 07-14 17:45:03.726: I/DEBUG(33): beb1f5c0 2a00b9e0 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f5c4 00000000 07-14 17:45:03.726: I/DEBUG(33): beb1f5c8 4079c1a8 /system/lib/libdvm.so 07-14 17:45:03.726: I/DEBUG(33): beb1f5cc 44bebc2c 07-14 17:45:03.726: I/DEBUG(33): beb1f5d0 00000001 07-14 17:45:03.726: I/DEBUG(33): beb1f5d4 4003cf29 /system/lib/libc.so (malloc+12) 07-14 17:45:03.726: I/DEBUG(33): beb1f5d8 4a55601c /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.726: I/DEBUG(33): beb1f5dc 4a35f5e3 /data/data/org.cocos2dx.application/lib/libhelloworld.so (ThemeLayer::ThemeLayer()+18) 07-14 17:45:03.726: I/DEBUG(33): #02 beb1f5e0 4a55601c /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.726: I/DEBUG(33): beb1f5e4 2a0f8a80 [heap] 07-14 17:45:03.726: I/DEBUG(33): beb1f5e8 4a55601c /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.726: I/DEBUG(33): beb1f5ec 4a361e2f /data/data/org.cocos2dx.application/lib/libhelloworld.so 07-14 17:45:03.776: I/DEBUG(33): memory near r0: 07-14 17:45:03.776: I/DEBUG(33): 4a558dc8 00000000 00000000 00000000 00000000 ................ 07-14 17:45:03.776: I/DEBUG(33): 4a558dd8 00000000 00000000 00000000 00000000 ................ 07-14 17:45:03.776: I/DEBUG(33): 4a558de8 00000000 00000000 00000000 00000000 ................ 07-14 17:45:03.776: I/DEBUG(33): 4a558df8 00000000 2a0d8898 2a0dec40 2a0d9440 .......*..* 07-14 17:45:03.776: I/DEBUG(33): 4a558e08 2a0c45c8 2a0d65b0 00000000 00000000 .E.*.e.*........ 07-14 17:45:03.776: I/DEBUG(33): memory near r1: 07-14 17:45:03.776: I/DEBUG(33): 2a0d65c0 2a1412f0 00000000 006f0063 0074006e ...*....c.o.n.t. 07-14 17:45:03.776: I/DEBUG(33): 2a0d65d0 006e0065 002e0074 006d0070 00000023 e.n.t...p.m.#... 07-14 17:45:03.787: I/DEBUG(33): 2a0d65e0 4a549188 0000003b 00000000 00000001 ..TJ;........... 07-14 17:45:03.787: I/DEBUG(33): 2a0d65f0 006e0000 2a0d6600 00720065 00000023 ..n..f.*e.r.#... 07-14 17:45:03.787: I/DEBUG(33): 2a0d6600 4a549298 0000003c 00000000 00000001 ..TJ<........... 07-14 17:45:03.787: I/DEBUG(33): memory near r2: 07-14 17:45:03.787: I/DEBUG(33): 74318cc8 ffffffff ffffffff ffffffff ffffffff ................ 07-14 17:45:03.787: I/DEBUG(33): 74318cd8 ffffffff ffffffff ffffffff ffffffff ................ 07-14 17:45:03.796: I/DEBUG(33): 74318ce8 ffffffff ffffffff ffffffff ffffffff ................ 07-14 17:45:03.796: I/DEBUG(33): 74318cf8 ffffffff ffffffff ffffffff ffffffff ................ 07-14 17:45:03.796: I/DEBUG(33): 74318d08 ffffffff ffffffff ffffffff ffffffff ................ 07-14 17:45:03.796: I/DEBUG(33): memory near r4: 07-14 17:45:03.796: I/DEBUG(33): 4a555ffc 00000000 00000000 00000000 00000000 ................ 07-14 17:45:03.806: I/DEBUG(33): 4a55600c 00000000 00000000 00000000 00000000 ................ 07-14 17:45:03.806: I/DEBUG(33): 4a55601c 002cbf1c 00000000 00000000 400408e1 ..,............
07-14 17:45:03.806: I/DEBUG: 4a55602c 4004f23f 4046900c 40048349 404693f0 ?....FI…..F
07-14 17:45:03.806: I/DEBUG: 4a55603c 40048a3d 400df628 400844b0 4004c411 =…(...D....
07-14 17:45:03.806: I/DEBUG: memory near r5:
07-14 17:45:03.806: I/DEBUG: 2a0f8a60 000001f0 0000001a 406f0388 2a12cea8 ……….o...* 07-14 17:45:03.806: I/DEBUG(33): 2a0f8a70 4796c800 00000000 00000018 00000133 ...G........3... 07-14 17:45:03.806: I/DEBUG(33): 2a0f8a80 4a548fe0 0000002a 00000000 00000001 ..TJ*........... 07-14 17:45:03.806: I/DEBUG(33): 2a0f8a90 63690000 00000000 00000000 00000000 ..ic............ 07-14 17:45:03.806: I/DEBUG(33): 2a0f8aa0 3f800000 3f800000 4a549148 0000002b ...?...?H.TJ+... 07-14 17:45:03.806: I/DEBUG(33): memory near r7: 07-14 17:45:03.806: I/DEBUG(33): 2a00b9c0 00000000 00000000 00000000 00000000 ................ 07-14 17:45:03.816: I/DEBUG(33): 2a00b9d0 00000000 00000000 00000000 00000453 ............S... 07-14 17:45:03.816: I/DEBUG(33): 2a00b9e0 4a278fd0 44bebc40 44cae1e8 45f2c000 ..'J…D…D…E
07-14 17:45:03.816: I/DEBUG: 2a00b9f0 411f0138 74318cea beb1f690 00000000 8…A…1t………
07-14 17:45:03.816: I/DEBUG: 2a00ba00 beb1f6c4 00000001 00000000 4070ffc0 ……………p@
07-14 17:45:03.816: I/DEBUG: memory near r9:
07-14 17:45:03.816: I/DEBUG: 4079c188 00000000 00000000 00000000 00000000 …………….
07-14 17:45:03.826: I/DEBUG: 4079c198 00000000 00000000 00000000 00000000 …………….
07-14 17:45:03.826: I/DEBUG: 4079c1a8 2a0096d8 2a0096c8 00400000 03000000 …
…**…..... 07-14 17:45:03.826: I/DEBUG(33): 4079c1b8 03000000 00004000 00006000 00000001 .....…`……
07-14 17:45:03.826: I/DEBUG: 4079c1c8 00000101 00000002 00000001 00000000 …………….
07-14 17:45:03.826: I/DEBUG: memory near sl:
07-14 17:45:03.836: I/DEBUG: 44bebc0c 411effe0 411eff88 00000000 00000002 …A…A………
07-14 17:45:03.836: I/DEBUG: 44bebc1c 411f0138 411e17f8 411efee8 44bebc5c 8…A…A…AD
07-14 17:45:03.836: I/DEBUG: 44bebc2c 44bebc5c 45c918e2 44caddb8 00000006 D…E…D….
07-14 17:45:03.836: I/DEBUG: 44bebc3c 00000000 411f0138 411e17a0 44bebcac ….8…A…A…D
07-14 17:45:03.836: I/DEBUG: 44bebc4c 45c974fc 44cae1e8 45c918e2 00000000 .t.E…D…E….
07-14 17:45:03.836: I/DEBUG: memory near sp:
07-14 17:45:03.836: I/DEBUG: beb1f578 2a0d65b0 4a393c6f 00000000 4a558de8 .e.*o<9J……UJ
07-14 17:45:03.836: I/DEBUG(33): beb1f588 4a55601c 4a393a13 df0027ad 00000000 .`UJ.:9J.’……
07-14 17:45:03.846: I/DEBUG(33): beb1f598 00000133 2a0f8a80 4a55601c 4a558de8 3……*.`UJ…UJ
07-14 17:45:03.846: I/DEBUG(33): beb1f5a8 4a55601c 4a3cc9d3 00000000 2a0f8a80 .`UJ…<J…

07-14 17:45:03.846: I/DEBUG(33): beb1f5b8 00000128 00000004 2a00b9e0 00000000 (…*…
07-14 17:45:03.846: I/DEBUG(33): code around pc:
07-14 17:45:03.846: I/DEBUG(33): 4a386c64 23879a01 2100005b 9a0154d1 005b2388 …#[…!.T…#[.
07-14 17:45:03.846: I/DEBUG(33): 4a386c74 50d12100 febcf00c 93031c03 681b9b03 .!.P…h
07-14 17:45:03.856: I/DEBUG(33): 4a386c84 681b3330 1c109a03 1c014798 23d49a01 03.h…G…#
07-14 17:45:03.856: I/DEBUG(33): 4a386c94 9a0150d1 58d323d4 f0091c18 9b03fda9 .P…#.X…
07-14 17:45:03.856: I/DEBUG(33): 4a386ca4 3328681b 9a03681b 47981c10 9a011c01 .h(3.h…G…
07-14 17:45:03.856: I/DEBUG(33): code around lr:
07-14 17:45:03.856: I/DEBUG(33): 4a38b1c4 fda2f7ff 9b019403 605a9a03 681a9b01 …Z`…h
07-14 17:45:03.856: I/DEBUG(33): 4a38b1d4 1c109b03 f0081c19 9b03f805 f0051c18 …
07-14 17:45:03.856: I/DEBUG(33): 4a38b1e4 b004fabd 46c0bd10 b085b500 9b019001 …F…
07-14 17:45:03.856: I/DEBUG(33): 4a38b1f4 2b00685b 9b01d024 1c18681b fefcf007 [h.+$…h…
07-14 17:45:03.856: I/DEBUG(33): 4a38b204 93031c03 685b9b01 f7ff1c18 9b03fe6f …[h…o…
07-14 17:45:04.186: I/BootReceiver(354): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
07-14 17:45:04.206: D/Zygote(276): Process 882 terminated by signal (11)
07-14 17:45:04.216: I/ActivityManager(354): Process org.cocos2dx.application (pid 882) has died.@

I have setup’d my mac book for cocos2dx android by doing following :

  1. Installed latest xcode.
  2. Installed latest cocos2dx templated.
  3. created a new project.
  4. downloaded latest ecllipse.
  5. downloaded lated SDK, and configured in ecllipse.
  6. downloaded latest NDK(r8).
  7. changed variables in create-android-project.sh
  8. created android project.

now,

  1. I placed files Classes and Resources from Xcode project to cocos2dx(android) project.
  2. Then i updated android.mk file.
  3. i ported the game using previous version of cocos2dx.
  4. removed all warnings, (ex-> used “create()” instead of all other functions).
  5. then complied , their was no errors.
  6. but i tried to running in android , it installed and stuck on a black screen , after some android system says application not responding and “Force close” or “wait” for application to respond.

please help.

Did you test on real phone or simulator?

i have tested on My Samsung Galaxy ace and on 2.3.3 emulator.

this debug is of my galaxy ace phone.