[Bug] Memory Leak?

This bug happens with my dedicated server.
I can no longer keep the server running after the latest bugs.

Environment: Debian Docker Container (Wine) - Pterodactyl Wings - Production branch (Not testlive)
What happens: After some time, could be a minute or two, or it could be a few hours, the server randomly runs out of memory. I can confirm the server has more than enough memory. This happens significantly faster on Siptah than on Exiled Lands but the result is exactly the same, it seems to run of memory while there is still memory available.

Below is a snippet of the end of the server’s log. I am also attaching the full log file, but that is the relevant section.
ConanSandbox.log (1.3 MB)


[2024.08.28-05.05.35:892][556]LogServerStats: Status report. Uptime=5519 Mem=187655942144:208941453312:18448474112:18448474112 CPU=38.477310:76.954620 Players=0 FPS=22.75:34.48:2578.42 NPC_AILOD=9:0:0:8604 B_AILOD=0:0:0:112 P_AILOD=0:0:0:1212
[2024.08.28-05.05.42:028][670]LogMemory:Warning: Freeing 33554432 bytes from backup pool to handle out of memory.
[2024.08.28-05.05.42:030][670]LogMemory:Warning: MemoryStats:
	AvailablePhysical 187640815616
	 AvailableVirtual 140719023816704
	     UsedPhysical 18506326016
	 PeakUsedPhysical 18506326016
	      UsedVirtual 18482266112
	  PeakUsedVirtual 18482266112
[2024.08.28-05.05.42:033][670]Allocator Stats for binned2 are not in this build set BINNED2_ALLOCATOR_STATS 1 in MallocBinned2.cpp
[2024.08.28-05.05.42:035][670]LogWindows: Windows GetLastError: Success. (0)
[2024.08.28-05.15.42:060][670]LogWindows:Error: === Critical error: ===
[2024.08.28-05.15.42:242][670]LogWindows:Error: 
[2024.08.28-05.15.42:244][670]LogWindows:Error: Fatal error: [File:C:\B\tech_exiles\code\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 171] 
[2024.08.28-05.15.42:246][670]LogWindows:Error: Ran out of memory in app state 'WorldPersistenceDone' allocating 65536 bytes with alignment 0
[2024.08.28-05.15.42:247][670]LogWindows:Error: 
[2024.08.28-05.15.42:248][670]LogWindows:Error: 
[2024.08.28-05.15.42:249][670]LogWindows:Error: 
[2024.08.28-05.15.42:257][670]LogExit: Executing StaticShutdownAfterError
[2024.08.28-05.15.42:548][670]LogPhysics:Error: PHYSX: (C:\REPO\Engine\Source\ThirdParty\PhysX\PhysX_3.4\Source\PhysX\src\NpScene.cpp 226) eINVALID_OPERATION : PxScene::release(): Scene is still being simulated! PxScene::fetchResults() is called implicitly.
[2024.08.28-05.15.43:463][670]LogWindows: FPlatformMisc::RequestExit(1)
[2024.08.28-05.15.43:464][670]Log file closed, 08/27/24 22:15:43

I would take a look at your modlist and see if there is any mods that are out of date by a few months or longer and try unloading them to see if it works. If that doesn’t work then try loading without mods and then adding them back one at a time.

Problem happens without mods too, just takes significantly longer for the problem to occur. When testing i started up Siptah as a example, and after an hour the server ran out of memory. Roughly same error as above.

Is that with a fresh database? If so you might try reinstalling the server software.

If possible you might consider trying it on another machine just to rule that out.

Problem happens with fresh DB, and also on at least two separate servers.

What Wine version are you running? There is an issue with newer versions that causes a memory leak with this game’s server software. I tried different versions until it solved a memory leak issue I was having, and for me 8.0.3 works.

Checking. I’ll update in a few minutes after I know what version is in the container. It should be the latest version.

The version running in the container is wine-9.0.

Try an older version going back until you find one without the memory leak issue on this server software. I can confirm I had the same issue on 9.0. I tried numerous and the one I ended up finding worked best for me was this Wine Proton 8.0.3.

Okay i’ll try. I’ll have to build a custom docker container to do so, but i will try a different version.

I had to remove the log in the previous post due to the rcon password being in the log. I forgot to remove it. Here’s the wine 9.0 crash on vanilla. I plan to test wine 8.0 and wine 9.16. For now this is looking like a base game memory leak or memory accounting error.

VanillaWine9.0Crash.log (1.8 MB)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.