Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upCrash in mapgen.cpp line 7070 // Out of bounds add_vehicle #28156
Comments
This comment has been minimized.
This comment has been minimized.
|
I got this issue too, on Build 8550. Triggered while walking through a new area. Doesn't seem reproducible (and the save I have is a while before the crash). debug.log:
crash.log:
Mods: Boats, Folding Parts Pack, Vehicle Additions, More Locations, More Survival Tools, Makeshift Items |
This comment has been minimized.
This comment has been minimized.
WhitePaperWraper
commented
Mar 15, 2019
•
|
I had similar crashes twice, though it says about "line 6906" id imagine it's the same problem
|
This was referenced May 2, 2019
ifreund
added
(S2 - Confirmed)
Mapgen
Vehicles
and removed
(S1 - Need confirmation)
labels
May 2, 2019
This was referenced May 2, 2019
This comment has been minimized.
This comment has been minimized.
|
Thanks to @ymber, the save file provided in the post here allows for an easy repro. TL;DRThe bug is not really hard to understand, especially with the given error message: a vehicle is split (in this save file, it's probably because Zs are smashing a vehicle) into multiple "pieces" (technically this creates a new vehicle), but it happens that one of those "pieces" is just out of the map... AnalysisFull stack trace (up to
So for each of the pieces of the old vehicle, the code tries to create a new vehicle, this happens here: Lines 1918 to 1920 in e169df3
Now for the beginning of the Lines 7121 to 7131 in e169df3 the Lines 374 to 385 in e169df3 In our case, this function takes the following 3 parameters:
Here are some of the crashing elements:
Now if we check with the above elements, we can clearly see that the vehicle part is outside the map:
Crash
There's no safeguard for a null vehicle:
FixSimplest fix possible (not necessarily the best one though...):
Lines 1849 to 1856 in e558335 Calling the vehicle specialist (sorry for the ping) @mlangsdorf :
|

PartyAlias commentedFeb 10, 2019
Describe the bug
Crash!
To Reproduce
Steps to reproduce the behavior (semi-random reproduces):
Expected behavior
App should not crash.
Screenshots
In attaced link below.
Versions and configuration(please complete the following information):
Additional context
Link to screen, crash.log & save game: https://drive.google.com/open?id=1btcpZkkYqY3ElR6XaR643g1bqA_INEXK