Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

Project Zomboid - Unable to Run

  • 411 Views
  • Last Post 18 January 2022
strange posted this 15 January 2022

Just tried to start a Project Zomboid instance, and I get Application State: Unable to run

I note there's a 'failed to create Java VM' in the console. I'm running several Minecraft instances, with Java 8, 11 and 17. I wondered if there was an issue with the PZ instance trying to use wrong version?

pzexe: using jvm "/mnt/ssd/home/amp/.ampdata/instances/ProjectZomboid01/project-zomboid/380870/jre64/lib/server/libjvm.so"
Unrecognized option: CustomJavaArgs
pzexe: looking for PZXInitThreads.so
Failed to create Java VM
XInitThreads.cpp: calling XInitThreads()
pzexe: libPZXInitThreads64.so loaded successfully.
pzexe: about to run java hack to locate libjvm.so...
pzexe: executing "java -classpath pzexe.jar -Djava.library.path=. zombie.pzexe"
pzexe.java: loading shared library "pzexe_jni64"
JVM=/mnt/ssd/home/amp/.ampdata/instances/ProjectZomboid01/project-zomboid/380870/jre64/lib/server/libjvm.so
pxexe: /proc/self/exe=/mnt/ssd/home/amp/.ampdata/instances/ProjectZomboid01/project-zomboid/380870/ProjectZomboid64
pzexe config file: /mnt/ssd/home/amp/.ampdata/instances/ProjectZomboid01/project-zomboid/380870/ProjectZomboid64.json
pzexe: mainClass: zombie/network/GameServer
pzexe: classpath: -Djava.class.path=java/.:java/istack-commons-runtime.jar:java/jassimp.jar:java/javacord-2.0.17-shaded.jar:java/javax.activation-api.jar:java/jaxb-api.jar:java/jaxb-runtime.jar:java/lwjgl.jar:java/lwjgl-natives-linux.jar:java/lwjgl-glfw.jar:java/lwjgl-glfw-natives-linux.jar:java/lwjgl-jemalloc.jar:java/lwjgl-jemalloc-natives-linux.jar:java/lwjgl-opengl.jar:java/lwjgl-opengl-natives-linux.jar:java/lwjgl_util.jar:java/sqlite-jdbc-3.27.2.1.jar:java/trove-3.0.3.jar:java/uncommons-maths-1.2.3.jar
pzexe: vmArg (json) 1: -Djava.awt.headless=true
pzexe: vmArg (json) 2: -Xmx8g
pzexe: vmArg (json) 3: -Dzomboid.steam=1
pzexe: vmArg (json) 4: -Dzomboid.znetlog=1
pzexe: vmArg (json) 5: -Djava.library.path=linux64/:natives/
pzexe: vmArg (json) 6: -Djava.security.egd=file:/dev/urandom
pzexe: vmArg (json) 7: -XX:+UseZGC
pzexe: vmArg (json) 8: -XX:-OmitStackTraceInFastThrow
pzexe: vmArg (args) 9: -Dzomboid.steam=1
pzexe: vmArg (args) 10: -Duser.home=./
pzexe: vmArg (args) 11: -Xmx4096m
pzexe: vmArg (args) 12: CustomJavaArgs
pzexe: using jvm "/mnt/ssd/home/amp/.ampdata/instances/ProjectZomboid01/project-zomboid/380870/jre64/lib/server/libjvm.so"

Order By: Standard | Newest | Votes
FluflerSky posted this 15 January 2022

Same probleme here. but i found a solution. keep in mind i have no clue of what iam doing but this following line sound off to me.

Unrecognized option: CustomJavaArgs

I check the File GenericModule.kvp of the instance it's use in the lunch command line but this variable declaration seem to be malformed ( remember, no clue... ) I remove the 3 instances of CustomJavaArgs and {{CustomJavaArgs}}, relunch the instance and the server lunch fine now.

I pretty sure i broke something. If anyone with any experience with amp config module can tell us how to fixe this the proper way, that will be nice, thanks.

myqe posted this 17 January 2022

i have the same error, anyone know more? all I did was create an instance and start it

