Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to reload mounted weapons causes crash #61031

Closed
actually-a-cat opened this issue Sep 16, 2022 · 0 comments · Fixed by #61046
Closed

Attempting to reload mounted weapons causes crash #61031

actually-a-cat opened this issue Sep 16, 2022 · 0 comments · Fixed by #61046
Labels
(S1 - Need confirmation) Report waiting on confirmation of reproducibility

Comments

@actually-a-cat
Copy link
Contributor

Describe the bug

Game crashes on attempting to reload any mounted weapon.

I tried several different guns (PA 68, M240, etc), from inventory as well from nearby tiles, magazines, belts and loose ammo, nothing seems to matter, just crashes.

Steps to reproduce

Attempt to reload any mounted weapon. Example specific steps:

  • Spawn "Car" vehicle
  • Enable debug hammerspace
  • Install turret mount and M240
  • Spawn 7.62x51 ammo belt
  • Attempt to reload the M240

Expected behavior

crash=bad

Screenshots

No response

Versions and configuration

  • OS: Linux
    • OS Version: Distributor ID: Ubuntu; Description: Ubuntu 20.04.1 LTS; Release: 20.04; Codename: focal;
  • Game Version: 0.F-11349-ga446e0452b [64-bit]
  • Graphics Version: Curses
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    No Fungal Growth [no_fungal_growth],
    Bionic Professions [package_bionic_professions]
    ]

Additional context

Backtrace:

#0  item_location::obtain_cost (this=0x7fffffffc718, ch=..., qty=18) at src/item_location.cpp:913
#1  0x0000555558ecd90e in item::reload_option::moves (this=0x7fffffffc700) at src/item.cpp:11405
#2  0x000055555a5fb62b in vehicle::<lambda()>::operator()(void) const (__closure=0x5555828d7600) at src/vehicle_use.cpp:1901
#3  0x000055555a60873c in std::_Function_handler<void(), vehicle::build_interact_menu(veh_menu&, const tripoint&, bool)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...)
    at /usr/include/c++/9/bits/std_function.h:300
#4  0x0000555557e19e6e in std::function<void ()>::operator()() const (this=0x5555825611b0) at /usr/include/c++/9/bits/std_function.h:688
#5  0x000055555a4e8a00 in veh_menu::query (this=0x7fffffffce00) at src/veh_utils.cpp:409
#6  0x000055555a602d2b in vehicle::interact_with (this=0x55557df1a650, p=..., with_pickup=false) at src/vehicle_use.cpp:2119
#7  0x0000555558b7a2ae in game::examine (this=0x55555c01c720, examp=..., with_pickup=false) at src/game.cpp:5625
#8  0x0000555558b781cd in game::examine (this=0x55555c01c720, with_pickup=false) at src/game.cpp:5509
#9  0x0000555558cc3a8d in game::do_regular_action (this=0x55555c01c720, act=@0x7fffffffd3e4: ACTION_EXAMINE, player_character=..., mouse_target=...) at src/handle_action.cpp:2093
#10 0x0000555558cc8c7c in game::handle_action (this=0x55555c01c720) at src/handle_action.cpp:2971
#11 0x0000555558902622 in do_turn () at src/do_turn.cpp:708
#12 0x0000555559370435 in main (argc=1, argv=0x7fffffffe078) at src/main.cpp:784
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(S1 - Need confirmation) Report waiting on confirmation of reproducibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant