Skip to content
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

No print to Output panel in infinite loop #22184

Closed
akien-mga opened this issue Sep 17, 2018 · 4 comments
Closed

No print to Output panel in infinite loop #22184

akien-mga opened this issue Sep 17, 2018 · 4 comments

Comments

@akien-mga
Copy link
Member

Rephrasing issue #1287 which has become hard to read given the various other debugging issues which have been raised (and fixed) there.

Godot version:
All up to current master branch (ebd14a7).

OS/device including version:
Linux, likely other OSes too.

Issue description:
When using a print statement in an infinite loop, nothing will be printed to the Output panel. There are however prints to the system console/stdout.

Steps to reproduce:
Run a script with:

func _ready():
    var i = 0
    while true:
        i += 1
        print(i)

No text in Output panel. Terminal shows:

1
2
3
...
281694
281695
281696
281697
...
@DeuxAlpha
Copy link

DeuxAlpha commented Sep 21, 2018

Reproducible on Windows 10. Also, the type of loop does not matter, for and while-loop provide the same behavior.

EDIT:
Forgot to mention: If the loop breaks, the output-panel displays numbers up to a certain number in this manner:

[more numbers above]
6122
6123
6124
6125
6126[...]
[output overflow, print less text!]

The number where output overflow occurs seems arbitrary, and does not occur every time (might be worth opening another issue about, just thought I'd mention it)

@rogeriodec
Copy link

rogeriodec commented Mar 14, 2019

Same here...
Godot 3.1 official
Windows 10 x64

.
.
.
********pos_atu_eixo: -0.961239, meio eixo:1.698761
********pos_atu_eixo: -1.241239, meio eixo:1.698761
********pos_atu_eixo: -1.521239, meio eixo:1.698761
********pos_atu_eixo: -1.801239, meio eixo:1.698761
-----angulo_atu: -109.571818
********pos_atu_eixo: -1.801239, meio eixo:1.698761
-----angulo_atu: -163.047879
********pos_atu_eixo: -1.801239[...]
[output overflow, print less text!

How to solve this?

@KoBeWi
Copy link
Member

KoBeWi commented Jun 19, 2020

Seems to be fixed since at least 3.1.2.

@KoBeWi KoBeWi closed this as completed Jun 19, 2020
@KoBeWi KoBeWi modified the milestones: 2.1, 3.1 Jun 19, 2020
@Gameoholic
Copy link

Same issue is present in version 3.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants