[ scummvm-Bugs-2167730 ] GUI: Crash when trying to add a game

SourceForge.net noreply at sourceforge.net
Wed Oct 15 09:46:27 CEST 2008


Bugs item #2167730, was opened at 2008-10-15 10:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2167730&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Filippos Karapetis (thebluegr)
Assigned to: Nobody/Anonymous (nobody)
Summary: GUI: Crash when trying to add a game

Initial Comment:
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++


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2167730&group_id=37116




More information about the Scummvm-tracker mailing list