# Segmentation Fault

**URL:** <https://discourse.cataclysmdda.org/t/segmentation-fault/27429>\
**Category:** The Garage\
**Created:** [December 16, 2021, 11:00pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault/27429 "2021-12-16T23:00:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![M1nks](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/m1nks/32/8247_2.png) [@M1nks](https://discourse.cataclysmdda.org/u/M1nks)\
**Post date:** [December 16, 2021, 11:00pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault/27429/1 "2021-12-16T23:00:23Z")

</div>

This has caused my current play through to be unable to load. It saved just as I ran out of charge on a soldering iron and when I tried to reload from the save it did this to me. Is there anyway to save it? Any reasonably easy way because I have zero coding skill.

The program has crashed.  
See the log file for a stack trace.  
CRASH LOG FILE: ./config/crash.log  
VERSION: cfc00fa  
TYPE: Signal  
MESSAGE: SIGSEGV: Segmentation fault  
STACK TRACE:

and

this seem to agree with me about the cause of the problem:

22:47:53.477 ERROR : src/generic\_factory.h:445 [const T& generic\_factory::obj(const string\_id&) const [with T = overmap\_special]] invalid overmap special id “bog”  
22:47:55.158 ERROR : src/item\_location.cpp:291 [bool item\_location::impl::item\_on\_person::ensure\_who\_unpacked() const] Failed to find item\_location owner with character\_id 1  
22:47:56.123 ERROR : src/item\_location.cpp:291 [bool item\_location::impl::item\_on\_person::ensure\_who\_unpacked() const] Failed to find item\_location owner with character\_id 1  
22:47:58.964 ERROR : src/item\_location.cpp:115 [void item\_location::impl::ensure\_unpacked() const] item\_location lost its target item during a save/load cycle  
22:48:00.883 ERROR : src/item\_location.cpp:785 [void item\_location::deserialize(const JsonObject&)] parent location does not point to valid item

---

<div class="post-metadata">

**Author:** ![M1nks](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/m1nks/32/8247_2.png) [@M1nks](https://discourse.cataclysmdda.org/u/M1nks)\
**Post date:** [December 16, 2021, 11:06pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault/27429/2 "2021-12-16T23:06:57Z")

</div>

These are the last messages in the save file:

“You reload the soldering iron with light battery (high-capacity).”, “count”: 1, “type”: 5 }, { “turn”: 12622456, “message”: “Moving onto this chair is slow!”, “count”: 2, “type”: 3 }, { “turn”: 12622458, “message”: “Moving off of this chair is slow!”, “count”: 1, “type”: 3 }, { “turn”: 12622460, “message”: “You see here 19 pinecones and many more items.”, “count”: 1, “type”: 5 }, { “turn”: 12622461, “message”: “Moving onto this chair is slow!”, “count”: 1, “type”: 3 }, { “turn”: 12622500, “message”: “Saving game, this may take a while”, “count”: 1, “type”: 4 } ], “curmes”: 12622463 }

---

<div class="post-metadata">

**Author:** ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)\
**Post date:** [December 16, 2021, 11:58pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault/27429/3 "2021-12-16T23:58:10Z")

</div>

The full stack trace would usually be helpful to actually track down what happens/happened, as it holds all the crucial information on where it crashes.

As for fixing it, I usually offer to take a look and see if I can fix the save file, but I currently don’t have the time for it, so that would probably take 1-2 weeks until you could play that save again, given that it’s even recoverable…  
You could upload it and share it in the hope someone else might be able to fix it before me.

As for the error itself, it sounds/looks alot like [this bug report](https://github.com/CleverRaven/Cataclysm-DDA/issues/53312).  
This issue also links to another issue which mentions a fix, so you could try that on a copy of your save file and see if you’re able to get it running again.

---

<div class="post-metadata">

**Author:** ![M1nks](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/m1nks/32/8247_2.png) [@M1nks](https://discourse.cataclysmdda.org/u/M1nks)\
**Post date:** [December 17, 2021, 1:25pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault/27429/4 "2021-12-17T13:25:58Z")

</div>

I think my issue is the same. Looking at that other issue it seems like there was yet another one which is also referred to. Maybe some recent change has made this a more common occurrence.

I’ve considered debugging in an NPC and adjusting it to resemble my old character as much as I can but I probably won’t remember that accurately so I’d rather do my best to fix this one if possible. The issue that was resolved talked about changing a value to ACT\_NULL or something like that and if I have instructions on what that is I could give that a go.

Where is the strack (stack?) trace that you mentioned kept and can/should I raise an issue on GitHub?

---

<div class="post-metadata">

**Author:** ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)\
**Post date:** [January 4, 2022, 1:12pm UTC](https://discourse.cataclysmdda.org/t/segmentation-fault/27429/5 "2022-01-04T13:12:10Z")

</div>

> [@M1nks](#):
>
> Where is the strack (stack?) trace that you mentioned kept and can/should I raise an issue on GitHub?

Yeah, sorry, I mistyped, that indeed should have been “stack trace”.

You can find the stack trace in crash.log (if you set up your system to not see extensions it would be just called “crash”) file which you can find in the config folder of your game installation.

Since your issue seems to be the same as the one already on GitHub’s issue tracker, there’s no need to open up another issue for that. If you have additional information, you can/should add them to the already open issue.
