# Destroy\_vehicle can't find it! sm=0 Press Spacebar

**URL:** <https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983>\
**Category:** The Garage\
**Created:** [September 10, 2013, 7:40am UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983 "2013-09-10T07:40:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telkoth](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Telkoth](https://discourse.cataclysmdda.org/u/Telkoth)\
**Post date:** [September 10, 2013, 7:40am UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/1 "2013-09-10T07:40:15Z")

</div>

First of all, no amount of pressing spacebar will get rid of that message 😛

Been playing the latest SDL Build, and I keep getting it in Cities, that said I’ve never made it out of a city… It may occur elsewhere…  
Okay, turns out it happens with last nights build too.

---

<div class="post-metadata">

**Author:** ![FunsizeNinja123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/funsizeninja123/32/118_2.png) [@FunsizeNinja123](https://discourse.cataclysmdda.org/u/FunsizeNinja123)\
**Post date:** [September 10, 2013, 12:39pm UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/2 "2013-09-10T12:39:57Z")

</div>

Can always hold down the spacebar… 😛

---

<div class="post-metadata">

**Author:** ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)\
**Post date:** [September 10, 2013, 2:53pm UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/3 "2013-09-10T14:53:13Z")

</div>

Oh I just had this one. It’s a game-breaker.

> [@FunsizeNinja123](#):
>
> Can always hold down the spacebar… 😛

Actually, no. As was already stated, no amount of pressing or holding the spacebar will make the game respond after this message pops up.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [September 12, 2013, 5:05pm UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/4 "2013-09-12T17:05:05Z")

</div>

I believe this is fixed now, it had to do with changes to how cars spawned, now instead of not spawning on top of each other, they do, but they’re merged together into a misshapen “vehicle wreck”, so it looks like there were car accidents all over the place.  
If it happens again with the latest builds please let us know.

---

<div class="post-metadata">

**Author:** ![Ian\_Strachan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ian_strachan/32/1003_2.png) [@Ian\_Strachan](https://discourse.cataclysmdda.org/u/Ian_Strachan)\
**Post date:** [September 12, 2013, 5:20pm UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/5 "2013-09-12T17:20:30Z")

</div>

This (I hope) is referring to [https://github.com/CleverRaven/Cataclysm-DDA/issues/2926](https://github.com/CleverRaven/Cataclysm-DDA/issues/2926), which was (hopefully) fixed by [https://github.com/CleverRaven/Cataclysm-DDA/pull/2969](https://github.com/CleverRaven/Cataclysm-DDA/pull/2969) .

Basically, the Wreckage vehicle that was created had the wrong submap coordinates, so as the debug message says, destroy\_vehicle couldn’t find the specified vehicle.

I can tell from the fact that the vehicle’s name is not included in the debug message that you have the version from before that PR was merged, so update and it should be fixed.

---

<div class="post-metadata">

**Author:** ![vultures](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/vultures/32/69_2.png) [@vultures](https://discourse.cataclysmdda.org/u/vultures)\
**Post date:** [September 12, 2013, 10:04pm UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/6 "2013-09-12T22:04:26Z")

</div>

Yup, Jenkins #305 here does the same thing. Could not continue the game - but it hasn’t freezed, hasn’t it? It didn’t even fill the mouse buffer (ok, you had to like hold the ESC for a couple of secs because of the mouse hide opt ON) but it was hard to stop executing through any further input  
Here,

[![](http://cdn.imghack.se/images/d9756e63a77406b2a03c808b5e43d79c.png)](http://www.imghack.se/120390)

… I had only a few minor DEBUG notes prior, and all were presskey-resolved easily.

---

<div class="post-metadata">

**Author:** ![Ian\_Strachan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ian_strachan/32/1003_2.png) [@Ian\_Strachan](https://discourse.cataclysmdda.org/u/Ian_Strachan)\
**Post date:** [September 13, 2013, 5:23pm UTC](https://discourse.cataclysmdda.org/t/destroy-vehicle-cant-find-it-sm-0-press-spacebar/2983/7 "2013-09-13T17:23:16Z")

</div>

Again, since it has the old debug message, I can tell that you don’t have the version where it was fixed.

Now, if it does this in a version where the debug message says “destroy\_vehicle can’t find it! name=Wreckage sm=0 Press Spacebar…” THEN we are in big trouble.

Theoretically, because it keeps trying to place the wreckage on top of the original vehicle (which was never removed) it should cause an infinite loop that no amount of spacebar-mashing should escape from. Ultimately, because it’s making recursive calls, it should cause a stack overflow and kill the game with a segmentation fault.
