Skip to content
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

Recent commit causes "GDExtension initialization function 'gdext_rust_init' returned an error" #706

Closed
sogon-human opened this issue May 8, 2024 · 1 comment

Comments

@sogon-human
Copy link

sogon-human commented May 8, 2024

I'm on macos (2020 M1) and It seems godot doesn't really happy with libraries produced starting from commit 24fd253 . The code will compile, dynamic library will be successfully built, but upon opening godot editor (after wiring up rust libraries and godot routine) we will be greeted with lovely error messages:

core/extension/gdextension.cpp:748 - GDExtension initialization function 'gdext_rust_init' returned an error.
Failed loading resource: res://rust.gdextension. Make sure resources have been imported by opening the project in the editor at least once.

Previous commit 3cab21e is still working fine. I don't know what the situations on windows and linux are.

Minimal Reproduction Steps

  1. Build 'Dodge the Creeps' example from this repo on macos with the latest commit (e43fdd3).

Expected Result

Extension will be successfully built and loaded.

Current Result

Extension will be built but Godot will refuse to load the extension with the errors above.

@sogon-human
Copy link
Author

my bad, I didn't think to check for godot update. Updating to latest stable will make the issue go away

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant