FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: [UH] crash while playing with newest fife  (Read 1901 times)

flutschfinger

  • Newbie
  • Posts: 14
    • View Profile
[UH] crash while playing with newest fife
« on: January 17, 2010, 12:34:46 pm »

Hi,

while playing UH the game crashs, its not reproducable : /

Fife and UH are both the newest rev., i use opensuse 11.2 x64
Code: [Select]
./run_uh.py
mouseEntered <fife.fife.MouseEvent; proxy of <Swig Object of type 'FIFE::MouseEvent *' at 0xa0c0780> >
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 159, in _redirectEvent
    timer.delayCall(0,delayed_f)
  File "/usr/lib/python2.6/site-packages/fife/extensions/fife_timer.py", line 101, in delayCall
    timer.callback = cbwa(real_callback, callback, timer)
  File "/usr/lib/python2.6/site-packages/fife/extensions/fife_timer.py", line 96, in cbwa
    c(*args)
  File "/usr/lib/python2.6/site-packages/fife/extensions/fife_timer.py", line 99, in real_callback
    c()
  File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 158, in delayed_f
    f( event )
  File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 308, in captured_f
    tools.applyOnlySuitable(self_ref().callbacks[group_name][event_name],event=event,widget=self_ref().widget_ref())
  File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/tools.py", line 60, in applyOnlySuitable
    return func(*args,**kwargs)
  File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/tools.py", line 83, in real_callback
    callback(*args,**kwargs)
  File "/home/kili/SVN/unknown-horizons/trunk/horizons/gui/widgets/messagewidget.py", line 135, in show_text
    label.text = unicode(self.active_messages[self.position+index].message)
IndexError: list index out of range
File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 188, in mouseEntered
    def mouseEntered(self,e): self._redirectEvent("mouseEntered",e)
File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 159, in _redirectEvent
    timer.delayCall(0,delayed_f)
File "/usr/lib/python2.6/site-packages/fife/extensions/fife_timer.py", line 101, in delayCall
    timer.callback = cbwa(real_callback, callback, timer)
File "/usr/lib/python2.6/site-packages/fife/extensions/fife_timer.py", line 96, in cbwa
    c(*args)
File "/usr/lib/python2.6/site-packages/fife/extensions/fife_timer.py", line 99, in real_callback
    c()
File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 158, in delayed_f
    f( event )
File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/events.py", line 308, in captured_f
    tools.applyOnlySuitable(self_ref().callbacks[group_name][event_name],event=event,widget=self_ref().widget_ref())
File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/tools.py", line 60, in applyOnlySuitable
    return func(*args,**kwargs)
File "/usr/lib/python2.6/site-packages/fife/extensions/pychan/tools.py", line 83, in real_callback
    callback(*args,**kwargs)
File "/home/kili/SVN/unknown-horizons/trunk/horizons/gui/widgets/messagewidget.py", line 135, in show_text
    label.text = unicode(self.active_messages[self.position+index].message)
IndexError: list index out of range

Traceback (most recent call last):
  File "./run_uh.py", line 386, in <module>
    main()
  File "./run_uh.py", line 174, in main
    horizons.main.start(options)
  File "/home/kili/SVN/unknown-horizons/trunk/horizons/main.py", line 115, in start
    fife.run()
  File "/home/kili/SVN/unknown-horizons/trunk/horizons/engine.py", line 262, in run
    self.loop()
  File "/home/kili/SVN/unknown-horizons/trunk/horizons/engine.py", line 270, in loop
    self.engine.pump()
  File "/usr/lib/python2.6/site-packages/fife/fife.py", line 1749, in pump
    return _fife.Engine_pump(*args)
RuntimeError: Catched director exception
AL lib: ALc.c:1716: exit(): closing 1 Device
AL lib: ALc.c:1640: alcCloseDevice(): destroying 1 Context(s)

Kili
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: [UH] crash while playing with newest fife
« Reply #1 on: January 18, 2010, 09:51:44 am »

Quote
File "/home/kili/SVN/unknown-horizons/trunk/horizons/gui/widgets/messagewidget.py", line 135, in show_text
    label.text = unicode(self.active_messages[self.position+index].message)
IndexError: list index out of range

Looks like an issue with UH.  This error tells me that the self.position+index is not a valid index for the self.active_messages list.  You might have to do some debugging in messagewidget.py to see why this is happening.
Logged