Application terminated without any message!

hi
i am developing an android game with cocos2d-x, but my game closed unexpected without any error even in LogCat! so i don’t understand what is the problem?!
the only message in debug panel is “application terminated”.
How can i debug it and find-out what is the problem?

i am using cocos2d-x-0.12
latest android NDK
latest android SDK
Target: API 8 (android 2.2)
eclipse SDK 3.7.2

and debug on HTC WildFire S with android 2.3.5

Try adding NDK_DEBUG=1 in build_native.sh just before ndk-build, like this:

echo “Using prebuilt externals”
NDK_DEBUG=1 $NDK_ROOT/ndk-build j3C $GAME_ANDROID_ROOT NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt

Then you can run something like this:

NDK_MODULE_PATH=/Code/cocos2d-x/:/Code/cocos2d-x/cocos2dx/platform/third_party/android/prebuilt/ PATH=$PATH:~/Code/android/sdk/platform-tools/ …/…/android/ndk/ndk-gdb —start

and debug your app with gdb.

You can try print logs from the “main()”。

Thanks Tomas
the Error is:
ActivityManager - fail to set top app changed!

why this occur?