-
Notifications
You must be signed in to change notification settings - Fork 24
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
Errors returned to lua #179
Comments
This is indeed very unhelpful. I've seen this error too, and as far as I remember, it was caused by the hot-reloading. Are you using the hot-reloading feature by any chance? |
No, I compiled with For the moment i copied the next function and renamed it to try_next and now call that function from next and log::error the Err case. |
I can reproduce it now. While trying to create a small example that reproduces the error to report the issue to DCS-gRPC: What is strange though, if I download the Lua 5.1.5 release, its dll has clearly a different size (308 KB) compared to the on from DCS (257 KB). In summary. Not caused by |
That's weird, probably dcs compiled lua with some special flags or something. Personally, I would probably just do something like this: soerenmeier@7386d9a the errors are always outputted to the |
@soerenmeier That is definitely a solution I'd also have in mind 👍. Our only concern in the past was that people tend to look into the |
When deserialization fails in a
next
call this error gets returned from rust:rust-server/src/lib.rs
Lines 151 to 158 in 4a04655
But in lua only the following line get's outputed:
Error retrieving next command: attempt to concatenate a userdata value
. This is very misleading.I tried to debug this but I haven't found anything. Something might be wrong with the lua version of dcs.
Did this works once and is this a known issue?
mlua:
function that passes the error to lua:
callback_error
function that converts the mlua error into a string:
init_error_registry
The text was updated successfully, but these errors were encountered: