# Crash When Examining Vehicle

**URL:** <https://discourse.cataclysmdda.org/t/crash-when-examining-vehicle/23868>\
**Category:** The Garage\
**Created:** [June 3, 2020, 10:05pm UTC](https://discourse.cataclysmdda.org/t/crash-when-examining-vehicle/23868 "2020-06-03T22:05:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [June 10, 2020, 6:54am UTC](https://discourse.cataclysmdda.org/t/crash-when-examining-vehicle/23868/7 "2020-06-10T06:54:56Z")

</div>

After a lot of trying - and I mean a lot; almost 4 hours (which I probably should have invested into sleep) with no success, I was ready to give up.  
But I’ve done it, the last car (Atomic SUV) I’ve went to check… It crashed the game.  
Here’s my crash log:

> **Crashlog**
>
> ```
> The program has crashed.
> See the log file for a stack trace.
> CRASH LOG FILE: ./config/crash.log
> VERSION: 0.E-2901-g975fc77
> TYPE: Signal
> MESSAGE: SIGSEGV: Segmentation fault
> STACK TRACE:
> 
> #0
> (dbghelp: @0x657256[cataclysm-tiles.exe+0x257256]), 
> (libbacktrace: Z21debug_write_backtraceRSo+0x56@0x657256),
> (libbacktrace: 0x657256 [unknown src]:0 [unknown func]),
> #1
> (dbghelp: @0x6388ff[cataclysm-tiles.exe+0x2388ff]), 
> (libbacktrace: log_crash+0x4af@0x6388ff),
> (libbacktrace: 0x6388ff [unknown src]:0 [unknown func]),
> #2
> (dbghelp: @0x6395d2[cataclysm-tiles.exe+0x2395d2]), 
> (libbacktrace: signal_handler+0x32@0x6395d2),
> (libbacktrace: 0x6395d2 [unknown src]:0 [unknown func]),
> #3
> (dbghelp: SMPEG_error+0x4b034@0x10d54e0[cataclysm-tiles.exe+0xcd54e0]), 
> (libbacktrace: gnu_exception_handler+0x70@0x10d54e0),
> (libbacktrace: 0x10d54e0 /home/narc/src/mxe/tmp-gcc-x86_64-w64-mingw32.static/gcc-5.4.0.build_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crt_handler.c:223 _gnu_exception_handler),
> #4
> (dbghelp: _C_specific_handler+0x8c@0x77c67258[ntdll.dll+0x57258]), 
> (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
> (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
> #5
> (dbghelp: _chkstk+0x9d@0x77c7be9d[ntdll.dll+0x6be9d]), 
> (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
> (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
> #6
> (dbghelp: RtlInitializeResource+0x53a@0x77c5040a[ntdll.dll+0x4040a]), 
> (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
> (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
> #7
> (dbghelp: KiUserExceptionDispatcher+0x2e@0x77c7b53e[ntdll.dll+0x6b53e]), 
> (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
> (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
> #8
> (dbghelp: @0x8e07f1[cataclysm-tiles.exe+0x4e07f1]), 
> (libbacktrace: ZNK11item_pocket13ammo_capacityERK9string_idI15ammunition_typeE+0x21@0x8e07f1),
> (libbacktrace: 0x8e07f1 [unknown src]:0 [unknown func]),
> #9
> (dbghelp: @0x8a20a8[cataclysm-tiles.exe+0x4a20a8]), 
> (libbacktrace: ZNK13item_contents13ammo_capacityERK9string_idI15ammunition_typeE+0x48@0x8a20a8),
> (libbacktrace: 0x8a20a8 [unknown src]:0 [unknown func]),
> #10
> (dbghelp: @0xfd7817[cataclysm-tiles.exe+0xbd7817]), 
> (libbacktrace: ZNK12vehicle_part13ammo_capacityERK9string_idI15ammunition_typeE+0x37@0xfd7817),
> (libbacktrace: 0xfd7817 [unknown src]:0 [unknown func]),
> #11
> (dbghelp: @0xfd7e0a[cataclysm-tiles.exe+0xbd7e0a]), 
> (libbacktrace: ZNK12vehicle_part10can_reloadERK4item+0x22a@0xfd7e0a),
> (libbacktrace: 0xfd7e0a [unknown src]:0 [unknown func]),
> #12
> (dbghelp: @0xf48e76[cataclysm-tiles.exe+0xb48e76]), 
> (libbacktrace: ZN12veh_interact7cant_doEc+0x4a6@0xf48e76),
> (libbacktrace: 0xf48e76 [unknown src]:0 [unknown func]),
> #13
> (dbghelp: @0xf4998f[cataclysm-tiles.exe+0xb4998f]), 
> (libbacktrace: ZN12veh_interact12display_modeEv+0x1af@0xf4998f),
> (libbacktrace: 0xf4998f [unknown src]:0 [unknown func]),
> #14
> (dbghelp: @0xf678ed[cataclysm-tiles.exe+0xb678ed]), 
> (libbacktrace: ZNSt17_Function_handlerIFvRK10ui_adaptorEZN12veh_interact24create_or_get_ui_adaptorEvEUlS2_E0_E9_M_invokeERKSt9_Any_dataS2_+0x14d@0xf678ed),
> (libbacktrace: 0xf678ed [unknown src]:0 [unknown func]),
> #15
> (dbghelp: @0xf3faaa[cataclysm-tiles.exe+0xb3faaa]), 
> (libbacktrace: ZN10ui_adaptor18redraw_invalidatedEv+0xda@0xf3faaa),
> (libbacktrace: 0xf3faaa [unknown src]:0 [unknown func]),
> #16
> (dbghelp: @0xf5d9d0[cataclysm-tiles.exe+0xb5d9d0]), 
> (libbacktrace: ZN12veh_interact12do_main_loopEv+0x120@0xf5d9d0),
> (libbacktrace: 0xf5d9d0 [unknown src]:0 [unknown func]),
> #17
> (dbghelp: @0xf5e0d7[cataclysm-tiles.exe+0xb5e0d7]), 
> (libbacktrace: ZN12veh_interact3runER7vehicleRK5point+0x27@0xf5e0d7),
> (libbacktrace: 0xf5e0d7 [unknown src]:0 [unknown func]),
> #18
> (dbghelp: @0x73d522[cataclysm-tiles.exe+0x33d522]), 
> (libbacktrace: ZN4game12exam_vehicleER7vehicleRK5point+0x22@0x73d522),
> (libbacktrace: 0x73d522 [unknown src]:0 [unknown func]),
> #19
> (dbghelp: @0xff0d5f[cataclysm-tiles.exe+0xbf0d5f]), 
> (libbacktrace: ZN7vehicle13interact_withERK8tripointi+0x183f@0xff0d5f),
> (libbacktrace: 0xff0d5f [unknown src]:0 [unknown func]),
> #20
> (dbghelp: @0x784212[cataclysm-tiles.exe+0x384212]), 
> (libbacktrace: ZN4game7examineERK8tripoint+0x2a2@0x784212),
> (libbacktrace: 0x784212 [unknown src]:0 [unknown func]),
> #21
> (dbghelp: @0x784b91[cataclysm-tiles.exe+0x384b91]), 
> (libbacktrace: ZN4game7examineEv+0x141@0x784b91),
> (libbacktrace: 0x784b91 [unknown src]:0 [unknown func]),
> #22
> (dbghelp: @0x7b72df[cataclysm-tiles.exe+0x3b72df]), 
> (libbacktrace: ZN4game13handle_actionEv+0x642f@0x7b72df),
> (libbacktrace: 0x7b72df [unknown src]:0 [unknown func]),
> #23
> (dbghelp: @0x77b63f[cataclysm-tiles.exe+0x37b63f]), 
> (libbacktrace: ZN4game7do_turnEv+0xc5f@0x77b63f),
> (libbacktrace: 0x77b63f [unknown src]:0 [unknown func]),
> #24
> (dbghelp: IMG_LoadWEBP_RW+0x6e1ec8@0x18a9218[cataclysm-tiles.exe+0x14a9218]), 
> (libbacktrace: main+0x11a8@0x18a9218),
> (libbacktrace: 0x18a9218 [unknown src]:0 [unknown func]),
> #25
> (dbghelp: @0x4013ed[cataclysm-tiles.exe+0x13ed]), 
> (libbacktrace: _tmainCRTStartup+0x23d@0x4013ed),
> (libbacktrace: 0x4013ed /home/narc/src/mxe/tmp-gcc-x86_64-w64-mingw32.static/gcc-5.4.0.build_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crtexe.c:336 __tmainCRTStartup),
> #26
> (dbghelp: @0x4014fb[cataclysm-tiles.exe+0x14fb]), 
> (libbacktrace: WinMainCRTStartup+0x1b@0x4014fb),
> (libbacktrace: 0x4014fb /home/narc/src/mxe/tmp-gcc-x86_64-w64-mingw32.static/gcc-5.4.0.build_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crtexe.c:186 WinMainCRTStartup),
> #27
> (dbghelp: BaseThreadInitThunk+0xd@0x77b0556d[kernel32.dll+0x1556d]), 
> (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
> (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
> #28
> (dbghelp: RtlUserThreadStart+0x1d@0x77c6372d[ntdll.dll+0x5372d]), 
> (backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
> (backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
> 
> ```

Now, my log shows some more and important information: Apparently (if I get this right) it crashed when it tried to load/show the ammo capacity of some vehicle part; assumingly the one from the mini reactor (or the storage battery).

I’ll try to work it out when I’m back from sleep and work, if it isn’t fixed in a release by then.

Thank you for your informations, @Psychopathic_Magno & @Xing.

PS: Actually… Looks like they are working on it already:

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/40843>
>
> Describe the bug
> When I attempt to examine a Fire Engine (aka short firetruck), the game segfaults. The Fire Engine can still...

Seeing that the (normal) _Atomic Car_ does not crash (or at least did not with all the ones I’ve checked), it might has something to do with the JSON? We’ll see…  
A found (normal) _Atomic Car_ actually crashes if one tries to re[f]ill it…

…but it does not crash if one tries to refill a spawned in (and slightly depleted) _Atomic Car_. It also shows the correct charges. So, what’s the difference between the naturally spawned and the debug spawn? Besides the damage? Or is that it?

… The game also crashes after damaging the reactor until it starts draining, waiting until it’s drained and then examining it. It does not crash if examined while it is draining. So… does it have a problem to show `0 charges`? Or does it drain further than that?

---

_[View the full topic](https://discourse.cataclysmdda.org/t/crash-when-examining-vehicle/23868)._
