-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
"Internal Script Error! - opcode #0 (report please)" when saving a script while a Timer is running in the project (due to live script reloading) #42379
Comments
So I randomly hit upon this error when I resized a Control and saved the scene while the project was running. I noticed that the error in question happened on a yield call and I was able to reproduce it.
extends Node
func _ready():
while true:
yield(get_tree().create_timer(1.0), "timeout")
print("blah")
I'm guessing it's a use-after-free. |
This comes back at 3.5 rc4. |
on 4.2.dev4 ...
the code is just...
|
I was able to reproduce this with a trivial example. Create a Sprite2D. Attach this script. The next time the time fires you'll get an error. I've found the error can vary. For me, I just got: ########### script extends Sprite2D func _ready(): func _process(delta): func doStuff(): |
same with me but error code is different. If necessary i open new issue post, sorry comments are in Portuguese-BR. error description in debugger:
Internal script error! Opcode: 101 (please report). Godot version: error occours in this script
|
This still happens in 4.2.1; it seems to happen whenever you create a timer with godot/modules/gdscript/gdscript_vm.cpp Line 2448 in b09f793
|
error description in debugger:
E 0:01:39.393 call: Condition ' (ip + 5) > _code_size ' is true. Breaking..:
<C++ Source> modules/gdscript/gdscript_function.cpp:447 @ call()
inimigo_ranged_1.gd:30 @ _on_cadencia_tiro_timeout()
Godot version:
3.2.1 stable_win64
OS/device including version:
MX150, GLES2
Issue description:
idk, im working in other script when my game simply crashed...
Steps to reproduce:
idk
Minimal reproduction project:
i will send a .txt with script that crashed (ps. im brazilian, almost whole the words of my variables and functions are in pt-br)
The text was updated successfully, but these errors were encountered: