-
Notifications
You must be signed in to change notification settings - Fork 83
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
[4.1-v0.0.17] Signal arguments makes it crash #175
Comments
Maybe we are not passing the arguments correctly with 0 count. |
Arguments are returned, but it looks like the signal callback fails. Another problem that might be Signal related, After further testing: It turns out the crash only occurs on one of these nodes
|
I wonder if it's Camera3D access that's crashing? The rest are primitive types. |
If you add a script on a --> This is a bug, we should check why we lose any input events if we attach a |
Moved this to #206 |
Concerned version
4.1-v0.0.17-alpha-20231003
Problem
It seems that any function passing arguments makes the application crash, both on editor connection and using the
.connect(str, fn)
methodWhat works:
this.connect("sig_name", () => { this.myMethod(myValueHere) })
What doesn't work:
this.connect("input_event", this.myMethod) // returns 5 arguments
this.connect("sig_name", this.myMethod, [myValue])
this.connect("sig_name", this.myMethod.bind(myValue))
Observations
MethodInfo
doesn't set the number of arguments in /quickjs/quickjs_binder.cpp:L1871Note : The parameters seem to be received by the functions since they are logged on the terminal that runs godot but freezes the program completly after printing them
The text was updated successfully, but these errors were encountered: