Godot 4.1 seems to crash after too print statements run
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
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
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.
Closing due to lack of response, if you provide the information asked for or an MRP this can be reopened