Build 1085 Breaks Android App

Hi,

I’ve just tried to build my game using daily build 1085, and after starting my app it throws a runtime exception, because some function is not visible.

In main.lua I create a global variable - table, where I add some global functions, one of the functions is returning string translated to current locale.

This function definitely is there and there’s no code difference between android and ios versions and ios version works fine.

I’ve reverted back to 1076 and it works ok.

Krystian

BTW: I also saw this:

W/System.err(23351): com.naef.jnlua.LuaRuntimeException: java.lang.OutOfMemoryError W/System.err(23351): Java Stack Trace: W/System.err(23351): com.ansca.corona.NativeToJavaBridge.getBitmapAsset(NativeToJavaBridge.java:1128) W/System.err(23351): com.ansca.corona.NativeToJavaBridge.callGetBitmapAsset(NativeToJavaBridge.java:1407) W/System.err(23351): com.naef.jnlua.LuaState.lua\_pcall(Native Method) W/System.err(23351): com.naef.jnlua.LuaState.call(Unknown Source) W/System.err(23351): com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:90) W/System.err(23351): network.NetworkRequest$LuaCallback$1$1.executeUsing(NetworkRequest.java:603) W/System.err(23351): com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:153) W/System.err(23351): com.ansca.corona.events.EventManager.sendEvents(EventManager.java:274) W/System.err(23351): com.ansca.corona.Controller.onDrawFrame(Controller.java:228) W/System.err(23351): com.ansca.corona.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:379) W/System.err(23351): com.ansca.corona.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622) W/System.err(23351): com.ansca.corona.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377) W/System.err(23351): at com.naef.jnlua.LuaState.lua\_pcall(Native Method) W/System.err(23351): at com.naef.jnlua.LuaState.call(Unknown Source) W/System.err(23351): at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:90) W/System.err(23351): at network.NetworkRequest$LuaCallback$1$1.executeUsing(NetworkRequest.java:603) W/System.err(23351): at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:153) W/System.err(23351): at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:274) W/System.err(23351): at com.ansca.corona.Controller.onDrawFrame(Controller.java:228) W/System.err(23351): at com.ansca.corona.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:379) W/System.err(23351): at com.ansca.corona.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622) W/System.err(23351): at com.ansca.corona.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)

Looks like your device is running out of memory while loading large images. Your app may be on the edge of running out of heap memory and the latest build uses a little more heap memory, which is causing the problem. You could try increasing the heap size used by Java to buffer the images or add a timer for loading your images to give time for the Java garbage collector to free up memory.

You can find a link to adding the heap parameter here:

http://developer.coronalabs.com/forum/2012/08/07/very-weird-texture-memory-problem-android#comment-136404

Thanks Tom, I will give it a try!

Looks like your device is running out of memory while loading large images. Your app may be on the edge of running out of heap memory and the latest build uses a little more heap memory, which is causing the problem. You could try increasing the heap size used by Java to buffer the images or add a timer for loading your images to give time for the Java garbage collector to free up memory.

You can find a link to adding the heap parameter here:

http://developer.coronalabs.com/forum/2012/08/07/very-weird-texture-memory-problem-android#comment-136404

Thanks Tom, I will give it a try!