Visual Studio and tegra

Hi I’m trying to create a basic game to develop it using visual studio and nvidia tools for android.

I have created the cocos 2d x project, it compiles well on windows and on android within visual studio.

So far so good, the issue is when it runs on android the game just crashes. It fails on a samsung galaxy tablet as well as in the emulators.

I have created the project by importing the project that is in proj.android folder.

When I try to remotelly debug the app I receive this error on visual studio

The project is very basic, it only has what it comes with project generated our of the box.

Have you happend to have this issue? An application created with no cocos2x run just fine.

This is the tool I’m using

“NVIDIA® Nsight™ Tegra Visual Studio Edition provides tools for Android development.
Copyright © NVIDIA Corporation 2015.
User Guide available at: http://docs.nvidia.com/gameworks/index.html#developertools/mobile/nsight_tegra_main.htm

After strugling a bit I changed the target to arm v7 a and now it runs the debugger on an emulator still crashes

Visual Studio says

The emulator shows this

And chrashes with exception.

What is supposed to be shown on the hello world app. The very same code shows this on win32

I’m using

android-ndk-r10e

apache-ant-1.9.6-bin

cocos2d-x-3.6

And the SDKs that come with Android Studio. Is there something missing?

Cheers,
Martin.

What does the stacktrace tell you (use adb logcat from the command line)?

Something like this

D/AndroidRuntime( 454):
D/AndroidRuntime( 454): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 454): CheckJNI is ON
D/AndroidRuntime( 454): Calling main entry com.android.commands.am.Am
I/ActivityManager( 77): Force stopping package com.mygame uid=10040
D/AndroidRuntime( 454): Shutting down VM
D/dalvikvm( 454): GC_CONCURRENT freed 95K, 79% free 447K/2048K, paused 0ms+2ms
I/AndroidRuntime( 454): NOTE: attach of thread ‘Binder Thread #3’ failed
D/AndroidRuntime( 467):
D/AndroidRuntime( 467): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 467): CheckJNI is ON
D/AndroidRuntime( 467): Calling main entry com.android.commands.am.Am
I/ActivityManager( 77): Force stopping package com.mygame uid=10040
I/ActivityManager( 77): START {flg=0x10000000 cmp=com.mygame/com.nvidia.pentak.LaunchProxy} from p
id 467
D/PermissionCache( 35): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (101
41 us)
W/WindowManager( 77): Failure taking screenshot for (120x162) to layer 21005
D/AndroidRuntime( 467): Shutting down VM
D/dalvikvm( 467): GC_CONCURRENT freed 97K, 77% free 482K/2048K, paused 0ms+1ms
D/dalvikvm( 477): Not late-enabling CheckJNI (already on)
I/AndroidRuntime( 467): NOTE: attach of thread ‘Binder Thread #3’ failed
I/ActivityManager( 77): Start proc com.mygame for activity com.mygame/com.nvidia.pentak.LaunchProx
y: pid=477 uid=10040 gids={3003}
W/NetworkManagementSocketTagger( 77): setKernelCountSet(10040, 1) failed with errno -2
D/dalvikvm( 77): GC_EXPLICIT freed 153K, 15% free 8969K/10439K, paused 4ms+9ms
W/ActivityThread( 477): Application com.mygame is waiting for the debugger on port 8100…
I/System.out( 477): Sending WAIT chunk
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
E/dalvikvm( 477): Unable to open stack trace file ‘/data/anr/traces.txt’: Is a directory
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/dalvikvm( 477): Wrote stack traces to ‘/data/anr/traces.txt’
I/dalvikvm( 477): Debugger is active
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/dalvikvm( 477): threadid=3: reacting to signal 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
I/Process ( 77): Sending signal. PID: 477 SIG: 3
W/ActivityManager( 77): Launch timeout has expired, giving up wake lock!
I/Process ( 77): Sending signal. PID: 477 SIG: 3
W/ActivityManager( 77): Activity idle timeout for ActivityRecord{41286788 com.mygame/com.nvidia.pe
ntak.LaunchProxy}
W/ActivityManager( 77): Force finishing activity com.mygame/com.nvidia.pentak.LaunchProxy
W/WindowManager( 77): Failure taking screenshot for (120x162) to layer 21010
I/ActivityManager( 77): Killing ProcessRecord{412cee18 477:com.mygame/10040}: user’s request
I/ActivityManager( 77): Process com.mygame (pid 477) has died.
W/NetworkManagementSocketTagger( 77): setKernelCountSet(10040, 0) failed with errno -2
W/InputManagerService( 77): Window already focused, ignoring focus gain of: com.android.internal.v
iew.IInputMethodClient$Stub$Proxy@412d38b8
D/dalvikvm( 159): GC_CONCURRENT freed 437K, 8% free 6992K/7559K, paused 10ms+5ms
D/AndroidRuntime( 543):
D/AndroidRuntime( 543): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 543): CheckJNI is ON
D/AndroidRuntime( 543): Calling main entry com.android.commands.am.Am
I/ActivityManager( 77): Force stopping package com.mygame uid=10040
D/AndroidRuntime( 543): Shutting down VM
D/dalvikvm( 543): GC_CONCURRENT freed 95K, 79% free 448K/2048K, paused 1ms+1ms
I/AndroidRuntime( 543): NOTE: attach of thread ‘Binder Thread #3’ failed
D/dalvikvm( 77): GC_CONCURRENT freed 838K, 18% free 8633K/10439K, paused 5ms+7ms
D/AndroidRuntime( 556):
D/AndroidRuntime( 556): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 556): CheckJNI is ON
D/AndroidRuntime( 556): Calling main entry com.android.commands.am.Am
I/ActivityManager( 77): START {flg=0x10000000 cmp=com.mygame/com.nvidia.pentak.LaunchProxy} from p
id 556
W/WindowManager( 77): Failure taking screenshot for (120x162) to layer 21005
D/AndroidRuntime( 556): Shutting down VM
D/dalvikvm( 556): GC_CONCURRENT freed 97K, 77% free 479K/2048K, paused 1ms+3ms
D/dalvikvm( 566): Not late-enabling CheckJNI (already on)
I/AndroidRuntime( 556): NOTE: attach of thread ‘Binder Thread #3’ failed
I/ActivityManager( 77): Start proc com.mygame for activity com.mygame/com.nvidia.pentak.LaunchProx
y: pid=566 uid=10040 gids={3003}
W/NetworkManagementSocketTagger( 77): setKernelCountSet(10040, 1) failed with errno -2
I/ActivityManager( 77): START {cmp=com.mygame/org.cocos2dx.cpp.AppActivity} from pid 566
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/InputReader( 77): Reconfiguring input devices. changes=0x00000004
I/InputReader( 77): Device reconfigured: id=0, name=‘qwerty2’, surface size is now 320x480, mode i
s 1
W/SurfaceFlinger( 35): createScreenshotSurface failed (Function not implemented)
I/ActivityManager( 77): Config changed: {1.0 310mcc260mnc en_US layoutdir=0 sw320dp w438dp h295dp
smll land finger qwerty/v/v -nav/h s.5}
D/dalvikvm( 566): Trying to load lib /data/data/com.mygame/lib/libcocos2dcpp.so 0x41021378
W/PhoneStatusBar/NavigationBarView( 129): *** Invalid layout in navigation bar (sizeChanged this=42
x320 cur=0x0)
D/dalvikvm( 566): Added shared lib /data/data/com.mygame/lib/libcocos2dcpp.so 0x41021378
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
D/JniHelper( 566): JniHelper::setJavaVM(0xf3e0), pthread_self() = 1074082952
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
D/main ( 566): cocos_android_app_init
D/CocosPlayClient.cpp( 566): isEnabled = 0
D/CocosPlayClient.cpp( 566): isDemo = 0
D/CocosPlayClient.cpp( 566): isNotifyFileLoadedEnabled = 0
D/libEGL ( 566): Emulator without GPU support detected. Fallback to software renderer.
D/libEGL ( 566): loaded /system/lib/egl/libGLES_android.so
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
D/cocos2d-x debug info( 566):
D/cocos2d-x debug info( 566): {
D/cocos2d-x debug info( 566): gl.supports_vertex_array_object: false
D/cocos2d-x debug info( 566): gl.supports_BGRA8888: false
D/cocos2d-x debug info( 566): gl.supports_ATITC: false
D/cocos2d-x debug info( 566): gl.supports_S3TC: false
D/cocos2d-x debug info( 566): cocos2d.x.version: cocos2d-x 3.6
D/cocos2d-x debug info( 566): gl.supports_discard_framebuffer: false
D/cocos2d-x debug info( 566): cocos2d.x.compiled_with_profiler: false
D/cocos2d-x debug info( 566): gl.supports_PVRTC: false
D/cocos2d-x debug info( 566): cocos2d.x.build_type: DEBUG
D/cocos2d-x debug info( 566): gl.renderer:
D/cocos2d-x debug info( 566): gl.supports_ETC1: false
D/cocos2d-x debug info( 566): cocos2d.x.compiled_with_gl_state_cache: true
D/cocos2d-x debug info( 566): gl.version:
D/cocos2d-x debug info( 566): gl.supports_NPOT: true
D/cocos2d-x debug info( 566): gl.max_texture_units: 0
D/cocos2d-x debug info( 566): gl.vendor:
D/cocos2d-x debug info( 566): gl.max_texture_size: 0
D/cocos2d-x debug info( 566): }
D/cocos2d-x debug info( 566):
D/cocos2d-x debug info( 566):
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
E/libEGL ( 566): call to OpenGL ES API with no current context (logged once per thread)
W/dalvikvm( 566): dvmFindClassByName rejecting ‘org/cocos2dx/lib/Cocos2dxRenderer’
D/cocos2d-x debug info( 566): cocos2d: fullPathForFilename: No file found at CloseNormal.png. Possi
ble missing file.
D/cocos2d-x debug info( 566): cocos2d: fullPathForFilename: No file found at CloseSelected.png. Pos
sible missing file.
D/cocos2d-x debug info( 566): cocos2d: fullPathForFilename: No file found at fonts/Marker Felt.ttf.
Possible missing file.
F/libc ( 566): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/DEBUG ( 33): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 33): Build fingerprint: ‘generic/sdk/generic:4.0.4/MR1/1741834:eng/test-keys’
I/DEBUG ( 33): pid: 566, tid: 566 >>> com.mygame <<<
I/DEBUG ( 33): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG ( 33): r0 be9bc4e8 r1 4004c62c r2 00000000 r3 00000000
I/DEBUG ( 33): r4 49d86b8c r5 49908150 r6 001812b8 r7 44b95ca0
I/DEBUG ( 33): r8 be9bc640 r9 44b95c98 10 00000008 fp be9bc55c
I/DEBUG ( 33): ip 4004c498 sp be9bc4c8 lr 498c0758 pc 498c075c cpsr 60000010
I/DEBUG ( 33): d0 7149f2ca3f800000 d1 0000000000000000
I/DEBUG ( 33): d2 0000000000000000 d3 0000000000000000
I/DEBUG ( 33): d4 0000000000000000 d5 7e37e43c8800759c
I/DEBUG ( 33): d6 406fe00000000000 d7 000000ff00000000
I/DEBUG ( 33): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 33): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 33): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 33): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 33): scr 20000013
I/DEBUG ( 33):
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/DEBUG ( 33): #00 pc 498c075c /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): #01 lr 498c0758 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33):
I/DEBUG ( 33): code around pc:
I/DEBUG ( 33): 498c073c fa0ea2b4 e24b3070 e1a00003 fa0f5194 …p0K…Q…
I/DEBUG ( 33): 498c074c e24b3074 e1a00003 fa0ea2ae e51b3064 t0K…d0…
I/DEBUG ( 33): 498c075c e5933000 e283304c e5935000 e51b6064 .0…L0…P…d.. I/DEBUG ( 33): 498c076c ed1b7a15 ed5b7a17 eef06a00 eec77aa6 .z...z[..j...z.. I/DEBUG ( 33): 498c077c ee778a27 ed1b7a14 ed5b7a16 ee378a27 '.w..z...z[.'.7. I/DEBUG ( 33): I/DEBUG ( 33): code around lr: I/DEBUG ( 33): 498c0738 e1a00003 fa0ea2b4 e24b3070 e1a00003 ........p0K..... I/DEBUG ( 33): 498c0748 fa0f5194 e24b3074 e1a00003 fa0ea2ae .Q..t0K......... I/DEBUG ( 33): 498c0758 e51b3064 e5933000 e283304c e5935000 d0...0..L0...P.. I/DEBUG ( 33): 498c0768 e51b6064 ed1b7a15 ed5b7a17 eef06a00 d…z…z[…j…
I/DEBUG ( 33): 498c0778 eec77aa6 ee778a27 ed1b7a14 ed5b7a16 .z…’.w…z…z[.
I/DEBUG ( 33):
I/DEBUG ( 33): stack:
I/DEBUG ( 33): be9bc488 00000008
I/DEBUG ( 33): be9bc48c 40019a9d /system/lib/libc.so
I/DEBUG ( 33): be9bc490 be9bc4ec [stack]
I/DEBUG ( 33): be9bc494 49908150 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc498 001812b8 [heap]
I/DEBUG ( 33): be9bc49c 44b95ca0
I/DEBUG ( 33): be9bc4a0 be9bc640 [stack]
I/DEBUG ( 33): be9bc4a4 44b95c98
I/DEBUG ( 33): be9bc4a8 00000008
I/DEBUG ( 33): be9bc4ac 4001a0ff /system/lib/libc.so
I/DEBUG ( 33): be9bc4b0 be9bc4ec [stack]
I/DEBUG ( 33): be9bc4b4 49c94ddf /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc4b8 49908150 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc4bc 001812b8 [heap]
I/DEBUG ( 33): be9bc4c0 df0027ad
I/DEBUG ( 33): be9bc4c4 00000000
I/DEBUG ( 33): be9bc4c8 00000000
I/DEBUG ( 33): be9bc4cc 00000000
I/DEBUG ( 33): be9bc4d0 be9bc4e4 [stack]
I/DEBUG ( 33): be9bc4d4 0011ba30 [heap]
I/DEBUG ( 33): be9bc4d8 be9bc4ec [stack]
I/DEBUG ( 33): be9bc4dc 0011bc70 [heap]
I/DEBUG ( 33): be9bc4e0 be9bc4f4 [stack]
I/DEBUG ( 33): be9bc4e4 0011bcac [heap]
I/DEBUG ( 33): be9bc4e8 001a3814 [heap]
I/DEBUG ( 33): be9bc4ec 001db80c [heap]
I/DEBUG ( 33): be9bc4f0 001812b8 [heap]
I/DEBUG ( 33): be9bc4f4 001a70e8 [heap]
I/DEBUG ( 33): be9bc4f8 00000000
I/DEBUG ( 33): be9bc4fc 00000000
I/DEBUG ( 33): be9bc500 00000000
I/DEBUG ( 33): be9bc504 00000000
I/DEBUG ( 33): be9bc508 00000000
I/DEBUG ( 33): be9bc50c 00000000
I/DEBUG ( 33): be9bc510 001a3814 [heap]
I/DEBUG ( 33): be9bc514 00000000
I/DEBUG ( 33): be9bc518 498c0a40 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc51c 00000000
I/DEBUG ( 33): be9bc520 00000000
I/DEBUG ( 33): be9bc524 00000000
I/DEBUG ( 33): be9bc528 0011ba30 [heap]
I/DEBUG ( 33): be9bc52c 00194680 [heap]
I/DEBUG ( 33): be9bc530 3f000000
I/DEBUG ( 33): be9bc534 498c13b0 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc538 498c136c /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc53c b4a2c27b
I/DEBUG ( 33): be9bc540 be9bc55c [stack]
I/DEBUG ( 33): be9bc544 00000000
I/DEBUG ( 33): be9bc548 00000000
I/DEBUG ( 33): be9bc54c 49d86b8c /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc550 0011ba30 [heap]
I/DEBUG ( 33): be9bc554 00000004
I/DEBUG ( 33): be9bc558 be9bc574 [stack]
I/DEBUG ( 33): be9bc55c 498c02f4 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc560 001cf570 [heap]
I/DEBUG ( 33): be9bc564 0011ba30 [heap]
I/DEBUG ( 33): be9bc568 49d86b8c /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc56c 00012810 [heap]
I/DEBUG ( 33): be9bc570 be9bc584 [stack]
I/DEBUG ( 33): be9bc574 498c03a8 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc578 00194400 [heap]
I/DEBUG ( 33): be9bc57c 001a5e10 [heap]
I/DEBUG ( 33): be9bc580 be9bc5b4 [stack]
I/DEBUG ( 33): be9bc584 498bf714 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc588 4103a818 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 33): be9bc58c 00129e10 [heap]
I/DEBUG ( 33): be9bc590 4103a818 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 33): be9bc594 00123844 [heap]
I/DEBUG ( 33): be9bc598 001a5e10 [heap]
I/DEBUG ( 33): be9bc59c 001cf570 [heap]
I/DEBUG ( 33): be9bc5a0 44b95ca0
I/DEBUG ( 33): be9bc5a4 b4a2c27b
I/DEBUG ( 33): be9bc5a8 be9bc5c4 [stack]
I/DEBUG ( 33): be9bc5ac 00129e10 [heap]
I/DEBUG ( 33): be9bc5b0 be9bc5c4 [stack]
I/DEBUG ( 33): be9bc5b4 498c21d8 /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc5b8 00000004
I/DEBUG ( 33): be9bc5bc 00129e10 [heap]
I/DEBUG ( 33): be9bc5c0 be9bc5e4 [stack]
I/DEBUG ( 33): be9bc5c4 498bf34c /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 33): be9bc5c8 9f200019
I/DEBUG ( 33): be9bc5cc 0000f2c0 [heap]
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
W/WindowManager( 77): App freeze timeout expired.
W/WindowManager( 77): Force clearing freeze: AppWindowToken{412fb998 token=Token{411fe2d8 Activity
Record{41277a30 com.mygame/org.cocos2dx.cpp.AppActivity}}}
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/ARMAssembler( 35): generated scanline__00000077:03010104_00008001_00000000 [ 89 ipp] (110 ins) a
t [0x41361a80:0x41361c38] in 563625 ns
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/Process ( 77): Sending signal. PID: 566 SIG: 3
I/dalvikvm( 566): threadid=3: reacting to signal 3
I/dalvikvm( 566): Wrote stack traces to ‘/data/anr/traces.txt’
I/BootReceiver( 77): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
I/Process ( 77): Sending signal. PID: 566 SIG: 3
D/Zygote ( 36): Process 566 terminated by signal (11)
I/WindowManager( 77): WIN DEATH: Window{412c08d8 com.mygame/com.nvidia.pentak.LaunchProxy paused=f
alse}
D/dalvikvm( 77): GC_CONCURRENT freed 346K, 16% free 8829K/10439K, paused 4ms+8ms
D/dalvikvm( 77): GC_FOR_ALLOC freed 362K, 14% free 9043K/10439K, paused 62ms
I/ActivityManager( 77): Process com.mygame (pid 566) has died.
W/ActivityManager( 77): Force removing ActivityRecord{41277a30 com.mygame/org.cocos2dx.cpp.AppActi
vity}: app died, no saved state
W/ActivityManager( 77): Force removing ActivityRecord{41260d30 com.mygame/com.nvidia.pentak.Launch
Proxy}: app died, no saved state
W/NetworkManagementSocketTagger( 77): setKernelCountSet(10040, 0) failed with errno -2
I/InputReader( 77): Reconfiguring input devices. changes=0x00000004
I/InputReader( 77): Device reconfigured: id=0, name=‘qwerty2’, surface size is now 320x480, mode i
s 1
W/SurfaceFlinger( 35): createScreenshotSurface failed (Function not implemented)
I/ActivityManager( 77): Config changed: {1.0 310mcc260mnc en_US layoutdir=0 sw320dp w320dp h407dp
smll port finger qwerty/v/v -nav/h s.6}
D/dalvikvm( 77): GC_EXPLICIT freed 32K, 11% free 9369K/10439K, paused 4ms+9ms
I/Process ( 77): Sending signal. PID: 171 SIG: 3
I/dalvikvm( 171): threadid=3: reacting to signal 3
I/dalvikvm( 171): Wrote stack traces to ‘/data/anr/traces.txt’
W/InputManagerService( 77): Window already focused, ignoring focus gain of: com.android.internal.v
iew.IInputMethodClient$Stub$Proxy@41276b38
D/dalvikvm( 77): GC_EXPLICIT freed 815K, 18% free 8612K/10439K, paused 10ms+7ms

