Closed TritiatedWater closed 5 years ago
I'm getting the same error with Godot 3.0.4. I'm on Xubuntu Linux 18.04 with Mono 5.12. Code:
GD.Load("res://Assets/Menu/UI/MenuTheme.tres")
Error:
0:00:01:0599 - Conversion of MonoString to UTF8 failed.
----------
Type:Error
Description: Conversion of MonoString to UTF8 failed.
Time: 0:00:01:0599
C Error: Method/Function Failed, returning: RES()
C Source: core/io/resource_loader.cpp:186
C Function: _load
CC @neikeq
I'm also getting this, on something I otherwise do right above it:
Button _joinBtn;
Button _hostBtn;
Network _network;
public override void _Ready()
{
_joinBtn = (Button)GetNode("panel/join");
_hostBtn = (Button)GetNode("panel/host");
_network = (Network)GetNode("/root/OpenFortress/Network");
Fails on finding/assigning network.
I cannot reproduce this. Does this always happen or only some times?
Can you try replacing these two lines: https://github.com/godotengine/godot/blob/3e128a6d8aa2982ec4da20c1dd73faa968b9207a/modules/mono/mono_gd/gd_mono_marshal.cpp#L195-L196
with:
if (!mono_error_ok(&error)) {
ERR_PRINTS(String("Failed to convert MonoString* to UTF-8: ") + mono_error_get_message(&error));
ERR_FAIL_V(String());
}
and paste the new error message here?
Hmm, the error doesn't happen anymore on c3023e8. I don't know why.
Closing as fixed as per the above.
Godot version: 257d3c3f39fd144d202f112c9cb08a82c174afbc
OS/device including version: Ubuntu Linux 18.04
Issue description: I'm trying to get a bool from my settings file. But it gives me:
Steps to reproduce: