Jump to content
  • 0

Memory Leak


Pskov

Question

Within an hour of game play my memory usage is at 100% (32gb).  I know it is likely due to a mod but is there an easy way to figure out which one is causing the issue because by disabling them one at a time often you are unable to continue with the current game.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Check the console.txt file found in C:\Users\YourUserName\Zomboid for any errors.
Other than that, you should see the memory rise really fast if there is a leak, meaning disabling mods in groups would be the best way to check still.

Link to comment
Share on other sites

I am not getting the error box poping up during gameplay but this is the error from the console:

 

Callframe at: setTireRemoved
function: Tire -- file: Vehicles.lua line # 324

ERROR: General     , 1654249623551> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor360.invoke.
ERROR: General     , 1654249623551> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
    at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
    at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
    at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
    at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
    at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
    at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
    at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1842)
    at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:128)
    at zombie.vehicles.BaseVehicle.callLuaVoid(BaseVehicle.java:8792)
    at zombie.vehicles.BaseVehicle.initParts(BaseVehicle.java:1074)
    at zombie.vehicles.BaseVehicle.createPhysics(BaseVehicle.java:719)
    at zombie.vehicles.BaseVehicle.addToWorld(BaseVehicle.java:8256)
    at zombie.iso.IsoChunk.doLoadGridsquare(IsoChunk.java:3195)
    at zombie.iso.IsoChunkMap.update(IsoChunkMap.java:198)
    at zombie.iso.IsoCell.updateInternal(IsoCell.java:5707)
    at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
    at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
    at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
    at zombie.util.Lambda.capture(Lambda.java:130)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
    at zombie.iso.IsoCell.update(IsoCell.java:5668)
    at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3370)
    at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
    at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
    at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
    at zombie.util.Lambda.capture(Lambda.java:130)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
    at zombie.iso.IsoWorld.update(IsoWorld.java:3298)
    at zombie.gameStates.IngameState.updateInternal(IngameState.java:1653)
    at zombie.gameStates.IngameState.update(IngameState.java:1369)
    at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
    at zombie.GameWindow.logic(GameWindow.java:297)
    at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
    at zombie.GameWindow.frameStep(GameWindow.java:764)
    at zombie.GameWindow.run_ez(GameWindow.java:680)
    at zombie.GameWindow.mainThread(GameWindow.java:494)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: invalid wheel index
    at zombie.core.physics.Bullet.setTireRemoved(Native Method)
    at zombie.vehicles.BaseVehicle.setTireRemoved(BaseVehicle.java:8840)
    ... 45 more

memory leak.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...