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
The issue seems to be that the underlying str_internal() function calls a godot interface function with a Variant variable for storing the returned value but that return value is a String instead of a Variant which crashes when the Variant variable goes out of scope at the end of str_internal().
There is a simple fix for that which is changing the type of the return variable to String. I will open a PR for that.
Steps to reproduce
Call the function with any number/type of parameters.
Minimal reproduction project
Not necessary.
The text was updated successfully, but these errors were encountered:
Mathis-Z
added a commit
to Mathis-Z/godot-cpp
that referenced
this issue
May 30, 2023
Godot version
4.0
godot-cpp version
4.0
System information
Linux
Issue description
Calling UtilityFunctions::str(...) always crashes.
The issue seems to be that the underlying str_internal() function calls a godot interface function with a Variant variable for storing the returned value but that return value is a String instead of a Variant which crashes when the Variant variable goes out of scope at the end of str_internal().
There is a simple fix for that which is changing the type of the return variable to String. I will open a PR for that.
Steps to reproduce
Call the function with any number/type of parameters.
Minimal reproduction project
Not necessary.
The text was updated successfully, but these errors were encountered: