Crash on launch

Win764 + cocos2d-js-3.0alpha2

The app crashes only if launched by adb.

Error log

05-05 18:25:36.367: D/JniHelper(6307): JniHelper::setJavaVM(0xab90), pthread_self() = -1345002400
05-05 18:25:36.377: D/PhoneWindow(6307): couldn't save which view has focus because the focused view org.cocos2dx.lib.Cocos2dxGLSurfaceView@40566150 has no id.
05-05 18:25:36.377: E/cocos2d-x assert(6307): D:\Timothy\FingerDance\Projects\empire\tech\empire\frameworks\runtime-src\proj.android\../../js-bindings/cocos2d-x/cocos/2d/platform/android/CCApplication.cpp function:getInstance line:79

Part of stack:

05-05 18:25:42.907: I/DEBUG(1051):  d14 0000000000000000  d15 0000000000000000
05-05 18:25:42.907: I/DEBUG(1051):  scr 60000010
05-05 18:25:43.037: I/DEBUG(1051):          #00  pc 00a11bd0  /data/data/com.fingerdance.empire/lib/libfd_empire.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnPause)
05-05 18:25:43.037: I/DEBUG(1051):          #01  pc 00011eb4  /system/lib/libdvm.so
05-05 18:25:43.037: I/DEBUG(1051):          #02  pc 000434ba  /system/lib/libdvm.so (dvmCallJNIMethod_staticNoRef)

How to reproduce the issue?It crashes only using ‘adb shell am start -n xxxx’?

@Timothy

I tested with a new created Cocos2d-JS project, and run it with adb, everything works fine.
Have you modified the engine itself or the android project ?

I found some links that may be helpful


http://blog.csdn.net/ithomer/article/details/7281066