godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

[GDExtention] Fails on first load after clean build

Open BastiaanOlij opened this issue 4 years ago • 5 comments

Weird issue that only started happening today, Akien thinks this might be an upstream problem but we need to investigate it further.

First time I compile the plugin from scratch and start it in the editor, the editor doesn't recognise the classes. You can see in the logs its initialising things to late.

Second time running, or running with a breakpoint set, it all works fine, so its definately a timing issue. Also from that point onwards it keeps working so it must be caching something about the library.

BastiaanOlij avatar Sep 27 '21 14:09 BastiaanOlij

Upstream issue: https://github.com/godotengine/godot/issues/53163

akien-mga avatar Sep 28 '21 06:09 akien-mga

@BastiaanOlij : upstream issue https://github.com/godotengine/godot/issues/53163 seems resolved. So is this also resolved?

MJacred avatar Jan 22 '24 10:01 MJacred

In the end it was only partially fixed. I think there's new upstream issue tracking it now, but I don't have the link handy.

dsnopek avatar Jan 22 '24 14:01 dsnopek

Here's one upstream issue: https://github.com/godotengine/godot/issues/80850

Not sure if it's the "best" one

dsnopek avatar Jan 22 '24 14:01 dsnopek

I really need to get back into building something proper with GDExtensions, I have no idea if this is fixed by now.

But seeing similar issues exist/existed with normal plugins as well, I would concur with Davids option here, it's gotten loads better, but there are still edge cases where things go wrong.

BastiaanOlij avatar Jan 23 '24 05:01 BastiaanOlij