KyleRansford
Member
Hello, recently GMS has been showing System.OutOfMemoryExceptions for no apparent reason. This is on a completed game that I have not added any huge graphics to or adding anything memory intensive. At first I thought was the async gamepad functions since that's when the System.OutOfMemoryExceptions started. But, after commenting out all of the Async code, the error messages still appear. So, I thought it was than Windows Defender, so I turned off the Real Time protection and the error messages still appear.
I also have the GameMaker Studio 2 runtime in the Windows Defenders exceptions list along with basically any folder GameMaker Studio 2 is located in.
I don't know what's going on, as there's no apparent reason. When I look at the Task Manager for GMS2, it shows it's only using about 43% of RAM. I have 16GB of RAM. I only have 3 tabs open in Microsoft Edge and the texture page size that I have always used is 8192x8192 so I changed it to 4096x4096 then to 2048x2048 with it still showing errors.
These are the error messages GMS2 is showing:
"Error : out of Memory Error!" (With no context why)
"Error : Unable to create a bitmap of size (2048x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x2048) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (2048x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x2048) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (2048x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Failed writing textures out - clear asset cache and try again"
I've cleared the cache several times and stills shows error messages.
Sometimes it shows this error, which I don't believe I've ever had trouble with before:
############################################################################################
ERROR in
action number 1
of Create Event
for object BGM_music_player:
Memory allocation failed: Attempting to allocate 240663491 bytes
at gml_Object_BGM_music_player_Create_0 (line 4) - audio_group_load(BGM_Group);
############################################################################################
gml_Object_BGM_music_player_Create_0 (line 4)
I also have the GameMaker Studio 2 runtime in the Windows Defenders exceptions list along with basically any folder GameMaker Studio 2 is located in.
I don't know what's going on, as there's no apparent reason. When I look at the Task Manager for GMS2, it shows it's only using about 43% of RAM. I have 16GB of RAM. I only have 3 tabs open in Microsoft Edge and the texture page size that I have always used is 8192x8192 so I changed it to 4096x4096 then to 2048x2048 with it still showing errors.
These are the error messages GMS2 is showing:
"Error : out of Memory Error!" (With no context why)
"Error : Unable to create a bitmap of size (2048x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x2048) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (2048x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x2048) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (4096x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Unable to create a bitmap of size (2048x4096) - out of memory (System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Error : Failed writing textures out - clear asset cache and try again"
I've cleared the cache several times and stills shows error messages.
Sometimes it shows this error, which I don't believe I've ever had trouble with before:
############################################################################################
ERROR in
action number 1
of Create Event
for object BGM_music_player:
Memory allocation failed: Attempting to allocate 240663491 bytes
at gml_Object_BGM_music_player_Create_0 (line 4) - audio_group_load(BGM_Group);
############################################################################################
gml_Object_BGM_music_player_Create_0 (line 4)
Last edited: