42.7.0
NO MODS
I think I have gotten this same error when I've been spawning in modded vehicles. I think this has something to do with the game trying to spawn in too many vehicles at a time.
Either spam the spawn button or run around the map with quick move on a fresh save. I don't know how to go about testing this in Non-Debug mode.
[21-04-25 19:28:32.042] ERROR: General f:9052, t:1745252912042> ExceptionLogger.logException> Exception thrown
org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_PRIMARYKEY] A PRIMARY KEY constraint failed (UNIQUE constraint failed: vehicles.id) at DB.newSQLException(DB.java:1179).
Stack trace:
org.sqlite.core.DB.newSQLException(DB.java:1179)
org.sqlite.core.DB.newSQLException(DB.java:1190)
org.sqlite.core.DB.execute(DB.java:985)
org.sqlite.core.DB.executeUpdate(DB.java:1054)
org.sqlite.jdbc3.JDBC3PreparedStatement.lambda$executeLargeUpdate$2(JDBC3PreparedStatement.java:129)
org.sqlite.jdbc3.JDBC3Statement.withConnectionTimeout(JDBC3Statement.java:458)
org.sqlite.jdbc3.JDBC3PreparedStatement.executeLargeUpdate(JDBC3PreparedStatement.java:124)
org.sqlite.jdbc3.JDBC3PreparedStatement.executeUpdate(JDBC3PreparedStatement.java:105)
zombie.vehicles.VehiclesDB2$SQLStore.addToDB(VehiclesDB2.java:335)
zombie.vehicles.VehiclesDB2$SQLStore.updateVehicle(VehiclesDB2.java:300)
zombie.vehicles.VehiclesDB2$WorldStreamerThread.unloadChunk(VehiclesDB2.java:704)
zombie.vehicles.VehiclesDB2.unloadChunk(VehiclesDB2.java:1136)
zombie.iso.IsoChunk.Save(IsoChunk.java:5982)
zombie.iso.ChunkSaveWorker.AddHotSave(ChunkSaveWorker.java:195)
zombie.iso.IsoChunkMap.updateInternal(IsoChunkMap.java:285)
zombie.iso.IsoChunkMap.update(IsoChunkMap.java:206)
zombie.iso.IsoCell.updateInternal(IsoCell.java:5943)
zombie.iso.IsoCell.update(IsoCell.java:5900)
zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4158)
zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4278)
zombie.iso.IsoWorld.update(IsoWorld.java:4192)
zombie.gameStates.IngameState.updateInternal(IngameState.java:1811)
zombie.gameStates.IngameState.update(IngameState.java:1507)
zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
zombie.GameWindow.logic(GameWindow.java:388)
zombie.GameWindow.frameStep(GameWindow.java:928)
zombie.GameWindow.run_ez(GameWindow.java:821)
zombie.GameWindow.mainThread(GameWindow.java:619)
java.base/java.lang.Thread.run(Unknown Source)
There do not seem to be any specific issue in this log, so can you instead share the "hs_err_pid" file found in the main game install folder? It should be located in the ProjectZomboid.app folder.
I just spent the weekend testing this and you are right. The nutrition system definitely needs an overhaul. The extended periods of inactivity required to halt weight loss and possibly gain back a kilo or two are disastrous. Not only do you miss out on the productivity from the downtime (perhaps made up a little by reading skill books) but the game has built-in punishments for inactivity.
I would like to ask the devs what the thought process is with the current system? Is there some underlying issue that prevents a simple daily calories in less calories out calculation? This could easily be adapted with protein, fat and carb requirements and penalties for not achieving them.
This can be major bummer in the long-term.
I can only suggest you test your mods in groups, or disable half of them and see if the error persists. Repeat removing them by half until the error stops, this way you will know which mod causes the issue.