godot icon indicating copy to clipboard operation
godot copied to clipboard

Godot 4.1 seems to crash after too print statements run

Open Milan21y opened this issue 2 years ago • 2 comments

Godot version

4.1

System information

Windows 10

Issue description

I had godot not respond after it printed out 25000 messages, not sure why

Steps to reproduce

Make a loop constantly print something and the game engine crashes at around the 25k mark

Minimal reproduction project

N/A

Milan21y avatar Jul 08 '23 17:07 Milan21y

Note* It didn't crash, but it seems to be unresponsive for a few minutes until it comes around Don't turn on hiding duplicate messages as one message

Milan21y avatar Jul 08 '23 17:07 Milan21y

Please provide a MRP. I used the following script:

extends Node

func _process(_delta: float) -> void:
    for i in 100:
        print("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor"
                + "incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis"
                + "nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. "
                + str(i))

To my surprise, the editor remained quite responsive. But when resizing the window, it took some time for the editor to become responsive again.

The main problem I see is RAM consumption. 50,000 messages consumed about 4 GiB of RAM. Maybe you just ran out of RAM? I also noticed that after clicking the Clear Output button, the memory was not freed.

dalexeev avatar Jul 10 '23 07:07 dalexeev

Closing due to lack of response, if you provide the information asked for or an MRP this can be reopened

AThousandShips avatar Sep 01 '23 12:09 AThousandShips