WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
371 stars 28 forks source link

Bug Report: LuaJIT in call using a Lua table type with gd. #219

Open ForceQuady opened 3 weeks ago

ForceQuady commented 3 weeks ago

Using LuaJIT Crash exit when (call a function using table as argument from Lua src | pull_variant Lua table type from gd src)

To Reproduce 1 Example:

  #main.gd
  func any_example_function(value : Variant) -> void: 
  # ...
  #main.gd
  lua_object.bind_libraries(["base",  "string", "table"])
  lua_object.push_variant("gd_func", any_example_function)
  lua_object.do_string("gd_func({})")

2 Example:

  #main.gd
  lua_object.bind_libraries(["base",  "string", "table"])
  lua_object.push_variant("test", {})
  var expected : Variant = lua_object.pull_variant("test")

Expected behavior Only {Not LuaJIT} Work!, LuaJIT has crash behaviour.

Enviromint: