Console tab causing Unity to crash

When I press the play button with the console tab showing, Unity freezes and I have to close it through the Task Manager. If I close the console tab, everything goes smooth. Debugging without the console is a pain, so I need to discover why it’s happening.

It happens on Unity 4.5.2, 4.6.9 and has already happened on previous versions.

Anyone has any ideas?

Are you for some reason printing something in every frame of a really big loop?

If you have something like this

foreach(var element in someLargeCollection) {
    Debug.Log("the element is: " + element.name);
    ... //do something
}

and the collection has fairly many elements (thousands), that will take a really long time. Printing to console is one of the slowest things you can do - I’m not quite sure why, and it’d take a long time to go into the details, but trust me on this. If you try to do ~15-20 in every Update, you’ll start noticing it as a severe fps loss. If you’re doing many thousands, the game will hang. If you for some reason are doing many thousands, it might seems like Unity has crashed, while it’s furiously writing things one by one to your console.

Thanks for the reply, Baste.

What I’m doing with the console could be considered somewhat intense, but nothing compared to a print per frame.

Moreover, while I’ve seen it happen to Unity 4.5.2, it was running smoothly with console when it was updated to 4.6.9.

4.6.9 dont exist bro, u smoking?