java.lang.SecurityException started after upgrading to latest release


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(
3 at org.cocos2dx.lib.Cocos2dxGLSurfaceView$
4 at android.opengl.GLSurfaceView$GLThread.guardedRun(
5 at android.opengl.GLSurfaceView$

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:

Anyone seen this before or have any recommendations?

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