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

godot endlessly prompting to restart #722

Closed
backwardspy opened this issue May 23, 2024 · 5 comments
Closed

godot endlessly prompting to restart #722

backwardspy opened this issue May 23, 2024 · 5 comments
Labels
question Not a problem with the library, but a question regarding usage.

Comments

@backwardspy
Copy link

i followed the hello world section of the godot rust book and it's all working as expected. there is just one issue i'm running into.

when i open my project in godot, i get this popup:
image

i can click continue and run my game, and everything works properly. however every time i re-focus the godot window, the message comes back. if i instead click save & restart, godot restarts and immediately prompts me to restart it again. this goes on endlessly.

info from the "output" tab:

Godot Engine v4.2.2.stable.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started ---
--- GDScript language server started on port 6005 ---
hello from rust
  core/extension/gdextension.cpp:778 - Parameter "library" is null.
hello from rust
  core/extension/gdextension.cpp:778 - Parameter "library" is null.
  core/extension/gdextension.cpp:778 - Parameter "library" is null.
  core/extension/gdextension.cpp:778 - Parameter "library" is null.
  core/extension/gdextension.cpp:778 - Parameter "library" is null.

"hello from rust" is from my code. the other message repeats every time i choose continue.

i've searched through other issues and i haven't been able to find anything that solves this. i've tried changing the reloadable property in my gdextension file but that made no difference.

additional info:
platform: windows 11
godot version: v4.2.2.stable.official [15073afe3]
rust version: rustc 1.78.0 (9b00956e5 2024-04-29)

please let me know if there's anything else i can provide. thanks for the awesome project!

@Bromeon
Copy link
Member

Bromeon commented May 23, 2024

Very strange, I haven't seen this yet.

If you clone this repo, build the dodge-the-creeps example (cargo build -p dodge-the-creeps) and open the editor from that folder (godot4 --path examples/dodge-the-creeps/godot)... does the issue also appear?

@backwardspy
Copy link
Author

If you clone this repo, build the dodge-the-creeps example (cargo build -p dodge-the-creeps) and open the editor from that folder (godot4 --path examples/dodge-the-creeps/godot)... does the issue also appear?

strangely, no! i also don't see that parameter "library" is null message in the output. i'll play around some more with both projects and try to figure out what's happening.

@backwardspy
Copy link
Author

well, i couldn't figure out the difference so i took the drastic step of recreating the project from scratch. this seems to have completely cleared the problem up, i can no longer replicate it.

i have to imagine that something about the order in which i created the project while having godot open in the background messed something up, though i can't think what it might have been.

appreciate your speedy response, i'll close this for now and comment back if the issue returns.

@Bromeon
Copy link
Member

Bromeon commented May 23, 2024

Make sure to use version control (git) and check in the project files, also for Godot -- that way, it's easier to detect accidental changes and revert to known good states.

Glad to hear a fresh project solved it!

@Bromeon Bromeon added the question Not a problem with the library, but a question regarding usage. label May 23, 2024
@backwardspy
Copy link
Author

yeah i definitely should have done :) thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a problem with the library, but a question regarding usage.
Projects
None yet
Development

No branches or pull requests

2 participants