It’s not clear what the issue is, however you appear to be running an emulator without GPU support and as you are emulating armv7 it will be very slow.

I use the Intel HAXM driver and run an x86 emulator with GPU support and it runs very well. You would just then need to build for x86 in debug mode. This is using the command line to build the android app and I’m not sure how it works with Tegra and Visual Studio.

I compiled and ran everything with x86 with no luck
Now, I’m getting this error.The tegra for visual studio does not do anything in particular, it uses ANT and the other tools. It only adds debugging capabitlities to visual studio. Is there any other way to test this sample app?

D/dalvikvm( 998): GC_CONCURRENT freed 416K, 8% free 6967K/7495K, paused 1ms+1ms
I/ActivityManager( 868): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHE
R] flg=0x10200000 cmp=com.mygame/org.cocos2dx.cpp.AppActivity} from pid 1363
D/dalvikvm( 1769): Not late-enabling CheckJNI (already on)
I/ActivityManager( 868): Start proc com.mygame for activity com.mygame/org.cocos2dx.cpp.AppActivity
: pid=1769 uid=10041 gids={3003}
I/InputReader( 868): Reconfiguring input devices. changes=0x00000004
I/InputReader( 868): Device reconfigured: id=0, name=‘qwerty2’, surface size is now 320x480, mode i
s 1
I/ActivityManager( 868): Config changed: {1.0 310mcc260mnc en_US layoutdir=0 sw320dp w438dp h295dp
smll land finger qwerty/v/v -nav/h s.14}
D/OpenGLRenderer( 1363): Flushing caches (mode 0)
D/dalvikvm( 1769): Trying to load lib /data/data/com.mygame/lib/libcocos2dcpp.so 0xb4783180
D/dalvikvm( 1769): Added shared lib /data/data/com.mygame/lib/libcocos2dcpp.so 0xb4783180
D/JniHelper( 1769): JniHelper::setJavaVM(0x83a7620), pthread_self() = -1207546752
D/main ( 1769): cocos_android_app_init
D/Cocos2dxActivity( 1769): model=Android SDK built for x86
D/Cocos2dxActivity( 1769): product=sdk_x86
D/Cocos2dxActivity( 1769): isEmulator=true
D/CocosPlayClient.cpp( 1769): isEnabled = 0
D/CocosPlayClient.cpp( 1769): isDemo = 0
D/CocosPlayClient.cpp( 1769): isNotifyFileLoadedEnabled = 0
W/NetworkManagementSocketTagger( 868): setKernelCountSet(10041, 1) failed with errno -2
D/OpenGLRenderer( 1363): Flushing caches (mode 1)
D/OpenGLRenderer( 1363): Flushing caches (mode 0)
D/libEGL ( 1769): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 1769): loaded /system/lib/egl/libEGL_emulation.so
D/ ( 1769): HostConnection::get() New Host Connection established 0x8565370, tid 1769
D/libEGL ( 1769): loaded /system/lib/egl/libGLESv1_CM_emulation.so
D/libEGL ( 1769): loaded /system/lib/egl/libGLESv2_emulation.so
W/EGL_emulation( 1769): eglSurfaceAttrib not implemented
D/OpenGLRenderer( 1769): Enabling debug mode 0
D/ ( 1769): HostConnection::get() New Host Connection established 0x8578548, tid 1784
D/cocos2d-x debug info( 1769):
D/cocos2d-x debug info( 1769): {
D/cocos2d-x debug info( 1769): gl.supports_vertex_array_object: false
D/cocos2d-x debug info( 1769): gl.supports_BGRA8888: false
D/cocos2d-x debug info( 1769): gl.supports_ATITC: false
D/cocos2d-x debug info( 1769): gl.supports_S3TC: false
D/cocos2d-x debug info( 1769): cocos2d.x.version: cocos2d-x 3.6
D/cocos2d-x debug info( 1769): gl.supports_discard_framebuffer: false
D/cocos2d-x debug info( 1769): cocos2d.x.compiled_with_profiler: false
D/cocos2d-x debug info( 1769): gl.supports_PVRTC: false
D/cocos2d-x debug info( 1769): cocos2d.x.build_type: DEBUG
D/cocos2d-x debug info( 1769): gl.renderer: Android Emulator OpenGL ES Translator (AMD Radeon HD 76
00M Series)
D/cocos2d-x debug info( 1769): gl.supports_ETC1: true
D/cocos2d-x debug info( 1769): cocos2d.x.compiled_with_gl_state_cache: true
D/cocos2d-x debug info( 1769): gl.version: OpenGL ES 2.0 (4.5.13397 Compatibility Profile Context 1
5.200.1046.0)
D/cocos2d-x debug info( 1769): gl.supports_NPOT: true
D/cocos2d-x debug info( 1769): gl.max_texture_units: 16
D/cocos2d-x debug info( 1769): gl.vendor: Google (ATI Technologies Inc.)
D/cocos2d-x debug info( 1769): gl.max_texture_size: 16384
D/cocos2d-x debug info( 1769): }
D/cocos2d-x debug info( 1769):
D/cocos2d-x debug info( 1769):
F/libc ( 1769): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=128)
I/ActivityManager( 868): Displayed com.mygame/org.cocos2dx.cpp.AppActivity: +290ms
W/InputManagerService( 868): Starting input on non-focused client com.android.internal.view.IInputM
ethodClient$Stub$Proxy@b4de2a50 (uid=10004 pid=1363)
W/IInputConnectionWrapper( 1363): showStatusIcon on inactive InputConnection
W/NetworkManagementSocketTagger( 868): setKernelCountSet(10004, 0) failed with errno -2
I/DEBUG ( 774): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 774): Build fingerprint: ‘unknown’
I/DEBUG ( 774): pid: 1769, tid: 1784 >>> com.mygame <<<
I/DEBUG ( 774): signal 11 (SIGSEGV), code 128 (?), fault addr 00000000
I/DEBUG ( 774): eax acb838d4 ebx ad60ab70 ecx 0853eb00 edx acb838d4
I/DEBUG ( 774): esi b0270f4c edi acb83a78
I/DEBUG ( 774): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
I/DEBUG ( 774): eip ad2383e9 ebp acb837cc esp acb83144 flags 00010206
I/DEBUG ( 774): #00 eip: ad2383e9 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7cocos2d8M
athUtil14multiplyMatrixEPKDv4_fS3_PS1
)
I/DEBUG ( 774): #01 eip: ad116305 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7cocos2d4M
at48multiplyERKS0_S2_PS0
)
I/DEBUG ( 774): #02 eip: ad11625a /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7cocos2d4M
at48multiplyERKS0
)
I/DEBUG ( 774): #03 eip: ad134469 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7cocos2d4M
at4mLERKS0
)
I/DEBUG ( 774): #04 eip: ad1366ba /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7cocos2d8D
irector14multiplyMatrixENS_17MATRIX_STACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #05 eip: ad136b6c /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7cocos2d8D
irector13setProjectionENS0_10ProjectionE)
I/DEBUG ( 774): #06 eip: ad135888 /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7cocos2d8D
irector18setGLDefaultValuesEv)
I/DEBUG ( 774): #07 eip: ad135e51 /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7cocos2d8D
irector13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): stack:
I/DEBUG ( 774): #00 acb83144 00000001 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83148 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb8314c 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83150 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83154 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83158 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb8315c 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83160 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83164 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83168 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb8316c 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83170 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83174 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83178 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb8317c 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #00 acb83180 00000000 (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): … …
I/DEBUG ( 774): #01 acb837d0 ad116305 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4Mat48multiplyERKS0_S2_PS0
)
I/DEBUG ( 774): #01 acb837d4 0853eb00 [heap] (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837d8 acb838d4 (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837dc 0853eb00 [heap] (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837e0 000001b6 (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837e4 00000140 (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837e8 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4Mat48multiplyERKS0_S2_PS0
)
I/DEBUG ( 774): #01 acb837ec 40000000 (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837f0 08537268 [heap] (ZN7cocos2d4Mat48multiplyERKS0_S2_PS0)
I/DEBUG ( 774): #01 acb837f4 ac637969 /system/lib/egl/libGLESv2_emulation.so (glViewport)
I/DEBUG ( 774): #01 acb837f8 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (glViewpo
rt)
I/DEBUG ( 774): #01 acb837fc acb8381c (glViewport)
I/DEBUG ( 774): #02 acb83800 ad11625a /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4Mat48multiplyERKS0
)
I/DEBUG ( 774): #02 acb83804 0853eb00 [heap] (ZN7cocos2d4Mat48multiplyERKS0)
I/DEBUG ( 774): #02 acb83808 acb838d4 (ZN7cocos2d4Mat48multiplyERKS0)
I/DEBUG ( 774): #02 acb8380c 0853eb00 [heap] (ZN7cocos2d4Mat48multiplyERKS0)
I/DEBUG ( 774): #02 acb83810 de1e6d15 (ZN7cocos2d4Mat48multiplyERKS0)
I/DEBUG ( 774): #02 acb83814 b7fcd359 /system/lib/libm.so (tan)
I/DEBUG ( 774): #02 acb83818 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (tan)
I/DEBUG ( 774): #02 acb8381c acb8383c (tan)
I/DEBUG ( 774): #03 acb83820 ad134469 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4Mat4mLERKS0
)
I/DEBUG ( 774): #03 acb83824 0853eb00 [heap] (ZN7cocos2d4Mat4mLERKS0)
I/DEBUG ( 774): #03 acb83828 acb838d4 (ZN7cocos2d4Mat4mLERKS0)
I/DEBUG ( 774): #03 acb8382c 00000040 (ZN7cocos2d4Mat4mLERKS0)
I/DEBUG ( 774): #03 acb83830 3ff921fb (ZN7cocos2d4Mat4mLERKS0)
I/DEBUG ( 774): #03 acb83834 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4Mat4mLERKS0
)
I/DEBUG ( 774): #03 acb83838 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4Mat4mLERKS0
)
I/DEBUG ( 774): #03 acb8383c acb8386c (ZN7cocos2d4Mat4mLERKS0)
I/DEBUG ( 774): #04 acb83840 ad1366ba /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d8Director14multiplyMatrixENS_17MATRIX_STACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83844 0853eb00 [heap] (_ZN7cocos2d8Director14multiplyMatrixENS_17MA
TRIX_STACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83848 acb838d4 (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb8384c 4ffe43ec (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83850 3fe279a7 (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83854 3b199904 (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83858 3f060a92 (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb8385c 3f13cd3a (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83860 3fddb3d8 (_ZN7cocos2d8Director14multiplyMatrixENS_17MATRIX_S
TACK_TYPEERKNS_4Mat4E)
I/DEBUG ( 774): #04 acb83864 ad1125cd /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d4Mat4C1Ev)
I/DEBUG ( 774): #04 acb83868 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d4Mat4C1Ev)
I/DEBUG ( 774): #04 acb8386c acb8396c (_ZN7cocos2d4Mat4C1Ev)
I/DEBUG ( 774): #05 acb83870 ad136b6c /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d8Director13setProjectionENS0_10ProjectionE)
I/DEBUG ( 774): #05 acb83874 08537228 [heap] (_ZN7cocos2d8Director13setProjectionENS0_10Pr
ojectionE)
I/DEBUG ( 774): #05 acb83878 00000001 (_ZN7cocos2d8Director13setProjectionENS0_10Projecti
onE)
I/DEBUG ( 774): #05 acb8387c acb838d4 (_ZN7cocos2d8Director13setProjectionENS0_10Projecti
onE)
I/DEBUG ( 774): #05 acb83880 43da5625 (_ZN7cocos2d8Director13setProjectionENS0_10Projecti
onE)
I/DEBUG ( 774): #05 acb83884 acb838d4 (_ZN7cocos2d8Director13setProjectionENS0_10Projecti
onE)
I/DEBUG ( 774): #05 acb83888 08570a38 [heap] (_ZN7cocos2d8Director13setProjectionENS0_10Pr
ojectionE)
I/DEBUG ( 774): #05 acb8388c acb838bc (_ZN7cocos2d8Director13setProjectionENS0_10Projecti
onE)
I/DEBUG ( 774): #05 acb83890 ac6a2553 /system/lib/libGLESv2_enc.so (_ZN10GL2Encoder12s_glG
etErrorEPv)
I/DEBUG ( 774): #05 acb83894 08570a38 [heap] (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): #05 acb83898 acb838b0 (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): #05 acb8389c 438a5625 (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): #05 acb838a0 08537228 [heap] (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): #05 acb838a4 438a5625 (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): #05 acb838a8 43db0000 (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): #05 acb838ac 43a00000 (_ZN10GL2Encoder12s_glGetErrorEPv)
I/DEBUG ( 774): … …
I/DEBUG ( 774): #06 acb83970 ad135888 /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d8Director18setGLDefaultValuesEv)
I/DEBUG ( 774): #06 acb83974 08537228 [heap] (_ZN7cocos2d8Director18setGLDefaultValuesEv)
I/DEBUG ( 774): #06 acb83978 00000001 (_ZN7cocos2d8Director18setGLDefaultValuesEv)
I/DEBUG ( 774): #06 acb8397c acb8399c (_ZN7cocos2d8Director18setGLDefaultValuesEv)
I/DEBUG ( 774): #06 acb83980 ad111437 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4SizeaSERKS0
)
I/DEBUG ( 774): #06 acb83984 08537338 [heap] (ZN7cocos2d4SizeaSERKS0)
I/DEBUG ( 774): #06 acb83988 43db0000 (ZN7cocos2d4SizeaSERKS0)
I/DEBUG ( 774): #06 acb8398c 43a00000 (ZN7cocos2d4SizeaSERKS0)
I/DEBUG ( 774): #06 acb83990 de1e6d15 (ZN7cocos2d4SizeaSERKS0)
I/DEBUG ( 774): #06 acb83994 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4SizeaSERKS0
)
I/DEBUG ( 774): #06 acb83998 ad60ab70 /data/data/com.mygame/lib/libcocos2dcpp.so (ZN7coco
s2d4SizeaSERKS0
)
I/DEBUG ( 774): #06 acb8399c acb839ec (ZN7cocos2d4SizeaSERKS0)
I/DEBUG ( 774): #07 acb839a0 ad135e51 /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #07 acb839a4 08537228 [heap] (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLV
iewE)
I/DEBUG ( 774): #07 acb839a8 0857284c [heap] (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLV
iewE)
I/DEBUG ( 774): #07 acb839ac acb839ec (_ZN7cocos2d8Director13setOpenGLViewEPNS_6GLViewE)
I/DEBUG ( 774): #07 acb839b0 ad0f5aa2 /data/data/com.mygame/lib/libcocos2dcpp.so (_ZN7coco
s2d6GLView12setFrameSizeEff)
I/DEBUG ( 774): #07 acb839b4 0857284c [heap] (_ZN7cocos2d6GLView12setFrameSizeEff)
I/DEBUG ( 774): #07 acb839b8 08572844 [heap] (_ZN7cocos2d6GLView12setFrameSizeEff)
I/DEBUG ( 774): #07 acb839bc 43a00000 (_ZN7cocos2d6GLView12setFrameSizeEff)
I/DEBUG ( 774): #07 acb839c0 ad443f8e /data/data/com.mygame/lib/libcocos2dcpp.so
I/DEBUG ( 774): #07 acb839c4 08533118 [heap]
I/DEBUG ( 774): #07 acb839c8 acb839e3
I/DEBUG ( 774): #07 acb839cc 08572830 [heap]
I/DEBUG ( 774): #07 acb839d0 08537228 [heap]
I/DEBUG ( 774): #07 acb839d4 085312fc [heap]
I/DEBUG ( 774): #07 acb839d8 08564a68 [heap]
I/DEBUG ( 774): #07 acb839dc 43a00000
I/DEBUG ( 774): … …
D/Zygote ( 777): Process 1769 terminated by signal (11)
W/InputDispatcher( 868): channel ‘b490d220 com.mygame/org.cocos2dx.cpp.AppActivity (server)’ ~ Cons
umer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 868): channel ‘b490d220 com.mygame/org.cocos2dx.cpp.AppActivity (server)’ ~ Chan
nel is unrecoverably broken and will be disposed!
I/WindowManager( 868): WINDOW DIED Window{b490d220 com.mygame/org.cocos2dx.cpp.AppActivity paused=f
alse}
W/InputDispatcher( 868): Attempted to unregister already unregistered input channel ‘b490d220 com.m
ygame/org.cocos2dx.cpp.AppActivity (server)’
W/WindowManager( 868): Force-removing child win Window{b50f3a68 SurfaceView paused=false} from cont
ainer Window{b490d220 com.mygame/org.cocos2dx.cpp.AppActivity paused=false}
E/JavaBinder( 868): !!! FAILED BINDER TRANSACTION !!!
I/ActivityManager( 868): Process com.mygame (pid 1769) has died.
W/ActivityManager( 868): Force removing ActivityRecord{b4dadbc0 com.mygame/org.cocos2dx.cpp.AppActi
vity}: app died, no saved state
D/ ( 776): HostConnection::get() New Host Connection established 0x9566b50, tid 1785
W/NetworkManagementSocketTagger( 868): setKernelCountSet(10041, 0) failed with errno -2
W/NetworkManagementSocketTagger( 868): setKernelCountSet(10004, 1) failed with errno -2
I/InputReader( 868): Reconfiguring input devices. changes=0x00000004
I/InputReader( 868): Device reconfigured: id=0, name=‘qwerty2’, surface size is now 320x480, mode i
s 1
I/ActivityManager( 868): Config changed: {1.0 310mcc260mnc en_US layoutdir=0 sw320dp w320dp h407dp
smll port finger qwerty/v/v -nav/h s.15}
W/EGL_emulation( 1363): eglSurfaceAttrib not implemented
W/InputManagerService( 868): Got RemoteException sending setActive(false) notification to pid 1769
uid 10041
D/dalvikvm( 1363): GC_CONCURRENT freed 947K, 27% free 8321K/11271K, paused 1ms+0ms
D/dalvikvm( 1363): GC_CONCURRENT freed 777K, 28% free 8129K/11271K, paused 1ms+0ms
D/dalvikvm( 1363): GC_FOR_ALLOC freed 176K, 28% free 8228K/11271K, paused 3ms
I/dalvikvm-heap( 1363): Grow heap (frag case) to 9.313MB for 1286220-byte allocation
D/dalvikvm( 1363): GC_FOR_ALLOC freed 2K, 16% free 9481K/11271K, paused 2ms
D/dalvikvm( 1363): GC_CONCURRENT freed 11K, 16% free 9482K/11271K, paused 1ms+1ms
D/dalvikvm( 868): GC_EXPLICIT freed 275K, 50% free 8556K/17031K, paused 0ms+1ms

