java.lang.SecurityException started after upgrading to latest release


#1

After upgrading our coco2dx to the latest version, we started seeing the below error in our android crash monitoring:

0 java.lang.SecurityException
1 at org.cocos2dx.lib.Cocos2dxRenderer.nativeTouchesEnd(Native Method)
2 at org.cocos2dx.lib.Cocos2dxRenderer.handleActionUp(Cocos2dxRenderer.java:129)
3 at org.cocos2dx.lib.Cocos2dxGLSurfaceView$9.run(Cocos2dxGLSurfaceView.java:257)
4 at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1346)
5 at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1138)

We haven’t been able to repro this error in house yet.

We’re working on getting the C++ call stack for it, but not sure if that will work. Our users report this as a crash that prevents them from being able to play the app.

It appears to be limited to samsung galaxy phones (model breakdown: http://minus.com/l6RMCXZ5PEyGZ).

Anyone seen this before or have any recommendations?

(Note: I’ve ported in the fixes for ScriptingCore’s createGlobalContext function, with no changes)