App stops right after start without errors

Hi,

my app is a crossplatform (ios/android). I’m developing in xcode and then tried to compile it in adt. Got it running on emulator, but when i start it on my target device, it starts with a black screen und stops within half a second. Neither a system message nor logcat error. By the way: whe i start the initial project it starts on the device without problems.

Does anyone know what to do or how to find out, where the problem is? Thanks :slight_smile:

Info:

OS: Mac 10.8.4
Cocos2d: 2.1.4
NDK: android-ndk-r9-darwin-x86
ADT Bundle: 22.0.4.v201307151829
Device: HTC Desire A8181
Android: 2.2.2

Console output:

[2013-09-24 15:00:07 - PentominoProto1] ------------------------------
[2013-09-24 15:00:07 - PentominoProto1] Android Launch!
[2013-09-24 15:00:07 - PentominoProto1] adb is running normally.
[2013-09-24 15:00:07 - PentominoProto1] Performing de.appcellent.PentominoProto1.PentominoProto1 activity launch
[2013-09-24 15:00:12 - PentominoProto1] Uploading PentominoProto1.apk onto device 'MB153PL19809'
[2013-09-24 15:00:13 - PentominoProto1] Installing PentominoProto1.apk...
[2013-09-24 15:00:22 - PentominoProto1] Success!
[2013-09-24 15:00:22 - libcocos2dx] Could not find libcocos2dx.apk!
[2013-09-24 15:00:22 - PentominoProto1] Starting activity de.appcellent.PentominoProto1.PentominoProto1 on device MB153PL19809
[2013-09-24 15:00:23 - PentominoProto1] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=de.appcellent.PentominoProto1/.PentominoProto1 }

logcat (project only)

09-24 15:02:40.668: D/dalvikvm(4461): Trying to load lib /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so 0x4618d330
09-24 15:02:40.688: D/dalvikvm(4461): Added shared lib /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so 0x4618d330
09-24 15:02:40.698: D/Cocos2dxActivity(4461): model=HTC Desire
09-24 15:02:40.698: D/Cocos2dxActivity(4461): product=htc_bravo
09-24 15:02:40.698: D/Cocos2dxActivity(4461): isEmulator=false
09-24 15:02:40.798: D/libEGL(4461): loaded /system/lib/egl/libGLES_android.so
09-24 15:02:40.808: D/libEGL(4461): loaded /system/lib/egl/libEGL_adreno200.so
09-24 15:02:40.808: D/libEGL(4461): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
09-24 15:02:40.808: D/libEGL(4461): loaded /system/lib/egl/libGLESv2_adreno200.so
09-24 15:02:41.148: D/dalvikvm(4461): GC_EXTERNAL_ALLOC freed 1165 objects / 76768 bytes in 30ms

logcat (complete only)

09-24 15:10:58.268: D/dalvikvm(561): GC_EXPLICIT freed 1169 objects / 106728 bytes in 96ms
09-24 15:11:00.048: E/ClockWidget(225): weatherClock onReceive~ mUseAnimation:false
09-24 15:11:05.208: D/dalvikvm(947): GC_EXPLICIT freed 46 objects / 2176 bytes in 84ms
09-24 15:11:05.368: D/AndroidRuntime(4525): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
09-24 15:11:05.368: D/AndroidRuntime(4525): CheckJNI is OFF
09-24 15:11:05.368: D/dalvikvm(4525): creating instr width table
09-24 15:11:05.408: D/AndroidRuntime(4525): --- registering native functions ---
09-24 15:11:05.718: D/dalvikvm(931): GC_EXPLICIT freed 80 objects / 3944 bytes in 36ms
09-24 15:11:07.628: D/PackageParser(103): Scanning package: /data/app/vmdl75333.tmp
09-24 15:11:08.109: I/PackageManager(103): Removing non-system package:de.appcellent.PentominoProto1
09-24 15:11:08.109: I/ActivityManager(103): Force stopping package de.appcellent.PentominoProto1 uid=10078
09-24 15:11:08.409: D/PackageManager(103): Scanning package de.appcellent.PentominoProto1
09-24 15:11:08.409: I/PackageManager(103): /data/app/de.appcellent.PentominoProto1-1.apk changed; unpacking
09-24 15:11:08.409: I/PackageManager(103): Package de.appcellent.PentominoProto1 codePath changed from /data/app/de.appcellent.PentominoProto1-2.apk to /data/app/de.appcellent.PentominoProto1-1.apk; Retaining data and using new
09-24 15:11:08.558: D/PackageManager(103): Caching shared lib lib/armeabi/libcocos2dcpp.so
09-24 15:11:10.188: D/dalvikvm(605): GC_EXPLICIT freed 430 objects / 69400 bytes in 87ms
09-24 15:11:12.099: D/PackageManager(103): Caching gdbserver lib/armeabi/gdbserver
09-24 15:11:12.298: D/installd(69): DexInv: --- BEGIN '/data/app/de.appcellent.PentominoProto1-1.apk' ---
09-24 15:11:12.398: D/dalvikvm(4533): creating instr width table
09-24 15:11:12.498: D/dalvikvm(4533): DexOpt: load 33ms, verify 43ms, opt 1ms
09-24 15:11:12.518: D/installd(69): DexInv: --- END '/data/app/de.appcellent.PentominoProto1-1.apk' (success) ---
09-24 15:11:12.518: D/PackageManager(103):   Activities: de.appcellent.PentominoProto1.PentominoProto1
09-24 15:11:12.518: I/ActivityManager(103): Force stopping package de.appcellent.PentominoProto1 uid=10078
09-24 15:11:12.518: W/PackageManager(103): Code path for pkg : de.appcellent.PentominoProto1 changing from /data/app/de.appcellent.PentominoProto1-2.apk to /data/app/de.appcellent.PentominoProto1-1.apk
09-24 15:11:12.518: W/PackageManager(103): Resource path for pkg : de.appcellent.PentominoProto1 changing from /data/app/de.appcellent.PentominoProto1-2.apk to /data/app/de.appcellent.PentominoProto1-1.apk
09-24 15:11:12.688: I/installd(69): move /data/dalvik-cache/data@app@de.appcellent.PentominoProto1-1.apk@classes.dex -> /data/dalvik-cache/data@app@de.appcellent.PentominoProto1-1.apk@classes.dex
09-24 15:11:12.688: D/PackageManager(103): New package installed in /data/app/de.appcellent.PentominoProto1-1.apk
09-24 15:11:12.998: I/ActivityManager(103): Force stopping package de.appcellent.PentominoProto1 uid=10078
09-24 15:11:13.138: D/dalvikvm(103): GC_EXPLICIT freed 21586 objects / 2027072 bytes in 144ms
09-24 15:11:13.248: D/dalvikvm(225): GC_EXPLICIT freed 7248 objects / 391296 bytes in 78ms
09-24 15:11:13.288: D/dalvikvm(214): GC_EXPLICIT freed 4772 objects / 243240 bytes in 287ms
09-24 15:11:13.358: D/HomeLoaders(225): get install or remove message so do change adapter
09-24 15:11:13.398: D/HtcWidgetScanner(355): action - android.intent.action.PACKAGE_REMOVED
09-24 15:11:13.628: V/AlarmManager(103): Adding Alarm{465cbb70 type 0 com.android.vending} Sep. 24 03:11:28 nachm.
09-24 15:11:13.658: D/HtcWidgetScanner(355): packageUid - 10078
09-24 15:11:13.758: D/HomeLoaders(225): get install or remove message so do change adapter
09-24 15:11:13.908: D/dalvikvm(103): GC_EXPLICIT freed 10345 objects / 517240 bytes in 111ms
09-24 15:11:14.028: D/HtcWidgetScanner(355): action - android.intent.action.PACKAGE_ADDED
09-24 15:11:14.028: D/HtcWidgetScanner(355): packageUid - 10078
09-24 15:11:14.198: V/AlarmManager(103): Adding Alarm{4663a8a0 type 0 com.android.vending} Sep. 24 03:11:29 nachm.
09-24 15:11:14.268: I/installd(69): unlink /data/dalvik-cache/data@app@de.appcellent.PentominoProto1-2.apk@classes.dex
09-24 15:11:14.458: D/AndroidRuntime(4525): Shutting down VM
09-24 15:11:14.458: D/dalvikvm(4525): Debugger has detached; object registry had 1 entries
09-24 15:11:14.478: I/AndroidRuntime(4525): NOTE: attach of thread 'Binder Thread #3' failed
09-24 15:11:14.528: D/RegisterService(467): insert plugin size 1
09-24 15:11:14.568: W/Addapter(225): info.icon:2130837504
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837508
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837544
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837526
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837943
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837627
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837504
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837554
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837537
09-24 15:11:14.578: W/Addapter(225): info.icon:2130837666
09-24 15:11:14.589: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.618: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.659: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.688: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.708: D/AndroidRuntime(4550): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
09-24 15:11:14.718: D/AndroidRuntime(4550): CheckJNI is OFF
09-24 15:11:14.718: D/dalvikvm(4550): creating instr width table
09-24 15:11:14.748: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.768: D/AndroidRuntime(4550): --- registering native functions ---
09-24 15:11:14.778: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.778: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.778: D/RegisterService(467): insert plugin size 3
09-24 15:11:14.798: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.809: W/Addapter(225): info.icon:2130837602
09-24 15:11:14.838: W/Addapter(225): info.icon:2130903043
09-24 15:11:14.868: W/Addapter(225): info.icon:2130837626
09-24 15:11:14.958: I/GCoreUlr(561): Ensuring that reporting is stopped because of reasons: {account#1#=[InactiveReason{mVersionCode=0, mIdentifier=1, mName='UnsupportedOs'}, InactiveReason{mVersionCode=0, mIdentifier=2, mName='DeferringToGmm'}]}
09-24 15:11:15.028: D/LocationManager(561): removeUpdates: intent = PendingIntent{4619c1b0: android.os.BinderProxy@462a9db0}
09-24 15:11:15.038: I/ActivityManager(103): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=de.appcellent.PentominoProto1/.PentominoProto1 }
09-24 15:11:15.038: D/SurfaceFlinger(103): Layer::setBuffers(this=0x585ef0), pid=103, w=1, h=1
09-24 15:11:15.038: D/SurfaceFlinger(103): Layer::setBuffers(this=0x585ef0), pid=103, w=1, h=1
09-24 15:11:15.058: D/SurfaceFlinger(103): Layer::requestBuffer(this=0x585ef0), index=0, pid=103, w=480, h=800 success
09-24 15:11:15.078: D/AndroidRuntime(4550): Shutting down VM
09-24 15:11:15.078: D/dalvikvm(4550): Debugger has detached; object registry had 1 entries
09-24 15:11:15.078: V/LocationManagerService(103): _removeUpdates: listener = Receiver{46a1db18 Intent PendingIntent{46535b10: PendingIntentRecord{4658dfb8 com.google.android.gms startService}}}
09-24 15:11:15.098: I/AndroidRuntime(4550): NOTE: attach of thread 'Binder Thread #3' failed
09-24 15:11:15.098: I/ActivityManager(103): Start proc de.appcellent.PentominoProto1 for activity de.appcellent.PentominoProto1/.PentominoProto1: pid=4558 uid=10078 gids={3003}
09-24 15:11:15.108: I/GCoreUlr(561): Unbound from all location providers
09-24 15:11:15.218: D/dalvikvm(4558): Trying to load lib /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so 0x4618d330
09-24 15:11:15.228: D/dalvikvm(4558): Added shared lib /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so 0x4618d330
09-24 15:11:15.238: D/Cocos2dxActivity(4558): model=HTC Desire
09-24 15:11:15.238: D/Cocos2dxActivity(4558): product=htc_bravo
09-24 15:11:15.238: D/Cocos2dxActivity(4558): isEmulator=false
09-24 15:11:15.268: D/SurfaceFlinger(103): Layer::setBuffers(this=0x6ea168), pid=4558, w=1, h=1
09-24 15:11:15.268: D/SurfaceFlinger(103): Layer::setBuffers(this=0x6ea168), pid=4558, w=1, h=1
09-24 15:11:15.319: D/SurfaceFlinger(103): Layer::requestBuffer(this=0x6ea168), index=0, pid=4558, w=480, h=800 success
09-24 15:11:15.338: D/SurfaceFlinger(103): Layer::setBuffers(this=0x664858), pid=4558, w=480, h=800
09-24 15:11:15.338: D/SurfaceFlinger(103): Layer::setBuffers(this=0x664858), pid=4558, w=480, h=800
09-24 15:11:15.348: D/libEGL(4558): loaded /system/lib/egl/libGLES_android.so
09-24 15:11:15.358: D/libEGL(4558): loaded /system/lib/egl/libEGL_adreno200.so
09-24 15:11:15.358: D/libEGL(4558): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
09-24 15:11:15.358: D/libEGL(4558): loaded /system/lib/egl/libGLESv2_adreno200.so
09-24 15:11:15.388: D/SurfaceFlinger(103): Layer::requestBuffer(this=0x664858), index=0, pid=4558, w=480, h=800 success
09-24 15:11:15.698: D/Addapter(225): text : Weitere HTC-Widgets abrufen
09-24 15:11:15.718: D/dalvikvm(4558): GC_EXTERNAL_ALLOC freed 1219 objects / 78848 bytes in 32ms
09-24 15:11:15.788: D/RegisterService(467): insert plugin size 1
09-24 15:11:15.829: I/DEBUG(4197): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-24 15:11:15.829: I/DEBUG(4197): Build fingerprint: 'htc_wwe/htc_bravo/bravo/bravo:2.2.2/FRG83G/345208.14:user/release-keys'
09-24 15:11:15.829: I/DEBUG(4197): pid: 4558, tid: 4565  >>> de.appcellent.PentominoProto1 <<<
09-24 15:11:15.829: I/DEBUG(4197): signal 11 (SIGSEGV), fault addr 0000000c
09-24 15:11:15.829: I/DEBUG(4197):  r0 0021d7e8  r1 00000028  r2 00000000  r3 0021d810
09-24 15:11:15.829: I/DEBUG(4197):  r4 afd42328  r5 00000000  r6 003053e8  r7 00000000
09-24 15:11:15.829: I/DEBUG(4197):  r8 4844cb50  r9 4335ef3c  10 4335ef28  fp 4844c7e4
09-24 15:11:15.829: I/DEBUG(4197):  ip afd4372c  sp 4844c718  lr afd1040c  pc afd0bbcc  cpsr 80000030
09-24 15:11:15.829: I/DEBUG(4197):  d0  6472656767756265  d1  7275747865546e70
09-24 15:11:15.829: I/DEBUG(4197):  d2  000000000000006e  d3  0000000000000067
09-24 15:11:15.829: I/DEBUG(4197):  d4  0000000000000000  d5  0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d6  0000000000000000  d7  0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d8  0000000000000000  d9  0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d10 0000000000000000  d11 0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d12 0000000000000000  d13 0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d14 0000000000000000  d15 0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d16 0000000000000000  d17 4014000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d18 3feb9d189b427fc0  d19 3fc18b9d92f60100
09-24 15:11:15.829: I/DEBUG(4197):  d20 0000000000000000  d21 3f872e5c54a96637
09-24 15:11:15.829: I/DEBUG(4197):  d22 3e21e7c5992989f4  d23 bda8fae9be8838d4
09-24 15:11:15.829: I/DEBUG(4197):  d24 3fc74721cad6b0ed  d25 3fc39a09d078c69f
09-24 15:11:15.829: I/DEBUG(4197):  d26 0000000000000000  d27 0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d28 0000000000000000  d29 0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  d30 0000000000000000  d31 0000000000000000
09-24 15:11:15.829: I/DEBUG(4197):  scr 60000012
09-24 15:11:15.859: I/DEBUG(4197):          #00  pc 0000bbcc  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):          #01  pc 0000cdc2  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197): code around pc:
09-24 15:11:15.859: I/DEBUG(4197): afd0bbac 1008f8cc 0c01f041 f8c05041 e154c004 
09-24 15:11:15.859: I/DEBUG(4197): afd0bbbc 0203f022 08d79202 d82d2f1f 68da689d 
09-24 15:11:15.859: I/DEBUG(4197): afd0bbcc 429e68ee 8147f040 429e6896 8143f040 
09-24 15:11:15.859: I/DEBUG(4197): afd0bbdc d1094295 f8dc2201 fa123000 ea23f707 
09-24 15:11:15.859: I/DEBUG(4197): afd0bbec f8cc0707 e0887000 0c24f10c 07c7eb0c 
09-24 15:11:15.859: I/DEBUG(4197): code around lr:
09-24 15:11:15.859: I/DEBUG(4197): afd103ec e2166903 1a000018 e5940000 e1a02004 
09-24 15:11:15.859: I/DEBUG(4197): afd103fc e2006a02 e1a00006 e3861001 ebfff9e1 
09-24 15:11:15.859: I/DEBUG(4197): afd1040c e3500000 0a00000e e3560000 e3865002 
09-24 15:11:15.859: I/DEBUG(4197): afd1041c 03a07080 13a07000 ea000000 ebfff9fb 
09-24 15:11:15.859: I/DEBUG(4197): afd1042c e1a01004 e1a00005 ebfff9e2 e1a01007 
09-24 15:11:15.859: I/DEBUG(4197): stack:
09-24 15:11:15.859: I/DEBUG(4197):     4844c6d8  4844c808  
09-24 15:11:15.859: I/DEBUG(4197):     4844c6dc  d30bfc0c  
09-24 15:11:15.859: I/DEBUG(4197):     4844c6e0  4844c704  
09-24 15:11:15.859: I/DEBUG(4197):     4844c6e4  00000019  
09-24 15:11:15.859: I/DEBUG(4197):     4844c6e8  00000000  
09-24 15:11:15.859: I/DEBUG(4197):     4844c6ec  4844c774  
09-24 15:11:15.859: I/DEBUG(4197):     4844c6f0  afd438e4  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c6f4  afd1040c  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c6f8  afd42328  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c6fc  0013f9e4  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c700  0021d7f0  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c704  4335ef44  
09-24 15:11:15.859: I/DEBUG(4197):     4844c708  4844cb50  
09-24 15:11:15.859: I/DEBUG(4197):     4844c70c  4335ef3c  
09-24 15:11:15.859: I/DEBUG(4197):     4844c710  df002777  
09-24 15:11:15.859: I/DEBUG(4197):     4844c714  e3a070ad  
09-24 15:11:15.859: I/DEBUG(4197): #00 4844c718  4844c700  
09-24 15:11:15.859: I/DEBUG(4197):     4844c71c  4844c774  
09-24 15:11:15.859: I/DEBUG(4197):     4844c720  00000000  
09-24 15:11:15.859: I/DEBUG(4197):     4844c724  0021d7f0  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c728  4844c74c  
09-24 15:11:15.859: I/DEBUG(4197):     4844c72c  4844c790  
09-24 15:11:15.859: I/DEBUG(4197):     4844c730  0013f9e4  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c734  43700000  /system/framework/framework-res.apk
09-24 15:11:15.859: I/DEBUG(4197):     4844c738  4335ef44  
09-24 15:11:15.859: I/DEBUG(4197):     4844c73c  afd0cdc5  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197): #01 4844c740  4844c790  
09-24 15:11:15.859: I/DEBUG(4197):     4844c744  81524b10  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c748  4844c790  
09-24 15:11:15.859: I/DEBUG(4197):     4844c74c  00239b58  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c750  00000001  
09-24 15:11:15.859: I/DEBUG(4197):     4844c754  812e6964  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c758  4844c77c  
09-24 15:11:15.859: I/DEBUG(4197):     4844c75c  43700000  /system/framework/framework-res.apk
09-24 15:11:15.859: I/DEBUG(4197):     4844c760  00001404  
09-24 15:11:15.859: I/DEBUG(4197):     4844c764  0013f9e4  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c768  00239b58  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c76c  4844c810  
09-24 15:11:15.859: I/DEBUG(4197):     4844c770  00000000  
09-24 15:11:15.859: I/DEBUG(4197):     4844c774  afd102f0  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c778  afd4372c  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c77c  afd43778  /system/lib/libc.so
09-24 15:11:15.859: I/DEBUG(4197):     4844c780  00160a80  [heap]
09-24 15:11:15.859: I/DEBUG(4197):     4844c784  00000000  
09-24 15:11:16.178: I/ActivityManager(103): Process de.appcellent.PentominoProto1 (pid 4558) has died.
09-24 15:11:16.178: I/WindowManager(103): WIN DEATH: Window{465384b8 SurfaceView paused=false}
09-24 15:11:16.178: I/BootReceiver(103): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
09-24 15:11:16.188: D/SurfaceFlinger(103): Layer::requestBuffer(this=0x585ef0), index=1, pid=103, w=480, h=800 success
09-24 15:11:16.198: E/ActivityManager(103): fail to set top app changed!
09-24 15:11:16.198: I/WindowManager(103): WIN DEATH: Window{464b00f0 de.appcellent.PentominoProto1/de.appcellent.PentominoProto1.PentominoProto1 paused=false}
09-24 15:11:16.209: D/Zygote(66): Process 4558 terminated by signal (11)
09-24 15:11:16.228: I/UsageStats(103): Unexpected resume of com.htc.launcher while already resumed in de.appcellent.PentominoProto1
09-24 15:11:16.248: D/SurfaceFlinger(103): Layer::setBuffers(this=0x664858), pid=225, w=480, h=800
09-24 15:11:16.248: D/SurfaceFlinger(103): Layer::setBuffers(this=0x664858), pid=225, w=480, h=800
09-24 15:11:16.268: W/InputManagerService(103): Got RemoteException sending setActive(false) notification to pid 4558 uid 10078
09-24 15:11:16.279: D/SurfaceFlinger(103): Layer::requestBuffer(this=0x664858), index=0, pid=225, w=480, h=800 success
09-24 15:11:16.308: D/dalvikvm(467): GC_FOR_MALLOC freed 9287 objects / 514600 bytes in 409ms
09-24 15:11:16.348: D/RegisterService(467): insert plugin size 1
09-24 15:11:16.538: D/RegisterService(467): insert plugin size 1
09-24 15:11:16.558: W/Addapter(225): info.icon:2130837504
09-24 15:11:16.558: W/Addapter(225): info.icon:2130837508
09-24 15:11:16.558: W/Addapter(225): info.icon:2130837544
09-24 15:11:16.568: W/Addapter(225): info.icon:2130837526
09-24 15:11:16.568: W/Addapter(225): info.icon:2130837943
09-24 15:11:16.568: W/Addapter(225): info.icon:2130837627
09-24 15:11:16.568: W/Addapter(225): info.icon:2130837504
09-24 15:11:16.568: W/Addapter(225): info.icon:2130837554
09-24 15:11:16.578: W/Addapter(225): info.icon:2130837537
09-24 15:11:16.578: W/Addapter(225): info.icon:2130837666
09-24 15:11:16.578: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.578: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.578: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.588: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.588: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.588: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.588: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.588: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.608: W/Addapter(225): info.icon:2130837602
09-24 15:11:16.608: D/RegisterService(467): insert plugin size 3
09-24 15:11:16.608: W/Addapter(225): info.icon:2130903043
09-24 15:11:16.608: W/Addapter(225): info.icon:2130837626
09-24 15:11:16.618: D/Addapter(225): text : Weitere HTC-Widgets abrufen
09-24 15:11:16.739: D/RegisterService(467): insert plugin size 1
09-24 15:11:16.808: D/RegisterService(467): insert plugin size 1

