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

Bug Report:Calling pull_variant on _G causes crashes at the next pull_variant call #220

Open
cssdc-bombardiero opened this issue Aug 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cssdc-bombardiero
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Calling this code with LuaAPI-LuaJIT 4.2.x with Godot 4.3 crashes the game.

func _ready() -> void:
	var lua := LuaAPI.new()
	lua.bind_libraries(["base", "table", "string"])
	
	print("Running lua code...")
	var err = lua.do_string("""
		test = {value = "Test"}
		print(test.value)
	""")
	if err is LuaError:
		print("Lua error: ", err.message)
	
	print("1================================")
	var g = lua.pull_variant("_G")
	print("2================================")
	var test = lua.pull_variant("test")
	print("3================================")

I get get this output:

Running lua code
Test
1================================
2================================

================================================================
CrashHandlerException: Program crashed with signal 11
Engine version: Godot Engine v4.3.rc3.official (03afb92efa18874da19f7fc185a32c005d20aa1d)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
[23] error(-1): no debug info in PE/COFF executable
[24] error(-1): no debug info in PE/COFF executable
[25] error(-1): no debug info in PE/COFF executable
[26] error(-1): no debug info in PE/COFF executable
[27] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
================================================================

Enviroment (please complete the following information):

  • OS: Windows 11
  • Godot version: v4.3.rc3.official [03afb92ef]
  • Module version: v2.1-beta11 (from the asset lib)

Additional context
When not using LuaJIT (LuaAPI 4.2.x), the game crashes imediatly when pulling _G instead of at the next pull_variant call.

@cssdc-bombardiero cssdc-bombardiero added the bug Something isn't working label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant