# Some bug upon crash

**URL:** <https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037>\
**Category:** The Garage\
**Created:** [August 10, 2019, 7:23pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037 "2019-08-10T19:23:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazykiddeath](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/crazykiddeath/32/5709_2.png) [@crazykiddeath](https://discourse.cataclysmdda.org/u/crazykiddeath)\
**Post date:** [August 10, 2019, 7:23pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/1 "2019-08-10T19:23:25Z")

</div>

![bugged%2001](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/e/e79f91cf69036a2d4cd798fd856720b266ed6c84.png)

Some weird bug that happens sometimes when I save the game.  
The game will save the location you save at, the map memory and revelled map is still there but the area is re-generated (so your memory is wrong) and any items you’ve picked up (that you then put down, stuff in your inventory is unaffected)/vehicles you get disappear.

It seems to have deleted my NPC too.

---

<div class="post-metadata">

**Author:** ![sztosz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/sztosz/32/1212_2.png) [@sztosz](https://discourse.cataclysmdda.org/u/sztosz)\
**Post date:** [August 10, 2019, 7:59pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/2 "2019-08-10T19:59:36Z")

</div>

Can you post `config/crash.log` from you CDDA folder?

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [August 10, 2019, 8:34pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/3 "2019-08-10T20:34:28Z")

</div>

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/33051>

---

<div class="post-metadata">

**Author:** ![crazykiddeath](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/crazykiddeath/32/5709_2.png) [@crazykiddeath](https://discourse.cataclysmdda.org/u/crazykiddeath)\
**Post date:** [August 10, 2019, 9:01pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/4 "2019-08-10T21:01:17Z")

</div>

It won’t let me here but I’ll drop it in the issue @Zhilkin posted below

---

<div class="post-metadata">

**Author:** ![sztosz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/sztosz/32/1212_2.png) [@sztosz](https://discourse.cataclysmdda.org/u/sztosz)\
**Post date:** [August 10, 2019, 9:43pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/5 "2019-08-10T21:43:46Z")

</div>

I am trying to debug it. But I had no crash whole yesterday evening, nor today.

---

<div class="post-metadata">

**Author:** ![crazykiddeath](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/crazykiddeath/32/5709_2.png) [@crazykiddeath](https://discourse.cataclysmdda.org/u/crazykiddeath)\
**Post date:** [August 10, 2019, 9:47pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/6 "2019-08-10T21:47:50Z")

</div>

The way I got it to happen was to drive a pretty long way into undiscovered map areas, that isn’t the only time it happens but it does seem to trigger it for some reason.

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [August 11, 2019, 7:55pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/7 "2019-08-11T19:55:19Z")

</div>

If it only happens when entering unexplored areas and only some of the time, then my hunch would be that it’s a map extra that’s bugging out.  
If it’s really REALLY deep into unexplored territory, then it might be a map tile generation thing instead.

Try debug revealing the overmap to show all overmap tiles, and see if the area it’s been crashing in has overmap already set or not. If it’s near a bunch of grey # fog-of-war you might be generating new overmap when it crashes.

---

<div class="post-metadata">

**Author:** ![crazykiddeath](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/crazykiddeath/32/5709_2.png) [@crazykiddeath](https://discourse.cataclysmdda.org/u/crazykiddeath)\
**Post date:** [August 11, 2019, 8:04pm UTC](https://discourse.cataclysmdda.org/t/some-bug-upon-crash/21037/8 "2019-08-11T20:04:43Z")

</div>

It wasn’t that because the ealier crashes happened before I really started exploring, going to unrevealed map tiles increases the likely hood but doesn’t seem to be the only thing setting it off. I had the same bug ealier on when I was just messing around on the farm, I just didn’t realise how damaging it was because I wasn’t losing entire trips worth of loot, vehicles and NPCs.