I can see the crash there, can you try use ndk-stack to get a more readable output?

ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump LogFromLogcat.txt

Nite Luo wrote:

I can see the crash there, can you try use ndk-stack to get a more readable output?
>
ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump LogFromLogcat.txt

Or better yet, get the tombstone and find out where your crash is.

Here is my guide on how to do it:

Look at the line :

09-24 15:11:15.829: I / DEBUG (4197): signal 11 (SIGSEGV), fault addr 0000000c

It’s segmentation fault and cause is you are trying to access invalid memory location.

Make sure you don’t have any uninitialized variables (bool or unsingned int) or objects etc.

Thank you very much for your fast response. Today ’m not in office, though I’m not able to check your hints, but will do it tomorrow and deliver the ndk-stack and check if there are uninitialized variables.
I wonder, why apples llvm does not recognize any errors when starting the app. Is there a way to utilze llvm as compiler for android too? I’m very new to c++ and that makes it tripple as hard to me :slight_smile:

Is there a way to utilze llvm as compiler for android too?

No, there is not. If you enable breaking on all C*+ exceptions in XCode, you will probably see the error in debug mode.
C*+ is not the simplest language to learn, and it gives you obtuse errors when you make a mistake. Huge advantage of CC2d-x is being able to build and run under multiple platforms to debug and identify issues.

