You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling Thread.start() with null data the thread doesn't start and this error is reported:
ERROR: Could not call function 'thread_run' to start thread 5559469359093562243: Too Few Arguments.
at: _start_func (core/bind/core_bind.cpp:2604)
It used to be possible to not specify the user data parameter and have that default to null.
Forcing the user to pass in some non-null data seems unnecessary.
Steps to reproduce
Create a scene with a single node and a script for the node.
Create a thread in the "_ready" method and start it by calling a function on the same script and specifying no data:
What would you expect _data to be initialized to if it's not assigned a default value and not passed in the start() call?
akien-mga
changed the title
Starting a thread form GDScript always require non-null data to be passed
Starting a thread from GDScript always require non-null data to be passed
Jul 21, 2021
Godot version
3.x build 51f8247
System information
OS: Arch Linux, CPU: Ryzen 5, GUP: RX 480
Issue description
When calling Thread.start() with null data the thread doesn't start and this error is reported:
It used to be possible to not specify the user data parameter and have that default to
null
.Forcing the user to pass in some non-null data seems unnecessary.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: