Opened 16 years ago

Closed 16 years ago

Last modified 6 years ago

#3995 closed defect (fixed)

GUI: Could not load widget position ...

Reported by: eriktorbjorn Owned by: SF/tanoku
Priority: normal Component: GUI
Version: Keywords:
Cc: Game:

Description

Latest ScummVM SVN snapshot

When adding a game where ScummVM cannot determine the exact version (like the Goblins games), it should present a list of possible alternatives. Instead, it prints messages like:

WARNING: Could not load widget position for 'defaultChooser_chooser_list'! Widget <defaultChooser_chooser_list> has x < 0: 31920!

The last number in the second message seems random, so maybe it's an uninitialised variable. I can't find any definition of the layout for this chooser. It might be missing, but I don't know enough about it to add one myself.

Ticket imported from: #2164305. Ticket imported from: bugs/3995.

Change History (5)

comment:1 by eriktorbjorn, 16 years ago

Another example of a game that behaves like that is Drascula.

comment:2 by eriktorbjorn, 16 years ago

Owner: set to SF/tanoku

comment:3 by bluegr, 16 years ago

I get the same error I've accidentally created a duplicate bug report about this. Here's the information from the other bug report:

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++

comment:4 by SF/tanoku, 16 years ago

Resolution: fixed
Status: newclosed

comment:5 by digitall, 6 years ago

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