Page 1 of 1

Ubuntu Edgy Crashed While Trying to Sell Items

Posted: 23 Dec 2006, 22:31
by Pauan
The instant I hit the Sell button for the MinerShop, TMW SVN crashes. Here is the backtrace:

Code: Select all

#0  0x080ee32f in Graphics::drawImage (this=0x8143cb8, image=0x0, x=1, y=96)
    at graphics.cpp:124
#1  0x080a3fc9 in ShopListBox::draw (this=0x82a9f40, gcnGraphics=0x8143cb8)
    at gui/shoplistbox.cpp:92
#2  0x0808fedc in ScrollArea::draw (this=0x82aa028, graphics=0x8143cb8)
    at gui/scrollarea.cpp:218
#3  0xb795b3c1 in gcn::BasicContainer::drawChildren ()
   from /usr/lib/libguichan.so.0
#4  0xb79699f7 in gcn::Container::draw () from /usr/lib/libguichan.so.0
#5  0xb795b3c1 in gcn::BasicContainer::drawChildren ()
   from /usr/lib/libguichan.so.0
#6  0x080baf96 in Window::draw (this=0x82a9cc0, graphics=0x8143cb8)
    at gui/window.cpp:185
#7  0xb795b3c1 in gcn::BasicContainer::drawChildren ()
   from /usr/lib/libguichan.so.0
#8  0xb79699f7 in gcn::Container::draw () from /usr/lib/libguichan.so.0
#9  0x08072e52 in Gui::draw (this=0x8143d88) at gui/gui.cpp:209
#10 0x080ebf51 in Game::logic (this=0x8205718) at game.cpp:366
#11 0x080f64eb in main (argc=1, argv=0xbfb60c34) at main.cpp:675

Posted: 24 Dec 2006, 00:22
by Bjørn
Ok, so your problem was an out of date items.xml, but still that shouldn't cause TMW to crash. A fix has now been committed.

When an item icon failed to load, it will now simply not try to display in the shop list. An alternative would be to load an error or generic icon, guaranteeing that an item icon is never NULL.