-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
API: Cuberite crashes under Windows 11 when player functions are called #5594
Comments
Long time no see! What a strange issue. Can you attach a debugger and identify the actual cause of the crash? I guess we must not be handling the lua error in some way, but it's strange that the behaviour differs depending on system. |
Sadly the stacktrace doesn't point to any line in the code, but I see lua5.1 in the output. cuberite/src/Bindings/LuaState.cpp Line 2524 in 4b2b02a
Edit: Added debug infos to release mode and now I see where the crash occurs. This is from the generated file Bindings.cpp:
This check fails: |
Reverting tolua++ to commit 26e85c4 fixes the crash, not sure what there is wrong. |
Client version: 1.12.2
Server OS: Windows 11
Cuberite Commit id: 4b2b02a
Expected behavior
A bad API call should not crash the server.
Actual behavior
Server crashes when this function is called:
a_Player:SendMessageFailure(true)
Steps to reproduce the behavior
Run this plugin:
Server log
Hello long time no see :)
Started testing my Plugin APIFuzzing and got many crashes.
I think the cause for most of them is the same.
Bisected the cause down to this commit: 7b8f6eb
When I run the plugin under Linux, no crash occurs I only see the output above.
Under windows after the output the server crashes.
Not sure if that is a problem only under windows 11. I don't have windows 10 anymore.
The text was updated successfully, but these errors were encountered: