I get this error in device
java.lang.OutOfMemoryError: int[] of length -2147483648 exceeds the VM limit Java Stack Trace: com.ansca.corona.JavaToNativeShim.nativeRender(Native Method) com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:185) com.ansca.corona.Controller.updateRuntimeState(Controller.java:293) com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417) com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622) com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
On probing, I found that the display.save function is the one causing this error
What’s the problem here?