-
-
Notifications
You must be signed in to change notification settings - Fork 224
Panic when using ThemeDb theme inside ScriptLanguageExtension #462
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
Comments
what happens if you run with do |
Here's the full trace. I poked at the source a bit, but it seems like all the important parts are in the "" sections from 9-16 😭
|
Thanks for reporting. From afar, this looks like a similar problem to #338: too eager borrowing. I think we can try to reproduce it in an |
Should be handled by #671. |
The following extension code panics as soon as godot loads:
the error:
Some notes from my investigation:
ScriptLanguageExtension
callback with a &mut self signature. It does not happen in callbacks with a &self signature, and it does not happen in callbacks from other Godot classes (I tested it in a LanguageScript callback with a &mut self signature and it worked fine)ThemeDb
. If I create a theme locally viaTheme::new()
,set_icon
does not panic.The text was updated successfully, but these errors were encountered: