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
Godot crashes after 1 Gb memory usage is reached #8279
Comments
No, this line. |
No, I'm referring to the question "Is there a way to get past this limitation?" |
The error is to be expected if Godot actually handles a memory limit. However that limit is too low for desktop computers :/ |
Should it be made into a build setting? |
Eventually, though I would expect it to work in editor too. Also I'm curious to know why there is a software-enforced memory limit? |
Ah, yes, I meant something like an export option, from the editor. I'm just guessing but maybe it's because an error message is better than platform-dependent behaviour. In Linux, malloc won't fail for example, and yet the process can crash when you try to access the memory. |
First of all thank you for your report and sorry for the delay. We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to. We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us. For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors. Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed. Thanks in advance. Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it. |
This issue happened before we find a bad leak in PoolVectors (#9204), so I assume that was the cause. Can't be sure though because I didn't test it with latest. |
@Zylann well I will close for now in such case. If you will find anything suspicious we will reopen. |
I don´t know how i arrive to this closed issue, but at 01/09/2018 the 1GB limitation (at least in editor) is still present. I let this for googling-githubing purposes. |
@Ranoller do you have a repro suite? |
I don´t have a shareable minimal project, only my game, but this 1GB crash is reproducible only doing preloads in any script, it´s not necessary play project, only writing preloads and look task manager, once 1GB editor will crash anywhere.... I say 1GB crash but it´s different in 32 and 64 bit versions and different if you crash editor or if you crash game in runtime: crashing godot appending to an array "0" in runtime allow to allocate 2GB in 64 bit and 512 MB in 32 bit... this test is old (the preload test it´s my project from 2.0 and my project from 3.0 and both crash, last test i did was 8 days ago (first link). I wil do a test for share because this issues are significant... |
There is the test: In my system (64bit) it´s until 2.2 GB of memory that godot crash. I didn´t test that in 32 because i don´t have in home any computer with 32 bit system and i´m in holidays. |
Ok, my test it´s wrong. I investigate the main cause of the 2,2GB of godot crash and i find that an app can´t allocate more that this amount in a single array in windows (windows limit)... so i did more test and godot allocate 4,6,8,10 GB if any array doesn´t have more that 2.2GB... so problems with preloads, etc... will be others that memory allocating.... I will actualize my test anyway to have a real example to test if godot can eat your entire memory without leave any crumbs. |
Got the same error on Godot 3.3.3 with Ubuntu 20.04 LTS during a navmesh baking (for large mesh). |
This is being tracked in #37154. |
Tested on af282b5
When running my voxel module, I reached 1 Gb of memory allocated by Godot. Then everytime, Godot crashes with this message:
Is there a way to get past this limitation? My computer has 4 Gb to spare, and I don't see an option to increase this limit.
Note: I didn't test in 2.x.
The text was updated successfully, but these errors were encountered: