-
-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Index p_type_a = 2712273640 is out of bounds (Variant::VARIANT_MAX = 38) #861
Comments
Last time I had this error was because I compiled GodotCpp against a different version of the Godot API. I have no idea why Godot doesn't gracefully handle that, but maybe you should make sure the extension API is exactly matching the Godot version you are using. Are you using Godot 4 beta1 official build? If not, then it will likely fail. The GodotCpp repo is tracking beta1 (see the top of https://github.com/godotengine/godot-cpp/blob/master/godot-headers/extension_api.json). If everything matches, then perhaps recent changes made it diverge somehow. In which case, compiling Godot to generate |
I did compile to Godot 4 beta 1, but I'll try with custom api.json |
4.0 beta 1 is already too old for the master branch of this repo. This repo is always in sync with the master branch of Godot. For beta 1 you need to go back to the commit that says "sync headers with beta 1". |
@ash-hashtag have a look at this related issue. Just need to do what @akien-mga mentioned. The specific commit is listed in the following issue #845 |
just cloned the master repo at this commit
8670305
and tried to compile and run with gdextension example, compiled with no errors, but when opening the project in godot, this error gets thrown and crashes
but older commits work fine, the submodule used in actual gdextension works fine
this commit
https://github.com/godotengine/godot-cpp/tree/862d1f1fdd3201bb1e7bd27e941df2ea8adce3c7
The text was updated successfully, but these errors were encountered: