Could not Allocate memory: System out of memory

Hey all, I had a Unity crash pop up just now about Running out of memory:


I saw this issue documented a few years ago as a Unity issue, and that is was supposedly fixed in all supported versions.

I wanted to verify if:

1.) This is a Unity Error (I can’t imagine it’s on my part, I’m not trying to save/load 11TB ever.)

  • If it is somehow my fault, maybe where I can look to in order to better diagnose this kind of issue?
    2.) If this is a fluke and I should expect to never see this again, or if this will happen more and more.

Thanks for any info,
-Snek

Call stack indicates an internal bug, apparently when drawing the Console panel. Maybe some crazy text gets logged and rendering it causes a problem. Always helps to list which Unity version you’re using.

Ahh thanks for the insight.

Version 2023.1.0b16

That’s a pretty old and super early 2023 version. Probably worth updating that project to something more current.

2 Likes

Could be these issues:
https://issuetracker.unity3d.com/issues/memory-leak-causing-editor-to-crash-on-unityeditor-dot-consolewindow-ongui-when-resizing-scene-or-game-view-windows-on-a-urp-project
https://issuetracker.unity3d.com/issues/regression-render-texture-memory-leak
The fixes were rolled out for 2023.2, but you generally want to get off the old tech stream releases as soon as possible as development ceases for them after a bit (as you can see, there wasn’t a backport to 2023.1 in this case), so I’d recommend to upgrade to Unity 6 Preview (6000.0.4f1) whenever convenient.

2 Likes

More so: when you are using a BETA version as in this case you are supposed to keep updating to every newer beta version every fortnight because you are TESTING the editor and REPORTING any bugs, but not using these beta versions for production use. :wink: