Error in the GDNative example

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Densevoid

I’m trying to run an example “InstanceBindingDemo” from this repository: https://github.com/GodotNativeTools/GDNative-demos.git

But after compiling the library, I run the project and get an error in the Godot console:

handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f520c3b6f20] (??:0)
[2] /home/zababon/Work/Gamedev/Godot Projects/GDNativeTest/GDNative-demos/c/MyInstanceBindingDemo/bin/libsimple.so(godot_nativescript_init+0xed) [0x7f51f0470e1d] (??:0)

I determined that the problem is in the godot_gdnative_init method where the program can not get nativescript_1_1_api because nativescript_api-> next returns 0.

Is it possible to solve this problem or I’m trying to run outdated examples?