Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async mode is broken if invoked from Lua #160

Open
agladysh opened this issue Apr 8, 2015 · 1 comment
Open

Async mode is broken if invoked from Lua #160

agladysh opened this issue Apr 8, 2015 · 1 comment

Comments

@agladysh
Copy link
Member

agladysh commented Apr 8, 2015

Original issue 154 created by lua-alchemy on 2012-02-25T18:14:04.000Z:

public function testDoStringAsyncReentrant():void
{
  myLuaAlchemy.setGlobal("_ALCHEMY", myLuaAlchemy);

  var script:String = ( <![CDATA[
    _ALCHEMY.doStringAsync(
        [[
          return 42
        ]],
        as3.class.Function.new()
      )

    as3.trace("CRASHES HERE")

    return 24

  ]]> ).toString();

  doStringAsync(1, script, [ true, [ true, 42 ] ]);
}

Crashes with

 0 this = [Object 4669067025, class='cmodule.lua_wrapper::FSM_luaV_execute'].FSM_luaV_execute/work() at <null>:0

 1 this = [Object 4678689393, class='cmodule.lua_wrapper::CRunner'].CRunner/work() at <null>:0

 2 this = [Object 4523004129, class='global'].Function/<anonymous>(_arg1=[Object 4532202225, class='flash.events::TimerEvent']) at <null>:0

 3 Timer/_timerDispatch() at <null>:0

 4 this = [Object 4666036105, class='flash.utils::Timer'].Timer/tick() at <null>:0

@agladysh
Copy link
Member Author

agladysh commented Apr 8, 2015

Comment #1 originally posted by lua-alchemy on 2012-02-25T19:58:21.000Z:

Same behavior if this is run on a separate Lua state, created inside the first one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant