HDIAndrew / EFS

12 stars 0 forks source link

Dragging unit icons can cause a crash #172

Open StomyPX opened 1 year ago

StomyPX commented 1 year ago

Description:

I've found you can reliably crash the game in windowed mode by dragging icons off the edge of the screen in stack view.

Expected behavior:

Game should not crash when merely dragging the mouse around, even if you slip off the edge of the screen.

Actual behavior:

I've noticed you need to move the mouse out of the viewport first at least once, after which being careless in the stack view will reliably cause the crash.

Game version:

1.51, my gog installer exe has a timestamp of July 12, 2023 so that's probably when I downloaded it.

Steps to reproduce:

  1. Set the game to 1920x1080 (I'm using 144Hz) with Windowed presentation and Integer scaling (everything else default)
  2. Launch the game and change focus to another window at least once
  3. Start any new game or load an existing save
  4. Right-click twice on any stack you own to open the stack view
  5. Try to drag any unit icon off the edge of the left side of the game viewport, this reliably causes my game to crash.

Additional information:

I should note that I am running the game on Linux through Wine, though I suspect this is more to do with a bad assumption somewhere made by either UI logic or rendering. If that's the case then it should be reproducible on Windows too.

floralpond commented 1 year ago

Thank you for the bug report. I have been able to replicate the issue with my computer on windows 10. For me, I only get the crash when dragging a unit icon off the bottom of the screen (seems fine when dragging on the top or sides).

In my previous experience testing these sort of crashes relating to moving the mouse out of a windowed screen, there is some variability between different computers for some reason.