Help on crash "java.lang.RuntimeException: Unable to destroy activity"

Cannot reproduce it, but according to Crashlytics my app’s top crash has the following callstack:

Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {com.monkeyibrow.worldcupsc/org.cocos2dx.cpp.AppActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘void org.cocos2dx.lib.Cocos2dxActivity.runOnGLThread(java.lang.Runnable)’ on a null object reference
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4298)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4316)
at android.app.ActivityThread.-wrap6(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1588)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

Caused by java.lang.NullPointerException: Attempt to invoke virtual method ‘void org.cocos2dx.lib.Cocos2dxActivity.runOnGLThread(java.lang.Runnable)’ on a null object reference
at org.cocos2dx.lib.Cocos2dxHelper.runOnGLThread(Cocos2dxHelper.java:109)
at org.cocos2dx.lib.Cocos2dxAudioFocusManager.unregisterAudioFocusListener(Cocos2dxAudioFocusManager.java:121)
at org.cocos2dx.lib.Cocos2dxActivity.onDestroy(Cocos2dxActivity.java:229)
at org.cocos2dx.cpp.AppActivity.onDestroy(AppActivity.java:87)

Looks like a possible bug on cocos framework. Can someone help?

someone?
the number of crashes related to this is rising, and I have no clue where to look.

I am getting this a lot too. One of the top crashes.

I met the same issue, did you soloved it?
I create 2 projects by cocos commond,the first project I didn’t set “PROJECT_NAME”, when i use SplashActivity to be LAUNCHER activity and then AppActivity the project is ok and not crash,But in the second project I set “PROJECT_NAME” with my project name and then the second project is crash ,remind the above message.
can Engine developer help find out the reason? please

comment the fuction and it’s ok:joy: