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 upSegmentation Fault when removing certain parts from a crashed UH-60 #26948
Comments
kevingranade
added this to Need Confirmation
in 0.D Release
via automation
Dec 10, 2018
kevingranade
added this to the 0.D milestone
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
|
Confirmed when using 3de7663 from CDDA and 42cdd0bb174a7f9bdd9ce38c43579264962ac369 of Cata++. Loaded save, moved east, removed seatbelt from UH-60 crash, crashed with:
|
Night-Pryanik
added
(S2 - Confirmed)
and removed
(S1 - Need confirmation)
labels
Dec 11, 2018
This comment has been minimized.
This comment has been minimized.
|
Can't confirm when not using cata++. I spawned as a crash survivor at a UH-60 and removed both pilot seatbelts and seats without an issue. I suggest reporting it to the Cataclysm++ maintainers. |
mlangsdorf
added
the
Mods
label
Dec 11, 2018
Night-Pryanik
added
(S1 - Need confirmation)
and removed
(S2 - Confirmed)
labels
Dec 11, 2018
This comment has been minimized.
This comment has been minimized.
|
From inspection this is either happening Cataclysm-DDA/src/veh_interact.cpp Line 2724 in f923aac or Cataclysm-DDA/src/veh_interact.cpp Line 2751 in f923aac |
This comment has been minimized.
This comment has been minimized.
|
Both of these are potentially attempting to insert an empty range into the list. The second is more concerning: Lines 1881 to 1887 in c3b2421 I'm not 100% sure that {} initialization is safe. |
This comment has been minimized.
This comment has been minimized.
|
Also is it just me or is this mangled invocation weird? it's a std::list (ok cool) ::insert( list_iterator (ok makes sense), list_const_iterator (got it), enable_if<is_input_iterator>. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
If someone could reproduce this in a build with |
ZhilkinSerg
added
(S2 - Confirmed)
and removed
(S1 - Need confirmation)
labels
Jan 8, 2019
This comment has been minimized.
This comment has been minimized.
|
There are three vehicles on submap ( If you rename vehicles in file mentioned above to have unique names and look to debugger when game is crashed, you will see that parts are getting removed from incorrect vehicle. That is what I get while trying to remove part from biggest vehicle - parts are trying to be removed from vehicle with single part (I have added suffix |
This comment has been minimized.
This comment has been minimized.
|
Issue happens when there are at least two overlapped vehicles (which probably failed to merge when spawned). Player interacts with one of vehicles and coordinates of vehicle are saved in activity. When activity is finished, nearest vehicle is searched using these coordinates, but it is possible that part from vehicle different from original one would be found. |
This comment has been minimized.
This comment has been minimized.
|
I'll take a look at it. |
mlangsdorf
self-assigned this
Jan 8, 2019
This comment has been minimized.
This comment has been minimized.
|
I can't get a vehicle to fail to merge. I can see how this failure would happen if a vehicle failed to merge, I just can't make it happen. I will keep poking. |
This comment has been minimized.
This comment has been minimized.
Maybe that helicopter crash map extra was generated in some older version where vehicle merge was not working properly? |
This comment has been minimized.
This comment has been minimized.
|
Maybe. |
This comment has been minimized.
This comment has been minimized.
|
Aha! Got it. If you merge two vehicles together, then split one of them, the split vehicle can sometimes appear under the original vehicle. Okay, definitely my bug. |



SageB commentedDec 5, 2018
Describe the bug
Removing anything from the tile where the controls are located causes the game to crash with a segmentation fault.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the game not to crash, because it normally doesn't have an issue with removing vehicle parts.
Versions and configuration
Additional context
Crash Log
Save