You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 SUPER (NVIDIA; 32.0.15.6636) - 13th Gen Intel(R) Core(TM) i5-13600KF (20 Threads)
Issue description
Whenever I edit a autoload script loaded by a plugin (like adding a print statement) while the game is running and I hit ctrl+s, the engine seems to break. This only happens if I create an await for a timer to timeout (see script below) and the script is an autoload. Here are a few of the errors that have happened:
Internal script error! Opcode: 0 (please report)
Stack Underflow (Engine Bug)
Game just crashes with no debug after a few seconds.
Bad address index (stack frames show one frame with this broken text: "0 - :21 - at function: ").
Invalid assignment of property or key " with value of type 'Node2D (script.gd)' on a base object of type 'Node2D (script.gd)'.
Yes I know this bug is extremely specific but it's still weird, plus one of the errors says please report.
Steps to reproduce
Create a plugin.
Create a new script in the plugins folder (the autoload) and put this script in there:
@tool
extends EditorPlugin
func _enter_tree() -> void:
# Initialization of the plugin goes here.
pass
func _enable_plugin() -> void:
add_autoload_singleton("test", "path-to-autoload")
func _disable_plugin() -> void:
remove_autoload_singleton("test")
func _exit_tree() -> void:
# Clean-up of the plugin goes here.
pass
Run the game (with a basic scene with just a Node2D or something in it)
Delete the print statement and save the script.
Something bad will probably happen.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered:
carsonetb
changed the title
Saving a autoload script while the game is running and the await keyword was used causes a plethora of engine errors.
Saving a plugin while the game is running and the await keyword was used causes a plethora of engine errors.
Jan 3, 2025
Yeah it's related but I don't think it's exactly the same ... this error is caused by changing any code at all, even a print statement in a function that isn't run, while a timer is running.
Tested versions
Tested in 4.3.stable
System information
Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 SUPER (NVIDIA; 32.0.15.6636) - 13th Gen Intel(R) Core(TM) i5-13600KF (20 Threads)
Issue description
Whenever I edit a autoload script loaded by a plugin (like adding a print statement) while the game is running and I hit ctrl+s, the engine seems to break. This only happens if I create an await for a timer to timeout (see script below) and the script is an autoload. Here are a few of the errors that have happened:
Yes I know this bug is extremely specific but it's still weird, plus one of the errors says please report.
Steps to reproduce
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: