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

Hot reloading Panics in Godot #922

Closed
jgunzelman88 opened this issue Oct 18, 2024 · 3 comments
Closed

Hot reloading Panics in Godot #922

jgunzelman88 opened this issue Oct 18, 2024 · 3 comments
Labels
status: duplicate This issue or pull request already exists

Comments

@jgunzelman88
Copy link

Every time I compile I get the following error requiring me to restart godot.

/Users/<>/.cargo/git/checkouts/gdext-76630c89719e160c/8ad9cb0/godot-core/src/private.rs:393 - Rust function panicked at /Users/<>/.cargo/git/checkouts/gdext-76630c89719e160c/8ad9cb0/godot-core/src/meta/class_name.rs:216. Context: failed to initialize GDExtension levelScene/Users/jgunzelman/.cargo/git/checkouts/gdext-76630c89719e160c/8ad9cb0/godot-core/src/private.rs:407 - [panic] index out of bounds: the len is 0 but the index is 1 /Users/<>/.cargo/git/checkouts/gdext-76630c89719e160c/8ad9cb0/godot-core/src/private.rs:393 - Rust function panicked at /Users/<>/.cargo/git/checkouts/gdext-76630c89719e160c/8ad9cb0/godot-core/src/registry/class.rs:219. Context: failed to initialize GDExtension levelEditor`
/Users/<>/.cargo/git/checkouts/gdext-76630c89719e160c/8ad9cb0/godot-core/src/private.rs:407 - [panic] global lock for loaded classes poisoned; class registration or deregistration may have panicked

`

@Bromeon
Copy link
Member

Bromeon commented Oct 18, 2024

Duplicate of #871?

Is your dynamic library not properly unloaded?

@jgunzelman88
Copy link
Author

jgunzelman88 commented Oct 18, 2024

It is a duplicate of 871 sorry I am reading it now. So do I have to remove it from the project folder for hot reloading to work? It was working before in 4.2 ever since I switched to 4.3 it hasn't worked.

@jgunzelman88
Copy link
Author

So I just tested on my windows machine. And I don't see this issue ..... So it might be a MacOS issue.

@Bromeon Bromeon closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@Bromeon Bromeon added the status: duplicate This issue or pull request already exists label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants