Project Zomboid

Project Zomboid

Amarga Jan 20, 2023 @ 8:58am
Weird Out Of Memory (1285) crash happening every 1-2 hours
Hi, i've been having this weird issue since i updated my RAM where the game will randomly crash, looking at the logs this is what i found:

{ pos: -1,-1 size: -1,-1 mask:Texture{ name:"F:\Steam\steamapps\common\ProjectZomboid\media\textures\BloodTextures\BloodMaskNeck.png", w:256, h:256 } tex:Texture{ name:"F:\Steam\steamapps\common\ProjectZomboid\media\textures\BloodTextures\GrimeOverlay.png", w:256, h:256 } blendSrc:774 blendDest:771 blendSrcA:772 blendDestA:771 shader:zombie.core.opengl.SmartShader@24269709 shaderParams:{zombie.core.textures.TextureCombinerShaderParam@7a8c8dcf} }}. [20-01-23 13:50:29.993] ERROR: General , 1674233429993> 14.129.570> SmartTexture.calculate> . [20-01-23 13:50:29.994] ERROR: General , 1674233429994> 14.129.570> SmartTexture.calculate> Stack trace: . [20-01-23 13:50:29.994] ERROR: General , 1674233429994> 14.129.571> RenderThread.logGLException> OpenGLException thrown: GL Error code (1285) encountered. Error translation: Out of memory (1285) While performing: FBO.startDrawing zombie.core.textures.TextureFBO@5b12b668. [20-01-23 13:50:30.010] ERROR: General , 1674233430010> 14.129.587> ExceptionLogger.logException> Exception thrown org.lwjglx.opengl.OpenGLException: GL Error code (1285) encountered. Error translation: Out of memory (1285) While performing: FBO.startDrawing zombie.core.textures.TextureFBO@5b12b668 at PZGLUtil.checkGLErrorThrow line:23.. [20-01-23 13:50:30.011] ERROR: General , 1674233430011> 14.129.587> DebugLogStream.printException> Stack trace:. [20-01-23 13:50:30.026] ERROR: General , 1674233430026> 14.129.602> SmartTexture.calculate> This SmartTexture will no longer be valid..

I already tried giving more RAM memory to the game on ProjectZomboid64.bat, i also tried disabling the Radeon overlay, turning graphics down, etc..
Ocasionally i also get a Stack Overflow (1283 iirc) buti can't exactly pinpoint where this is coming from, can anyone help me please? I'm kinda desperate since my friends depend on me hosting the world lol.
< >
Showing 1-9 of 9 comments
Amarga Jan 20, 2023 @ 12:44pm 
Huh that's really weird, i'm using a RX 570 4GB, i'll try turning the graphics down next time.
Amarga Jan 20, 2023 @ 1:05pm 
So i had another crash but this time the error line was a different one:
[20-01-23 17:07:47.945] ERROR: General , 1674245267945> 25.967.521> SmartTexture.calculate> . [20-01-23 17:07:47.945] ERROR: General , 1674245267945> 25.967.521> SmartTexture.calculate> Stack trace: . [20-01-23 17:07:47.945] ERROR: General , 1674245267945> 25.967.521> RenderThread.logGLException> OpenGLException thrown: GL Error code (1286) encountered. Error translation: Invalid framebuffer operation (1286)

It's 1286 instead of 1285, i'm still going to try to tune down the graphics.
Amarga Jan 20, 2023 @ 2:22pm 
The monitor is indeed plugged into the GPU, in any case iirc i disabled the integrated graphics from the motherboard.

It's really weird because i played PZ this whole year and i never had any issue, my mod list hasn't really increased besides one or two small mods.

I was thinking maybe the issue is on the GPU's drivers, last version gave me a lot of blue screens while playing so i downgraded to an older one from 2022 and since then i've been having this crashes. I'll report back if i find anything new.
Amarga Jan 20, 2023 @ 2:45pm 
So umm sorry for causing so much issues, i looked the java crash logs on the PZ folder on steamapps and found two different errors:
# # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 1431856 bytes for Chunk::new # Possible reasons: # The system is out of physical RAM or swap space # The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap # Possible solutions: # Reduce memory load on the system # Increase physical memory or swap space # Check if swap backing store is full # Decrease Java heap size (-Xmx/-Xms) # Decrease number of Java threads # Decrease Java thread stack sizes (-Xss) # Set larger code cache with -XX:ReservedCodeCacheSize= # JVM is running with Zero Based Compressed Oops mode in which the Java heap is # placed in the first 32GB address space. The Java Heap base address is the # maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress # to set the Java Heap base and to place the Java Heap above 32GB virtual address. # This output file may be truncated or incomplete. # # Out of Memory Error (arena.cpp:189), pid=6348, tid=7656
And
# A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff9a1866ae6, pid=2336, tid=5276 # # JRE version: OpenJDK Runtime Environment Zulu17.30+15-CA (17.0.1+12) (build 17.0.1+12-LTS) # Java VM: OpenJDK 64-Bit Server VM Zulu17.30+15-CA (17.0.1+12-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) # Problematic frame: # C [atio6axx.dll+0x1716ae6] # # CreateCoredumpOnCrash turned off, no core file dumped # # If you would like to submit a bug report, please visit: # http://www.azul.com/support/ # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug.

It mentions not enough physical RAM which is odd since less than one month ago i upgraded from 8 GB to 16 GB so this shouldn't happen. About the second error, i have no idea tbh.
Amarga Jan 20, 2023 @ 3:30pm 
1. Done. I verified the game files and set back the value to the original 3GB

2. Not really since i reinstalled Windows 10 not too long ago because of my motherboard upgrade. It's set on automatic and on a large amount (14.5 GB iirc)

3. The RAMs are from the same manufacturer and i'm pretty sure are installed on their right place. Just for precaution i started a memory diagnostic but it came back with no problems.

4. I checked on the program and the only remarkable thing is that i have 9.4 GB on stand-by from my 16 GB, and only 1GB free. Could this have anything to do?
Amarga Jan 20, 2023 @ 4:06pm 
Alright, i'll continue my server tonight and i'll let you know tomorrow the results, thank you so much for taking the time to answer.
naxuy 102 Mar 10, 2024 @ 11:42am 
hey, my friend got problem when she connect to my server, and i think urs problems are similar.
idk what we can do to fix it, but maybe u know..?
https://imgur.com/a/s4AMBGK - screen of last log
Amarga Mar 10, 2024 @ 12:46pm 
Hey Naxuy, does your friend got an AMD gpu by any chance? In my case i had to downgrade the drivers version since it seemed to be the culprit of the crashes. If that's not the case i'm afraid i don't really know of any other solution.
naxuy 102 Mar 11, 2024 @ 2:56am 
Originally posted by Amarga:
Hey Naxuy, does your friend got an AMD gpu by any chance? In my case i had to downgrade the drivers version since it seemed to be the culprit of the crashes. If that's not the case i'm afraid i don't really know of any other solution.
Bro, thanks for responding promptly enough, it's valuable. She has an amd Athlon Silver 3050U laptop with Radeon Graphics. Accordingly, she has a built-in graphics card, everything used to work great for us. This week I'm thinking of adding another 8GB of RAM to her laptop ( now only 4GB) and I hope this helps
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Jan 20, 2023 @ 8:58am
Posts: 9