Editor crashes while loading gdextension · Issue #26 · godot-rust/gdext (original) (raw)
I'm trying to get a basic Hello World sort of extension running, but I'm getting this error when launching my project from 4.0.beta5.official.89a33d28f
.
Initialize GDExtension interface: Godot Engine v4.0.beta5.official
ERROR: Index p_constructor = 6 is out of bounds ((int)construct_data[p_type].size() = 6).
at: get_ptr_constructor (core/variant/variant_construct.cpp:298)
thread '<unnamed>' panicked at 'failed to load GDExtension function `quaternion_from_euler_yxz`', /home/fp/.cargo/git/checkouts/gdextension-25c68fb170a9fb9d/522dda7/godot-ffi/../target/godot-gen/sys/central.rs:1:54858
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
I do not get this error with the same project on godot 4.0.beta.custom_build.01ae26d31
(the same commit as beta 4). However, this build doesn't seem to actually load the extension.
I have the same <extension>.gdextension
, extension_list.cfg
, and lib.rs
with the exception of different names for the stuff that's mine and I've flattened the project structure so there's no godot/
or rust
folders, e.g. cargo.toml
and godot.project
are in the same directory. I've changed all the relevant paths in the previously mentioned files to reflect this.
I reckon I must be doing something wrong, but as far as I can see from the instructions, I can't find what.