Startup Issue with tModLoader - xception of type 'System.OutOfMemoryException'

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Callisto’ v2.5.1.8 (Mainline)
Virtualization Docker
Application tModLoader
Module GenericModule
Running in Container Yes
Current State Stopped

Problem Description

Issue

(Its using only 0.41 from the 7.7gb that we have) and i cant find the settings to change that and its not bcs of the mods

Reproduction Steps

  • loading mods into the mod file
  • Starting the server
  • Error xception of type ‘System.OutOfMemoryException’
    *[17:00:52.941] [Main Thread/WARN] [tML]: Total system memory usage exceeds installed physical memory, tModLoader will likely experience performance issues due to frequent page file access.
    [17:00:54.334] [.NET TP Worker/INFO] [Terraria]: Generating World: IdiotBox
    [17:00:54.342] [Main Thread/INFO] [StatusText]: 0.0% - - 0.
    [17:00:54.342] [Main Thread/INFO] [StatusText]: 0.0% - Generating world terrain - 0.
    [17:00:54.567] [.NET TP Worker/INFO] [tML]: tModLoader RAM usage during OutOfMemoryException: 389.1 MB
    [17:00:54.573] [.NET TP Worker/WARN] [tML]: Silently Caught Exception:
    System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown.
    at Terraria.TileData1.SetLength(UInt32 len) at Terraria.TileData1…cctor()
    at Terraria.TileData`1.get_ptr()
    at Terraria.Tile.set_HasTile(Boolean value)
    at Terraria.Tile.active(Boolean active)
    at Terraria.GameContent.Biomes.TerrainPass.FillColumn(Int32 x, Double worldSurface, Double rockLayer)
    at Terraria.GameContent.Biomes.TerrainPass.ApplyPass(GenerationProgress progress, GameConfiguration configuration)
    at Terraria.WorldBuilding.GenPass.Apply(GenerationProgress progress, GameConfiguration configuration)
    at Terraria.WorldBuilding.WorldGenerator.GenerateWorld(GenerationProgress progress)
    at Terraria.WorldGen.GenerateWorld_RunTasksAndFinish(Int32 seed, Stopwatch generationStopwatch, GenerationProgress customProgressObject)
    at Terraria.WorldGen.GenerateWorld(Int32 seed, GenerationProgress customProgressObject)
    at Terraria.IO.WorldFile.LoadWorld(Boolean loadFromCloud)
    at Terraria.WorldGen.serverLoadWorldCallBack()
    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

[17:00:54.574] [.NET TP Worker/FATAL] [tML]: Game ran out of memory. You’ll have to find which mod is consuming lots of memory, and contact the devs or remove it.

There’s a bug with the docker image currently, best bet might be to run it without docker till there’s a fix

Omfg Thx mate
You cant imagine how long i struggled to find something
its working without docker

The fix is known. Just needs Mike to spend 5 minutes to implement it.

In the meantime for tmodloader you can use greelan/amp:ubuntu as a custom image if you want to use docker

i have the same issue but im not using docker. using amp 2.6

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