+2 votes

Hello godoters,

So I wrote a GDNative plugin for my game (in C++). I can show the code if it is relevant, but I think the problem lies somewhere else given the situation.

It uses functionalities of the Path node that were introduced in 3.1. I've programmed and used this plugin for a long time (around 3 months) on various builds of the 3.1, and it always worked flawlessly. However now I booted Godot after a period of inactivity, I updated my Godot files and... the GDNative plugin doesn't work anymore.

I tried a clean rebuilding of 3 different builds of Godot (3.1, 3.1.1 and the master of the github branch of one hour ago), and none worked.

The weird thing is that the plugin works for a short amount of time (around 1 or 2 minutes) and then crashes and stops working. The message it gives me is the following :

modules/gdnative/gdnative.cpp:488 - No valid library handle, can't get symbol from GDNative object
 modules/gdnative/gdnative.cpp:393 - No valid library handle, can't terminate GDNative object

I also tried rebuilding the libs of the GDNative plugin everytime, but to no avail.

Any inputs on this ? Thanks in advance.

in Engine by (350 points)

Make sure to update submodules with git submodule update before updating the godot-cpp libraries, so that the included headers are up-to-date.

1 Answer

0 votes

Did you #include <Godot.hpp> and have godot_headers inside the godot-cpp folder?

by (18 points)

Yes absolutely did ...

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.