Skip to content

network.request throws exception on Android #2

@ghost

Description

When attempting to download an image, a native android exception is thrown - the lua callback function is never invoked.

network.request( "http://docs.coronalabs.com/images/simulator/image-mask-base2.png", "GET", networkListener, params )

Unfortunately, I've only been able to reproduce this in my own app. Even then, only after a short time (seconds) after app launch does the issue begin to occur. It's not clear what changes result in this error state.

java.lang.IllegalArgumentException: Lua value proxy is from a different Lua state at com.naef.jnlua.DefaultConverter.convertJavaObject(DefaultConverter.java:513) at com.naef.jnlua.LuaState.pushJavaObject(LuaState.java:661) at network.NetworkRequest$NetworkRequestState.push(NetworkRequest.java:470) at network.NetworkRequest$LuaCallback$1.executeUsing(NetworkRequest.java:609) at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:195) at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:116) at com.ansca.corona.Controller.updateRuntimeState(Controller.java:343) at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:450) at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625) at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions