doom-mods icon indicating copy to clipboard operation
doom-mods copied to clipboard

Pressing the upgrades menu key twice crashes Gun Bonsai

Open kinker31 opened this issue 1 month ago • 2 comments

Version Used: UZDoom 4.15pre-733-g713fd49cc-m (latest-git) Steps to Reproduce:

  1. Start a new game, on any IWAD
  2. Press the "Display Info" keybind, and exit the screen. Any screen should work.
  3. Repeat step 2, the following crashlog should generate:
VM execution aborted: array access out of bounds. Size = 0, current index = 0

Called from OptionMenu.Init at uzdoom.pk3:zscript/engine/ui/menu/optionmenu.zs, line 182
Called from TFLV_TooltipOptionMenu.InitDynamic at GunBonsai-0.10.6.pk3:ca.ancilla.bonsai/libtooltipmenu/tooltipoptionmenu.zsc, line 16
Called from TFLV_Menu_StatusDisplay.Init at GunBonsai-0.10.6.pk3:ca.ancilla.bonsai/menu/statusdisplay.zsc, line 5
Called from TFLV_EventHandler.ShowInfo at GunBonsai-0.10.6.pk3:ca.ancilla.bonsai/eventhandler.zsc, line 135
Called from TFLV_EventHandler.NetworkProcess at GunBonsai-0.10.6.pk3:ca.ancilla.bonsai/eventhandler.zsc, line 166
Called from Menu.SetMenu [Native]

kinker31 avatar Nov 01 '25 22:11 kinker31

This is probably an issue with libtooltipmenu. If you click the back arrow to close the menu, then attempt to open the menu again, this crash to console doesn't happen. Using 'Esc' even once to close the menu will eventually lead to a crash.

This crash also occurs with gzArchipelago's inventory menu.

j-palomo avatar Nov 02 '25 00:11 j-palomo

I can't repro this in gzdoom, so this is probably a result of changes in the menu code in uzdoom, which means I'll be able to start debugging it when uzdoom lands in nixpkgs unstable.

ToxicFrog avatar Nov 03 '25 21:11 ToxicFrog