18:33:11
Update state (0x101) committing, progress: 60.24 (1737196694 / 2883987965)
Success! App '380870' fully installed.
Console18:33:21
pzexe: mainClass: zombie/network/GameServer
pzexe: classpath: -Djava.class.path=java/.:java/istack-commons-runtime.jar:java/jassimp.jar:java/javacord-2.0.17-shaded.jar:java/javax.activation-api.jar:java/jaxb-api.jar:java/jaxb-runtime.jar:java/lwjgl.jar:java/lwjgl-natives-linux.jar:java/lwjgl-glfw.jar:java/lwjgl-glfw-natives-linux.jar:java/lwjgl-jemalloc.jar:java/lwjgl-jemalloc-natives-linux.jar:java/lwjgl-opengl.jar:java/lwjgl-opengl-natives-linux.jar:java/lwjgl_util.jar:java/sqlite-jdbc-3.27.2.1.jar:java/trove-3.0.3.jar:java/uncommons-maths-1.2.3.jar
pzexe: vmArg (json) 1: -Djava.awt.headless=true
pzexe: vmArg (json) 2: -Xmx8g
pzexe: vmArg (json) 3: -Dzomboid.steam=1
pzexe: vmArg (json) 4: -Dzomboid.znetlog=1
pzexe: vmArg (json) 5: -Djava.library.path=linux64/:natives/
pzexe: vmArg (json) 6: -Djava.security.egd=file:/dev/urandom
pzexe: vmArg (json) 7: -XX:+UseZGC
pzexe: vmArg (json) 8: -XX:-OmitStackTraceInFastThrow
pzexe: vmArg (args) 9: -Dzomboid.steam=1
pzexe: vmArg (args) 10: -Duser.home=./
pzexe: vmArg (args) 11: -Xmx4096m
pzexe: vmArg (args) 12: CustomJavaArgs
pzexe: using jvm "/AMP/project-zomboid/380870/jre64/lib/server/libjvm.so"
Unrecognized option: CustomJavaArgs
pzexe: looking for PZXInitThreads.so
Failed to create Java VM
pzexe: libPZXInitThreads64.so was not found. This is ok for a server, but multi-core rendering won't work on a client without it.
pzexe: about to run java hack to locate libjvm.so...
pzexe: executing "java -classpath pzexe.jar -Djava.library.path=. zombie.pzexe"
pzexe.java: loading shared library "pzexe_jni64"
JVM=/AMP/project-zomboid/380870/jre64/lib/server/libjvm.so
pxexe: /proc/self/exe=/AMP/project-zomboid/380870/ProjectZomboid64
pzexe config file: /AMP/project-zomboid/380870/ProjectZomboid64.json
pzexe: mainClass: zombie/network/GameServer
pzexe: classpath: -Djava.class.path=java/.:java/istack-commons-runtime.jar:java/jassimp.jar:java/javacord-2.0.17-shaded.jar:java/javax.activation-api.jar:java/jaxb-api.jar:java/jaxb-runtime.jar:java/lwjgl.jar:java/lwjgl-natives-linux.jar:java/lwjgl-glfw.jar:java/lwjgl-glfw-natives-linux.jar:java/lwjgl-jemalloc.jar:java/lwjgl-jemalloc-natives-linux.jar:java/lwjgl-opengl.jar:java/lwjgl-opengl-natives-linux.jar:java/lwjgl_util.jar:java/sqlite-jdbc-3.27.2.1.jar:java/trove-3.0.3.jar:java/uncommons-maths-1.2.3.jar
pzexe: vmArg (json) 1: -Djava.awt.headless=true
pzexe: vmArg (json) 2: -Xmx8g
pzexe: vmArg (json) 3: -Dzomboid.steam=1
pzexe: vmArg (json) 4: -Dzomboid.znetlog=1
pzexe: vmArg (json) 5: -Djava.library.path=linux64/:natives/
pzexe: vmArg (json) 6: -Djava.security.egd=file:/dev/urandom
pzexe: vmArg (json) 7: -XX:+UseZGC
pzexe: vmArg (json) 8: -XX:-OmitStackTraceInFastThrow
pzexe: vmArg (args) 9: -Dzomboid.steam=1
pzexe: vmArg (args) 10: -Duser.home=./
pzexe: vmArg (args) 11: -Xmx4096m
pzexe: vmArg (args) 12: CustomJavaArgs
pzexe: using jvm "/AMP/project-zomboid/380870/jre64/lib/server/libjvm.so"

FluflerSky posted this 18 January 2022

It not on you, there is a error in the base template config files of zomboid. Maybe it will be fixe next update dont know

it's a probleme with CustomJavaArgs, not in the GenericModule.kvp like a was thinking but in the configmanifest.json file.

github.com/CubeCoders/AMPTemplates/issues/42

Close