It is a demanding language, it expects a lot of you — but if you can meet the challenge the pay off is huge.

@Cory: here is the stacktrace (your guide was very helpfull). But I’m not sure, what it all means, but i’ll study it for a while…

build fingerprint: 'google/passion/passion:2.3.6/GRK39F/189904:user/release-keys'
pid: 1538, tid: 1552  >>> XX.XXXXXXXXXX.PentominoProto1 <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000010
Stack frame #00  pc 000799c0  /system/lib/egl/libGLESv2_adreno200.so
Stack frame #01  pc 00079c12  /system/lib/egl/libGLESv2_adreno200.so (rb_mempool_alloc)
Stack frame #02  pc 00081a26  /system/lib/egl/libGLESv2_adreno200.so (rb_vbo_cache_vertex_attrib)
Stack frame #03  pc 0005fab6  /system/lib/egl/libGLESv2_adreno200.so (cache_vertex_array)
Stack frame #04  pc 0006227a  /system/lib/egl/libGLESv2_adreno200.so (qgl2DrvAPI_glDrawArrays)
Stack frame #05  pc 0005ad64  /system/lib/egl/libGLESv2_adreno200.so (glDrawArrays)
Stack frame #06  pc 00301394  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d8CCSprite4drawEv)
Stack frame #07  pc 0027823c  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d6CCNode5visitEv)
Stack frame #08  pc 002781f0  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d6CCNode5visitEv)
Stack frame #09  pc 002781f0  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d6CCNode5visitEv)
Stack frame #10  pc 002781f0  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d6CCNode5visitEv)
Stack frame #11  pc 002781f0  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d6CCNode5visitEv)
Stack frame #12  pc 0028cf74  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d10CCDirector9drawSceneEv)
Stack frame #13  pc 0028fb74  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (_ZN7cocos2d21CCDisplayLinkDirector8mainLoopEv)
Stack frame #14  pc 002f59a0  /data/data/de.appcellent.PentominoProto1/lib/libcocos2dcpp.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeRender)
Stack frame #15  pc 0001ebf0  /system/lib/libdvm.so (dvmPlatformInvoke)
Stack frame #16  pc 00058c30  /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012040  /system/lib/libc.so (pthread_mutex_lock)
Stack frame #02  pc 0003326c  /system/lib/libdvm.so (_Z11dvmLockHeapv)
Stack frame #03  pc 0003397c  /system/lib/libdvm.so (_Z9dvmMallocji)
Stack frame #04  pc 000740f6  /system/lib/libdvm.so
Stack frame #05  pc 00074200  /system/lib/libdvm.so (_Z22dvmAllocPrimitiveArraycji)
Stack frame #06  pc 000742e8  /system/lib/libdvm.so (dvmAllocArrayByClass)
Stack frame #07  pc 00026f74  /system/lib/libdvm.so (dvmAsmSisterStart)
Stack frame #08  pc 000341c8  /system/lib/libdvm.so (_Z12dvmInterpretP6ThreadPK6MethodP6JValue)
Stack frame #09  pc 0006c342  /system/lib/libdvm.so (_Z15dvmInvokeMethodP6ObjectPK6MethodP11ArrayObjectS5_P11ClassObjectb)
Stack frame #10  pc 0007385a  /system/lib/libdvm.so
Stack frame #11  pc 00030a0c  /system/lib/libdvm.so
Stack frame #12  pc 000341c8  /system/lib/libdvm.so (_Z12dvmInterpretP6ThreadPK6MethodP6JValue)
Stack frame #13  pc 0006c612  /system/lib/libdvm.so (_Z14dvmCallMethodVP6ThreadPK6MethodP6ObjectbP6JValueSt9__va_list)
Stack frame #14  pc 00054c62  /system/lib/libdvm.so
Stack frame #15  pc 00042e72  /system/lib/libandroid_runtime.so
Stack frame #16  pc 000439da  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime5startEPKcS2_)
Stack frame #17  pc 00008f0a  /system/bin/app_process
Stack frame #18  pc 00016504  /system/lib/libc.so (__libc_init)
Stack frame #00  pc b00010a8  /system/bin/linker
Stack frame #00  pc 0000cec8  /system/lib/libc.so (__rt_sigtimedwait)
Stack frame #01  pc 000192dc  /system/lib/libc.so (sigwait)
Stack frame #02  pc 0005c808  /system/lib/libdvm.so
Stack frame #03  pc 0005f656  /system/lib/libdvm.so
Stack frame #04  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #05  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000c7b4  /system/lib/libc.so (select)
Stack frame #01  pc 0006ca9e  /system/lib/libdvm.so
Stack frame #02  pc 0006fbf8  /system/lib/libdvm.so
Stack frame #03  pc 0005f656  /system/lib/libdvm.so
Stack frame #04  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #05  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012348  /system/lib/libc.so (__pthread_cond_timedwait_relative)
Stack frame #02  pc 000123fc  /system/lib/libc.so (__pthread_cond_timedwait)
Stack frame #03  pc 0005d534  /system/lib/libdvm.so
Stack frame #04  pc 0005d7c6  /system/lib/libdvm.so (_Z13dvmObjectWaitP6ThreadP6Objectxib)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012348  /system/lib/libc.so (__pthread_cond_timedwait_relative)
Stack frame #02  pc 000123fc  /system/lib/libc.so (__pthread_cond_timedwait)
Stack frame #03  pc 0005d534  /system/lib/libdvm.so
Stack frame #04  pc 0005d7c6  /system/lib/libdvm.so (_Z13dvmObjectWaitP6ThreadP6Objectxib)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012348  /system/lib/libc.so (__pthread_cond_timedwait_relative)
Stack frame #02  pc 000123fc  /system/lib/libc.so (__pthread_cond_timedwait)
Stack frame #03  pc 0005d53e  /system/lib/libdvm.so
Stack frame #04  pc 0005d61a  /system/lib/libdvm.so (_Z14dvmThreadSleepyj)
Stack frame #05  pc 00072e2a  /system/lib/libdvm.so
Stack frame #06  pc 00030a0c  /system/lib/libdvm.so
Stack frame #07  pc 000341c8  /system/lib/libdvm.so (_Z12dvmInterpretP6ThreadPK6MethodP6JValue)
Stack frame #08  pc 0006c612  /system/lib/libdvm.so (_Z14dvmCallMethodVP6ThreadPK6MethodP6ObjectbP6JValueSt9__va_list)
Stack frame #09  pc 0006c634  /system/lib/libdvm.so (_Z13dvmCallMethodP6ThreadPK6MethodP6ObjectP6JValuez)
Stack frame #10  pc 0005f748  /system/lib/libdvm.so
Stack frame #11  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #12  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000c690  /system/lib/libc.so (__ioctl)
Stack frame #01  pc 000278de  /system/lib/libc.so (ioctl)
Stack frame #02  pc 0001aac4  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb)
Stack frame #03  pc 0001b3a8  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
Stack frame #04  pc 000206a4  /system/lib/libbinder.so
Stack frame #05  pc 00021196  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv)
Stack frame #06  pc 00042dd4  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv)
Stack frame #07  pc 000217dc  /system/lib/libutils.so
Stack frame #08  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #09  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000c690  /system/lib/libc.so (__ioctl)
Stack frame #01  pc 000278de  /system/lib/libc.so (ioctl)
Stack frame #02  pc 0001aac4  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb)
Stack frame #03  pc 0001b3a8  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
Stack frame #04  pc 000206a4  /system/lib/libbinder.so
Stack frame #05  pc 00021196  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv)
Stack frame #06  pc 00042dd4  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv)
Stack frame #07  pc 000217dc  /system/lib/libutils.so
Stack frame #08  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #09  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000c690  /system/lib/libc.so (__ioctl)
Stack frame #01  pc 000278de  /system/lib/libc.so (ioctl)
Stack frame #02  pc 0001aac4  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb)
Stack frame #03  pc 0001b3a8  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
Stack frame #04  pc 000206a4  /system/lib/libbinder.so
Stack frame #05  pc 00021196  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv)
Stack frame #06  pc 00042dd4  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv)
Stack frame #07  pc 000217dc  /system/lib/libutils.so
Stack frame #08  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #09  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012348  /system/lib/libc.so (__pthread_cond_timedwait_relative)
Stack frame #02  pc 000123fc  /system/lib/libc.so (__pthread_cond_timedwait)
Stack frame #03  pc 00004daa  /system/lib/libsoundpool.so (_ZN7android9SoundPool3runEv)
Stack frame #04  pc 00004e5a  /system/lib/libsoundpool.so (_ZN7android9SoundPool11beginThreadEPv)
Stack frame #05  pc 00042dd4  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv)
Stack frame #06  pc 000217dc  /system/lib/libutils.so
Stack frame #07  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #08  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012348  /system/lib/libc.so (__pthread_cond_timedwait_relative)
Stack frame #02  pc 000123fc  /system/lib/libc.so (__pthread_cond_timedwait)
Stack frame #03  pc 000053ba  /system/lib/libsoundpool.so (_ZN7android15SoundPoolThread4readEv)
Stack frame #04  pc 0000540a  /system/lib/libsoundpool.so (_ZN7android15SoundPoolThread3runEv)
Stack frame #05  pc 00005452  /system/lib/libsoundpool.so (_ZN7android15SoundPoolThread11beginThreadEPv)
Stack frame #06  pc 00042dd4  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv)
Stack frame #07  pc 000217dc  /system/lib/libutils.so
Stack frame #08  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #09  pc 00012758  /system/lib/libc.so (pthread_create)
Stack frame #00  pc 0000d5b0  /system/lib/libc.so (__futex_syscall3)
Stack frame #01  pc 00012348  /system/lib/libc.so (__pthread_cond_timedwait_relative)
Stack frame #02  pc 000123fc  /system/lib/libc.so (__pthread_cond_timedwait)
Stack frame #03  pc 0000d818  /system/lib/egl/libEGL_adreno200.so
Stack frame #04  pc 00012c04  /system/lib/libc.so (__thread_entry)
Stack frame #05  pc 00012758  /system/lib/libc.so (pthread_create)

Just Googling I only see a few scattered references to crashes in libGLESv2_adreno200 … all specifically related to a problem with a texture on a “Milestone 2.1”

I’m not sure what the above means. If you are going to continue the next step in my opinion is the use of the NDK’s built in GDB and attaching a debugger to the application before it crashes.

ok, thanks for your help. all i found out is that it could be a problem with a non-power-of-2 texture… or it isn’t allocated anymore. but next i’ll check with gdb…

Are all your testures powers of two?

I just noticed you are using NDK r9.

Did you try with NDK r8e or r8d?

Hmm, I thought OpenGL ES2 supports non power of two texture, then again, power of two texture is a standard for gaming:)

Nite Luo wrote:

Hmm, I thought OpenGL ES2 supports non power of two texture, then again, power of two texture is a standard for gaming:)

Just trying to help debug the issue — OP said “all i found out is that it could be a problem with a non-power-of-2 texture” so if all textures are powers of two then it probably isn’t that …

No not all of my textures have power of two, but i found out, that it should not be a problem, because i tested a small project completely build with cocosbuilder and cocos2d-x where none of my textures were power of two.

I have been testing my game on Samsung Galaxy S Duos (Adreno 200 GPU) and it is crashing very frequently with cocos2dx-2.1.5 version.

Vikas Patidar wrote:

I have been testing my game on Samsung Galaxy S Duos (Adreno 200 GPU) and it is crashing very frequently with cocos2dx-2.1.5 version.

Any stacks you can provide?

Finally found the problem: when I initialized a subclass of CCSprite I called CCSprite’s init instead of subclass’ init at initialization. This has been only a problem für android’s environment.

Thank you for all your help - especially Cory for debugging hints.

I am new to cocos 2d . I got an game which is all completed i just have to remove an error. I made some changes in local_src_file then it is launched on emulator but when i click on the icon in emulator the game stops unfortunately does not open at ll and gives me an error libcocos2dx.apk not found . what should i do?