Windows ArgumentNullException: Value cannot be null

Double G

Survivor
Version
V2.5 (b23)
Platform
Windows
This is from a game save that started on 2.5 (b18).
 
Reproduction Steps
I don't know how to reproduce it. I've never seen it before. It happened 4 hours into an 8 hour playthrough and it didn't happen again.

I was too elevated for the zombies to reach me so they were breaking their way into the two buildings around me in order to get to a position in which they can reach me.
Link to Logs
https://docs.google.com/document/d/12fMQ00ADe6Wgb7KmJcpow_Y0SJ1F6QBWOFuNw_Ek0Vg/edit?usp=sharing
Link to Screenshot/Video
https://www.youtube.com/live/maMO5pVEl5Y?si=n4WJq427axPZjALR&t=14415
Hi Double G,

I tried to repro this a couple of times without success. It looks as though you were using a modified version of 7 Days when it happened. Can you tell me if you have seen this since in the vanilla version of the game?

My best guess on repro is that one of the zombies may have hit a trigger block, causing the error. Any additional information to assist with a repro is appreciated.

From what I can tell you were near Pete's Outlet in the snow biome. There are several triggers located in Pete's. Did the zombies break any of the trigger blocks inside that location trying to get to you?

Thanks,
Dollie
 
The mods I had installed were 3 sound replacing mods, one for some of the gun shot and mining impact sounds, one to replace Joel's voice and one to replace Bobs voice.

A small POI remnant I built in the POI editor. (which was nowhere near the POI where the error occurred)

And my 2 zombie mod packs, which are basic zombies and do not require anything special like C# coding. They all copy attributes and spawning behavior of specific vanilla zombies...i.e. the Business Woman (including all variants) has the same attributes and behavior as the Business Man, etc.

The zombies were running in and out of both buildings and breaking things trying to get to me, so I'm sure they broke a trigger block. In fact, I fed the log into Chat GPT and it said that the error likely happened due to me or a zombie breaking a trigger block.

I apologize in advance, but I also asked Chat GPT how to advise on reproduction of the error. My instinct was to say "do exactly what I did during the playthrough" but it said:

Observed error: ArgumentNullException: Value cannot be null. Parameter name: key
Stack trace shows: TriggerManager.TriggerBlocks(...) called during QuestEventManager.BlockDestroyed(...), and the destroyed block goes through BlockTrapDoor.damageBlock(...) (so it’s a hatch/trapdoor-type block).

Repro approach:
  1. Load the POI shown in my video (same prefab).
  2. Enter far enough to activate the SleeperVolume shown in the log at approx (2450, 75, -85), which spawns sleeperHordeStageGS311.
  3. In that activated area, find any hatch/trapdoor block (anything using BlockTrapDoor).
  4. Force the hatch/trapdoor to take damage and be destroyed (zombie bashing or player destruction).
  5. On BlockDestroyed, the game throws the ArgumentNullException(key=null) from TriggerBlocks.

Note: I didn’t see which hatch broke—likely happened in another room/building—but the stack trace indicates it was a BlockTrapDoor-type block and the exception is triggered during block-destroy trigger processing.

Suggestion: Add a null/empty guard for the trigger key in TriggerManager.TriggerBlocks / Block.HandleTrigger so malformed trigger data can’t throw an exception during normal play.
 
Hi Double G,

So far this error does not appear to be a widespread issue. I have tried several times and in several ways to reproduce the error with little luck. I appreciate you bringing the error to our attention. We will keep our ears alert for any additional instances.

Thank you,
Dollie
 
Back
Top