[Scummvm-tracker] [ScummVM :: Bugs] #13339: GUI: Game Options crashes launcher at small application widths
ScummVM :: Bugs
trac at scummvm.org
Sat Mar 5 19:06:19 UTC 2022
#13339: GUI: Game Options crashes launcher at small application widths
-----------------------+---------------------------------------------------
Reporter: antoniou79 | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: GUI
Version: | Keywords: crash, assertion fault, width, resize
Game: |
-----------------------+---------------------------------------------------
Tested on Windows 10 x64 (Version 10.0.19044 Build 19044, all updates)
built from latest master (HEAD).
Steps to reproduce:
- Launch ScummVM in windowed mode
- From the launcher select any game from the list
- Click on "Game Options..." (former "Edit Game...") button.
- When the dialogue opens, try to resize the ScummVM's window borders so
as to reduce the window's width to a very small size. (see attached
screenshot for example)
Result:
ScummVM crashes with the message:
{{{
Assertion failed: isValidRect(), file ./common/rect.h, line 160
}}}
Expected Result:
ScummVM should handle this without crashing.
The crash does not occur for the launcher's "Global Options...", so it
seems to be specific to the "Game Options..." dialogue.
If the width of the launcher is already small when launching ScummVM, then
the crash will occur immediately upon clicking on "Game Options..."
A quick debugging session with VS indicates that the fault lies somewhere
in ScrollContainerWidget::reflowLayout() in
gui\widgets\scrollcontainer.cpp during the loop of "reflow layout of inner
widgets"
From the related discussion on Discord, it seems that the issue has been
around for a while (quite possibly since 2.2.0, according to rootfather)
https://discord.com/channels/581224060529148060/711242520415174666/949661861152960532
--
Ticket URL: <https://bugs.scummvm.org/ticket/13339>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list