CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.96k stars 4.08k forks source link

Failed to read from "..." Expected a string, got null #74925

Closed meelock closed 3 days ago

meelock commented 5 days ago

Describe the bug

Occasionally my game gets a strange form of corruption where a map fails to load and gets regenerated with a different variant, destroying everything there. This has happened twice in two different games. The massive log is below.

Attach save file

!Rifle-trimmed.tar.gz

Steps to reproduce

  1. Load game
  2. Try to gateway using ] -> N to Home
  3. Home is corrupted.

Expected behavior

I would expect a proper loading of my home location.

Screenshots

No response

Versions and configuration

Additional context

Corruption.txt

meelock commented 5 days ago

May be a variant of https://github.com/CleverRaven/Cataclysm-DDA/issues/71859

Fosheze commented 5 days ago

/confirmed

I have been getting this error repeatedly. My game info is below. I'll see if I can replicate it with no mods in use later.

Fosheze commented 5 days ago

I just verified it with only DDA loaded. Steps to reproduce:

  1. Find and approach a bridge minefield. (it works with best with this map extra but I have seen it with other extras as well)
  2. Travel several overmap tiles away so the minefield unloads. (I just debug teleported around for a bit)
  3. Re-approach the initial bridge minefield on foot. (teleporting may trigger the error too but I didn't try it)
  4. Observe error mentioned above and the map extra being partially changed to a different one.
  5. If the map extra didn't change and no error was encountered then try repeating the above steps.
meelock commented 4 days ago

Secondary message that occurs after the first: DEBUG : submap (1266,-106,-1) was already loaded

FUNCTION : deserialize FILE : D:\a\Cataclysm-DDA\Cataclysm-DDA\src\mapbuffer.cpp LINE : 329 VERSION : bf080d9

Dragmire2 commented 4 days ago

I have also been getting this repeatedly in the last two days, across different saves. Usually at my base. After passing the error large chunks of my base will be gone.

Untitled1 Untitled2
meelock commented 3 days ago

Closed via https://github.com/CleverRaven/Cataclysm-DDA/commit/973f6a9b57d456fb97e9070391940ffeb762de66