Now I tried to compile the whole stuff using the command line tools (no visual studio)

[MARTIN_LAPTOP] Sun 07/19/2015 21:29:27.09
C:\test_app\MyGame\proj.android

build_native.py -clean

[MARTIN_LAPTOP] Sun 07/19/2015 21:29:38.45
C:\test_app\MyGame\proj.android

python build_native.py
Please use cocos console instead.

Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘“C:\Program Files (x86)\Android\android-sdk\tools\android” update project -t android-15 -p
C:\test_app\MyGame\proj.android’

Updated project.properties
Updated local.properties
Updated file C:\test_app\MyGame\proj.android\proguard-project.txt
Android platform not specified, searching a default one…
running: ‘“C:\Program Files (x86)\Android\android-sdk\tools\android” update lib-project -p C:\test_a
pp\MyGame\proj.android../cocos2d/cocos/platform/android/java -t android-10’

Updated project.properties
Updated local.properties
Updated file C:\test_app\MyGame\proj.android..\cocos2d\cocos\platform\android\java\proguard-project
.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.9
running: ‘“C:\Librerias\android-ndk-r10e\ndk-build” -C C:\test_app\MyGame\proj.android -j8 NDK_MODUL
E_PATH=C:\test_app\MyGame\proj.android../cocos2d;C:\test_app\MyGame\proj.android../cocos2d/cocos;C
:\test_app\MyGame\proj.android../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1’

make.exe: Entering directory C:/test_app/MyGame/proj.android' [x86] StaticLibrary : libcocos2d.a [x86] StaticLibrary : libcocostudio.a [x86] StaticLibrary : libcocosbuilder.a [x86] StaticLibrary : libcocos3d.a [x86] StaticLibrary : libspine.a [x86] StaticLibrary : libnetwork.a [x86] StaticLibrary : libaudioengine.a [x86] StaticLibrary : libui.a [x86] StaticLibrary : libcocosdenshion.a [x86] StaticLibrary : flatbuffers.a [x86] StaticLibrary : libextension.a [x86] StaticLibrary : libcocos2dxinternal.a [x86] StaticLibrary : libbox2d.a [x86] StaticLibrary : libcocos2dandroid.a [x86] StaticLibrary : libcpufeatures.a [x86] Gdbserver : [x86-4.9] libs/x86/gdbserver [x86] Gdbsetup : libs/x86/gdb.setup [x86] SharedLibrary : libcocos2dcpp.so [x86] Install : libcocos2dcpp.so => libs/x86/libcocos2dcpp.so make.exe: Leaving directory C:/test_app/MyGame/proj.android’
building apk
running: ‘“C:\Librerias\apache-ant-1.9.6-bin\bin\ant” clean debug -f C:\test_app\MyGame\proj.android
\build.xml -Dsdk.dir=“C:\Program Files (x86)\Android\android-sdk”’

Buildfile: C:\test_app\MyGame\proj.android\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk

-setup:
[echo] Project Name: Y bue
[gettype] Project Type: Application

-pre-clean:

clean:
[delete] Deleting directory C:\test_app\MyGame\proj.android\bin
[delete] Deleting directory C:\test_app\MyGame\proj.android\gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:

nodeps:

-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk

-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library

-pre-clean:

clean:
[delete] Deleting directory C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin
[delete] Deleting directory C:\test_app\MyGame\cocos2d\cocos\platform\android\java\gen

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk

-setup:
[echo] Project Name: Y bue
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for Y bue…
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\res
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\rsObj
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\rsLibs
[mkdir] Created dir: C:\test_app\MyGame\proj.android\gen
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\classes
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for Y bue…
[dependency] Ordered libraries:
[dependency] C:\test_app\MyGame\cocos2d\cocos\platform\android\java
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with ‘debug’…

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk

-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for cocos2dxandroid…
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\res
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\rsObj
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\rsLibs
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\gen
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for cocos2dxandroid…
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 25 source files to C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin
classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[echo] Creating library output jar file…
[jar] Building jar: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes.jar

-post-compile:

-obfuscate:

-dex:
[echo] Library project: do not convert bytecode…

-crunch:
[crunch] Crunching PNG Files in source dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\jav
a\res
[crunch] To destination dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[echo] Library project: do not package resources…

-package:
[echo] Library project: do not package apk…

-post-package:

-do-debug:
[echo] Library project: do not create apk…
[propertyfile] Creating new property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bi
n\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\bu
ild.prop
[propertyfile] Updating property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\bu
ild.prop
[propertyfile] Updating property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\bu
ild.prop

-post-build:

debug:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 3 source files to C:\test_app\MyGame\proj.android\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\test_app\MyGame\proj.android\bin\classes
[dex] input: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes.jar
[dex] input: C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar
[dex] Pre-Dexing C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes.jar → cla
sses-87eb10b95912a81b66759ccd95c39883.jar
[dex] Pre-Dexing C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar → a
nnotations-62bab95d6948a2db17bbc7976160b014.jar
[dex] Converting compiled files and external libraries into C:\test_app\MyGame\proj.android\bi
n\classes.dex…
[dx] Merged dex A (6 defs/1.6KiB) with dex B (84 defs/107.3KiB). Result is 90 defs/128.6KiB.
Took 0.1s
[dx] Merged dex A (90 defs/128.6KiB) with dex B (2 defs/1.1KiB). Result is 92 defs/161.9KiB.
Took 0.0s

-crunch:
[crunch] Crunching PNG Files in source dir: C:\test_app\MyGame\proj.android\res
[crunch] To destination dir: C:\test_app\MyGame\proj.android\bin\res
[crunch] Processing image to cache: C:\test_app\MyGame\proj.android\res\drawable-hdpi\icon.png =>
C:\test_app\MyGame\proj.android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry C:\test_app\MyGame\proj.android\bin\res\drawable-hdpi
icon.png: 67% size of source)
[crunch] Processing image to cache: C:\test_app\MyGame\proj.android\res\drawable-ldpi\icon.png =>
C:\test_app\MyGame\proj.android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry C:\test_app\MyGame\proj.android\bin\res\drawable-ldpi
icon.png: 0% size of source)
[crunch] Processing image to cache: C:\test_app\MyGame\proj.android\res\drawable-mdpi\icon.png =>
C:\test_app\MyGame\proj.android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry C:\test_app\MyGame\proj.android\bin\res\drawable-mdpi
icon.png: 53% size of source)
[crunch] Crunched 3 PNG files to update cache
[crunch] C:\test_app\MyGame\proj.android\res\drawable-hdpi\icon.png: libpng warning: iCCP: Not re
cognizing known sRGB profile that has been edited
[crunch] C:\test_app\MyGame\proj.android\res\drawable-ldpi\icon.png: libpng warning: iCCP: Not re
cognizing known sRGB profile that has been edited
[crunch] C:\test_app\MyGame\proj.android\res\drawable-mdpi\icon.png: libpng warning: iCCP: Not re
cognizing known sRGB profile that has been edited

-package-resources:
[aapt] Creating full resource package…
[aapt] (skipping file ‘.gitkeep’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)

-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating Y bue-debug-unaligned.apk and signing it with a debug key…

-post-package:

-do-debug:
[zipalign] Running zip align on final apk…
[echo] Debug Package: C:\test_app\MyGame\proj.android\bin\Y bue-debug.apk
[propertyfile] Creating new property file: C:\test_app\MyGame\proj.android\bin\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\proj.android\bin\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\proj.android\bin\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\proj.android\bin\build.prop

-post-build:

debug:

BUILD SUCCESSFUL
Total time: 6 seconds
Move apk to C:\test_app\MyGame\bin\debug\android
build succeeded.

Then installed the app using the command line

adb -s emulator-5554 install “C:\test_app\MyGame\bin\debug\android\Y bue-debug.apk”

The application appears in the emulator but when I double click on it nothing happens. What is the default behavior of the Hello World app on android?

This may help you Debug Setup

I think the missing part is to run the python scripts so that the whole thing is packaged (including the assets). I hope cocos move to something more modern for building apps like visual studio and not the cumbersome ant or scripted based builds that are hard to catch up.

For the record, now I can debug my game on android and win32 using visual 2013 and tegra

The only drawback is if the app crashes at the very beggining the debugger cannot start hence the pop up below is shown.