-
-
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 #24 (report please). #54748
Comments
In general, I'd expect infinite chains of |
It happened again, this time is "Internal Script Error! - opcode #28 (report please).", but with the while(true) loop. Oh, and this is in the debug menu: " (Sorry, if it's in Spanish xd) I'm changing to timer nodes haha. |
The same thing is happening for me without any loop, only when running from the editor. When running from the command line it doesn't happen: func _ready():
animation_player.play("first")
# Some code
yield(animation_player, "animation_finished")
animation_player.queue("second")
# Some more code Backtrace:
|
I just realized that that backtrace is not very useful. This one is from a 3.5 build from sources:
|
So it seems for me the error is caused by enabling "Save on focus loss" on the editor settings. This causes the project to be saved once launched and then it crashes. That explains why running from the command line didn't crash the game either. |
Happens to me in Godot 4.1, when saving script while game is lunched. |
Godot version
v3.3.4.stable.official
System information
Windows 10, GLES3, Intel HD Graphics 2500
Issue description
Godot rarely prints the error: "Internal Script Error! - opcode #24 (report please)." and crashes the game, when you create a timer using yield(get_tree()) in a function and then recalling the function inside itself.
I call the function inside itself to make an infinity loop. Now I know that it crashes, so I replace it with a while(true) loop.
I couldn't find the same error at GitHub so I'm reporting it.
Steps to reproduce
This is my function, it seems to crash, I hope it isn't only in my project, but looks like yield(get_tree().create_timer(1), "timeout") has been causing similar errors. #42379 or #45224
I replaced the function with a while loop and nothing seems to append since.
"HOW TO:"
Create a script with this code inside:
"it crashes my game without the message, but It should work"
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: