Opened 16 years ago

Closed 16 years ago

Last modified 5 years ago

#3997 closed defect (duplicate)

GUI: Crash when trying to add a game

Reported by: bluegr Owned by:
Priority: normal Component: GUI
Version: Keywords:
Cc: Game:


Using the latest SVN version of ScummVM under Windows XP and Vista

When trying to add a game (using both the classic and modern theme, if it helps), I get the following error: Could not load widget position for 'defaultChooser_chooser_list'!

This occurs when I'm trying to add another instance of the game "Drascula" (don't know if it makes any difference) - I got 5 game configurations for that game already. I can always reproduce this error with this game, though not with any other game. Strange

It happens when the ChooserDialog "Pick the game" is created in gui/launcher.cpp, line 983

The parameters passed to getWidgetData are: _name = "defaultChooser_chooser_list" _x = -12851 _y = -12851 _w = 52685 _h = 52685

So it seems that at this point, those variables are not initialized properly, leading to this error

Here's a stack trace: scummvm.exe!GUI::GuiObject::reflowLayout() Line 60 C++ scummvm.exe!GUI::Widget::reflowLayout() Line 133 + 0x2b bytes C++ scummvm.exe!GUI::ListWidget::reflowLayout() Line 487 C++ scummvm.exe!GUI::ListWidget::ListWidget(GUI::GuiObject * boss=0x0012e840, const Common::String & name={...}) Line 45 C++ scummvm.exe!GUI::ChooserDialog::ChooserDialog(const Common::String & title={...}, Common::String prefix={...}, const Common::String & buttonLabel={...}) Line 45 + 0x73 bytes C++ > scummvm.exe!GUI::LauncherDialog::addGame() Line 983 + 0x5c bytes C++ scummvm.exe!GUI::LauncherDialog::handleCommand(GUI::CommandSender * sender=0x01c978b4, unsigned int cmd=1094992967, unsigned int data=0) Line 1144 + 0xf bytes C++ scummvm.exe!GUI::CommandSender::sendCommand(unsigned int cmd=1094992967, unsigned int data=0) Line 54 + 0x23 bytes C++ scummvm.exe!GUI::ButtonWidget::handleMouseUp(int x=71, int y=13, int button=1, int clickCount=1) Line 226 + 0x1c bytes C++ scummvm.exe!GUI::Dialog::handleMouseUp(int x=242, int y=409, int button=1, int clickCount=1) Line 193 + 0x67 bytes C++ scummvm.exe!GUI::NewGui::runLoop() Line 284 + 0x2a bytes C++ scummvm.exe!GUI::Dialog::runModal() Line 76 C++ scummvm.exe!launcherDialog(OSystem & system={...}) Line 95 + 0xb bytes C++ scummvm.exe!scummvm_main(int argc=1, char * * argv=0x01bc3e00) Line 290 + 0x9 bytes C++

Ticket imported from: #2167730. Ticket imported from: bugs/3997.

Change History (3)

comment:1 by bluegr, 16 years ago

Resolution: duplicate
Status: newclosed

comment:2 by bluegr, 16 years ago

I'm sorry :( There is already a bug report about this. I'll attach the info in the other bug report and close this one as duplicate

comment:3 by digitall, 5 years ago

Component: GUI
Note: See TracTickets for help on using tickets.