ChrisOelmueller/uh-issues — Issue #8: Deleting a selected building crashes multiplayer games
Author: ChrisOelmueller
Created: 2012-02-26 23:41:37+00:00
State: open

* build a lumberjack in a multiplayer game
* press the delete key to delete it
* crash:

{{{
File "D:\UnknownHorizons\unknown-horizons\horizons\gui\mousetools\selectiontool.py", line 194, in mousePressed
self.session.ingame_gui.hide_menu()
File "D:\UnknownHorizons\unknown-horizons\horizons\gui\ingamegui.py", line 354, in hide_menu
self.show_menu(None)
File "D:\UnknownHorizons\unknown-horizons\horizons\gui\ingamegui.py", line 346, in show_menu
self._old_menu.hide()
File "D:\UnknownHorizons\unknown-horizons\horizons\gui\tabs\tabwidget.py", line 147, in hide
self.current_tab.hide()
File "D:\UnknownHorizons\unknown-horizons\horizons\gui\tabs\overviewtab.py", line 454, in hide
self._cleanup()
File "D:\UnknownHorizons\unknown-horizons\horizons\gui\tabs\overviewtab.py", line 462, in _cleanup
for production in self.instance.get_component(Producer).get_productions():
AttributeError: 'NoneType' object has no attribute 'get_component'

Traceback (most recent call last):
File "run_uh.py", line 521, in
main()
File "run_uh.py", line 242, in main
ret = horizons.main.start(options)
File "D:\UnknownHorizons\unknown-horizons\horizons\main.py", line 233, in start
fife.run()
File "D:\UnknownHorizons\unknown-horizons\horizons\engine\engine.py", line 241, in run
self.loop()
File "D:\UnknownHorizons\unknown-horizons\horizons\engine\engine.py", line 250, in loop
self.engine.pump()
File "D:\Tools\Python27\lib\site-packages\fife\fife.py", line 2158, in pump
return _fife.Engine_pump(self)
RuntimeError: Catched director exception
}}}