Main Menu

[Beta 14] Crash / loss of control from inspecting bot while many infoboxes open

Started by R-26 Lightspeed, December 29, 2024, 10:35:24 AM

Previous topic - Next topic

R-26 Lightspeed

No crash log, consistently repeatable, save file attached.
Playing on Linux through Proton 8.0-5.
When crashing, an error window appears saying:
QuoteRuntime Error!

Program: [cutoff filepath to what i assume to be COGMIND.exe]

R6025
- pure virtual function call

---

-Reproduction steps-

Right-click Cogmind, open analysis list, then open any analysis bot's window. (At this point, Cogmind's stats, analysis list, and one of the analyzed robot's stats are all open.)

Then, right-click another robot on the map (like the Hunter).

Now choose either option A or option B:

Option A - Crash - Trying to close the robot's window by left-clicking outside, naming them, opening their analysis, inspecting any of their parts, and many other actions will crash the game with the error described above. (Pressing escape does nothing.)
Example video (error window not visible) : https://imgur.com/a/crash-outcome-JecMLPj

Option B - Loss of control - Right-click Cogmind again, (which automatically closes the other robot's stat window) then close that window. It is now impossible to move or do actual action on the map or do anything with the ally list. It is still possible to do some stuff like turning off parts. Quitting the game then launching it again solves the issue.
Example video : https://imgur.com/a/loss-of-control-outcome-first-encounter-with-this-bug-Z25U9gg
(The second part of this video is me trying to move, first using the mouse, then using numpad.)

While in "loss of control" state, it seems that trying to click on the "more" button of Plasma Cutters (and presumably other things) in Gallery does not work, possibly related to this other bug? https://www.gridsagegames.com/forums/index.php?topic=1715.0
Clicking on the "more" button instead prevents right-clicking the Plasma Cutter's window to close it until left-clicking said window once (that specific left-click does nothing). Clicks outside the window are unaffected.

Kyzrati

Huh, dang so the fix for the other issue before didn't completely resolve all possibilities :P

I discovered this in Beta 13 I think it was and had already changed the behavior of those windows to avoid similar issues by forcing all the old windows to close once you do that right-click, but apparently that solution did not completely clean up the previous state and it's possible to break again... Will have to do a better job of cleaning it up!
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Kyzrati

By the way thanks for the details steps, made it easy to quickly confirm.
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

R-26 Lightspeed

After thinking about it some more, i'm pretty sure the bug i encountered back in Beta 13 with the "more" button not working¹ was actually just a symptom of a bug like this one.
It was my first session of Beta 13, which i ended by looking at some of the new stuff in menus, potentially opening the analysis list (and potentially closing it in a weird way), and then looking at Plasma Cutters.
After that, since i didn't try moving or anything else before quitting, i wouldn't have known if anything else was broken.

¹This report :
https://www.gridsagegames.com/forums/index.php?topic=1715.0

Kyzrati

Yes there's been many ways to achieve a similar effect, I stomp some out but others sometimes pop up, especially as the potential depth of those windows increases over time with new features. They're not encountered very often over all though, since most people don't do this sort of thing (generally more likely by accident in rare cases).
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon