SneezeRabbit Posted March 3 Share Posted March 3 I must first preference this by saying, this is less a bug and more me fucking around and now finding out. So recently I was messing around with some CurseForge Minecraft mods and Java stuff and apparently PZ was not appreciative since it must of added a limiter or something. I develop mods for a PZ server and trying to test them and I keep getting this error. Quote ERROR: General , 1709484728204> GameWindow.uncaughtException> Unhandled java.lang.OutOfMemoryError thrown by thread MainThread. ERROR: General , 1709484728205> ExceptionLogger.logException> Exception thrown java.lang.OutOfMemoryError: Java heap space at Arrays.copyOf. Message: Unhandled java.lang.OutOfMemoryError thrown by thread MainThread. ERROR: General , 1709484728205> DebugLogStream.printException> Stack trace: java.lang.OutOfMemoryError: Java heap space at java.base/java.util.Arrays.copyOf(Unknown Source) at java.base/java.util.ArrayList.grow(Unknown Source) at java.base/java.util.ArrayList.grow(Unknown Source) at java.base/java.util.ArrayList.add(Unknown Source) at java.base/java.util.ArrayList.add(Unknown Source) at zombie.scripting.ScriptParser.parseTokens(ScriptParser.java:303) at zombie.scripting.ScriptManager.ParseScript(ScriptManager.java:71) at zombie.scripting.ScriptManager.LoadFile(ScriptManager.java:147) at zombie.scripting.ScriptManager.Load(ScriptManager.java:758) at zombie.GameWindow.initShared(GameWindow.java:148) at zombie.GameWindow.init(GameWindow.java:1197) at zombie.GameWindow.mainThreadInit(GameWindow.java:576) at zombie.GameWindow.mainThread(GameWindow.java:489) at zombie.GameWindow$$Lambda$79/0x0000000800d08b40.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) LOG : General , 1709484728206> GameThread exited. F:\SteamLibrary\steamapps\common\ProjectZomboid>IF 0 NEQ 0 (".\jre64\bin\java.exe" -Djava.awt.headless=true -Dzomboid.steam=1 -Dzomboid.znetlog=1 -XX:-CreateCoredumpOnCrash -XX:-OmitStackTraceInFastThrow -Xmx3072m -Djava.library.path=./win64/;./ -cp commons-compress-1.18.jar;istack-commons-runtime.jar;jassimp.jar;javacord-2.0.17-shaded.jar;javax.activation-api.jar;jaxb-api.jar;jaxb-runtime.jar;lwjgl.jar;lwjgl-natives-windows.jar;lwjgl-glfw.jar;lwjgl-glfw-natives-windows.jar;lwjgl-jemalloc.jar;lwjgl-jemalloc-natives-windows.jar;lwjgl-opengl.jar;lwjgl-opengl-natives-windows.jar;lwjgl_util.jar;sqlite-jdbc-3.27.2.1.jar;trove-3.0.3.jar;uncommons-maths-1.2.3.jar;./ zombie.gameStates.MainScreenState -debug ) F:\SteamLibrary\steamapps\common\ProjectZomboid>PAUSE Press any key to continue . . . I attempted to try to find if it was in my Environment Variables but couldn't find any -Xmx I tried installing it onto another drive but since the workshop folder stays on the C:\ drive no success. It likely has to do some some funky pathing but I am not knowledgeable enough to know. I dislike asking advice as I personally like to try to figure this out on my own but I have a slight crunch time to finish my mod. I attached my console info and Environment Variables. If you have any ideas it is very welcomed. Thank ya'll! console.txt Link to comment Share on other sites More sharing options...
Beard Posted March 3 Share Posted March 3 I would first recommend reinstalling your Java. After that, do a full reinstall of the game as well. First, uninstall the game, then go to "Steam\steamapps\common\ProjectZomboid" and make sure there are no leftover files or folders there. After that, go to “C:\Users\YourUserName\Zomboid” and delete everything there except the “Saves” folder. Then just install the game again and see if that helps. SneezeRabbit 1 Link to comment Share on other sites More sharing options...
SneezeRabbit Posted March 3 Author Share Posted March 3 I will give that a try! Thank you, ill letcha know the results c: Link to comment Share on other sites More sharing options...
SneezeRabbit Posted March 3 Author Share Posted March 3 It seemed to of worked partly, though perhaps because Environment pathing, once I attempt to load my mod it runs this and is stalled. Quote ERROR: General , 1709492137765> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method). ERROR: General , 1709492137767> DebugLogStream.printException> Stack trace: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60) 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.pcallBoolean(KahluaThread.java:1924) at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104) at zombie.ui.UIElement.onMouseUp(UIElement.java:1228) at zombie.ui.UIElement.onMouseUp(UIElement.java:1183) at zombie.ui.UIElement.onMouseUp(UIElement.java:1183) at zombie.ui.UIManager.update(UIManager.java:816) at zombie.GameWindow.logic(GameWindow.java:262) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:667) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.OutOfMemoryError: Java heap space at java.base/java.util.Arrays.copyOf(Unknown Source) at java.base/java.util.ArrayList.grow(Unknown Source) at java.base/java.util.ArrayList.grow(Unknown Source) at java.base/java.util.ArrayList.add(Unknown Source) at java.base/java.util.ArrayList.add(Unknown Source) at zombie.scripting.ScriptParser.parseTokens(ScriptParser.java:303) at zombie.scripting.ScriptManager.ParseScript(ScriptManager.java:71) at zombie.scripting.ScriptManager.LoadFile(ScriptManager.java:147) at zombie.scripting.ScriptManager.Load(ScriptManager.java:758) at zombie.core.Core.ResetLua(Core.java:4159) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60) 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.pcallBoolean(KahluaThread.java:1924) at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104) at zombie.ui.UIElement.onMouseUp(UIElement.java:1228) at zombie.ui.UIElement.onMouseUp(UIElement.java:1183) at zombie.ui.UIElement.onMouseUp(UIElement.java:1183) at zombie.ui.UIManager.update(UIManager.java:816) at zombie.GameWindow.logic(GameWindow.java:262) at zombie.GameWindow$$Lambda$211/0x0000000800f3e200.run(Unknown Source) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:667) COMMAND QUEUE stallCount = 0 peakUsage = 5760 COMMAND QUEUE stallCount = 0 peakUsage = 7552 COMMAND QUEUE stallCount = 0 peakUsage = 7840 COMMAND QUEUE stallCount = 0 peakUsage = 7904 COMMAND QUEUE stallCount = 0 peakUsage = 7968 COMMAND QUEUE stallCount = 0 peakUsage = 8128 COMMAND QUEUE stallCount = 0 peakUsage = 8224 COMMAND QUEUE stallCount = 0 peakUsage = 8256 COMMAND QUEUE stallCount = 0 peakUsage = 8384 COMMAND QUEUE stallCount = 0 peakUsage = 8416 COMMAND QUEUE stallCount = 0 peakUsage = 8448 COMMAND QUEUE stallCount = 0 peakUsage = 8480 COMMAND QUEUE stallCount = 0 peakUsage = 8512 COMMAND QUEUE stallCount = 0 peakUsage = 8832 COMMAND QUEUE stallCount = 0 peakUsage = 9056 COMMAND QUEUE stallCount = 0 peakUsage = 9088 Link to comment Share on other sites More sharing options...
Beard Posted March 3 Share Posted March 3 That would generally indicate a problem or a memory leak with the mod, does this only happen with your mod? Link to comment Share on other sites More sharing options...
SneezeRabbit Posted March 3 Author Share Posted March 3 I do have some required mods with my mod. Let me mess around with them a bit. Odd there is a leak considering it's mainly models in my mod, but ah let me test it a bit. Link to comment Share on other sites More sharing options...
SneezeRabbit Posted March 3 Author Share Posted March 3 I messed with a few things in the normal PZ settings that seemed to decrease the memory leak, I also reverted to an earlier version of my mod, and so far so good. I will be honest I am not 100% sure how I did it but looks like I should be good. Thank you so much for your time! I apologize it was more a mod then an actual bug, I appreciate your assistance. Beard 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now