-
-
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
GDScript stack underflow while yielding to signals (regression from #28884) #30269
Comments
I am affected by "stack underflow" as well. For the record, here is the snippet in my project. It is similar to the "3D in 2D" demo (https://github.com/godotengine/godot-demo-projects/blob/master/viewport/3d_in_2d/3D_in_2D.gd#L22) func _ready():
# Assign the sprite's texture to the viewport texture
$Viewport.set_clear_mode(Viewport.CLEAR_MODE_ONLY_NEXT_FRAME)
# Let two frames pass to make sure the screen was captured
#yield(get_tree(), "idle_frame")
#yield(get_tree(), "idle_frame")
$viewport_sprite.texture = $Viewport.get_texture() |
I have a ton of yields in my project and it doesn't happen, hard to tell what's causing it. Also, you don't need to use |
@vnen i also have the same problem , i also have a lot of yields but for some reason some of them not causing the problem but others do |
I'm facing it too. |
I also seem affected by it. It happens when a yield should happen, indeed. (on current master at the time of writing, d897131) |
Also, refactor GDScriptFunctionState::_signal_callback, removing some excessive repetition. Fixes godotengine#30269.
I got the same "Stack Underflow (Engine Bug)" error message just now. I have multiple levels of Are too many nested yield complete things much for the engine or what is happening? :) I'm using freshly compiled godot from the master branch, that I just pulled like hour or two ago... |
@muchitto Please open a new issue report, with a sample project that reproduces it :). |
Ahh, okay sorry! :) |
Also, refactor GDScriptFunctionState::_signal_callback, removing some excessive repetition. Fixes godotengine#30269.
Godot version:
3.2-dev 4d99408
Regression from #28884.
OS/device including version:
Windows 10
Issue description:
While running GUT tests encountered this:
Steps to reproduce:
Now open the project, run main scene (default). Godot Test Window shall appear.
Select
res://test/unit/test_gut_yielding.gd
from the popup menu [...
] button:Press
Run
. Stalls on the first yield test (test_can_yield_using_built_in_timer
).The text was updated successfully, but these errors were encountered: