Plugin crashes when changing views

Bug #323250 reported by Jesús Corrius
2
Affects Status Importance Assigned to Milestone
Elisa Movie Trailers Plugin
Confirmed
High
Unassigned

Bug Description

Steps to reproduce:

1. Empty the picture cache.
2. Start Elisa
3. Go to "Videos -> Internet -> Movie trailers"
4. Change the view

Current result:

You get an exception.

Expected result:

You don't get the exception.

Here it is the back trace of the exception:

Python 2.5.2: C:\OABuild\distribuable-dependencies\deps\Release\bin\python.exe
Fri Jan 30 17:41:04 2009

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

 c:\src\upicek_plugins\elisa-plugins\elisa\plugins\pigment\pigment_frontend.py in _update_pass_callb
ack(self=<elisa.plugins.pigment.pigment_frontend.PigmentFrontend object at 0x03645BF0>, viewport=<__
main__.PgmGlViewport object (pgmglviewport0) at 0x3867850>, ticker=<pgm.timing.ticker.Ticker object
at 0x038637D0>)
  702
  703 def _update_pass_callback(self, viewport, ticker):
  704 ticker.tick()
  705
  706 def _resize_canvas(self):
ticker = <pgm.timing.ticker.Ticker object at 0x038637D0>
ticker.tick = <bound method Ticker.tick of <pgm.timing.ticker.Ticker object at 0x038637D0>>

 C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\pgm\timing\ticker.py in tick(se
lf=<pgm.timing.ticker.Ticker object at 0x038637D0>)
   43 update_time = long(time.time() * 1000)
   44 for controller in self._controllers:
   45 controller.update(update_time)
   46
   47 def get_controllers(self):
controller = <controller.Controller(begin=0, duration=200, re....KeyFrame(0.0, 1.00)>], interpolatio
n=LINEAR)>])>
controller.update = <bound method Controller.update of <controller.C...KeyFrame(0.0, 1.00)>], interp
olation=LINEAR)>])>>
update_time = 1233333663995L

 C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\pgm\timing\controller.py in upd
ate(self=<controller.Controller(begin=0, duration=200, re....KeyFrame(0.0, 1.00)>], interpolation=LI
NEAR)>])>, update_time=1233333663995L)
  274 # Stop the animation
  275 else:
  276 self.stop()
  277 return False
  278
self = <controller.Controller(begin=0, duration=200, re....KeyFrame(0.0, 1.00)>], interpolation=LINE
AR)>])>
self.stop = <bound method Controller.stop of <controller.Con...KeyFrame(0.0, 1.00)>], interpolation=
LINEAR)>])>>

 C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\pgm\timing\controller.py in sto
p(self=<controller.Controller(begin=0, duration=200, re....KeyFrame(0.0, 1.00)>], interpolation=LINE
AR)>])>)
  252 # Let's call the end callback
  253 if self._end_callback:
  254 self._end_callback(self)
  255
  256 # Protected methods
self = <controller.Controller(begin=0, duration=200, re....KeyFrame(0.0, 1.00)>], interpolation=LINE
AR)>])>
self._end_callback = <function faded_out at 0x099C2FB0>

 c:\src\upicek_plugins\elisa-plugins\elisa\plugins\poblesec\base\coverflow.py in faded_out(timer=<co
ntroller.Controller(begin=0, duration=200, re....KeyFrame(0.0, 1.00)>], interpolation=LINEAR)>])>)
  278 def faded_out(timer):
  279 self._fade_in_title()
  280 selected_item = self.model[self.nodes.selected_item_index]
  281 self.set_title_from_item(selected_item)
  282
selected_item undefined
self = <AppleTrailersCoverflowController object at 0xb2...gment_controller+PigmentController at 0xa0
56390)>
self.model = []
self.nodes = <CoverflowList object at 0xb237dc8 (elisa+plugins+pigment+widgets+list+List at 0x9cca42
0)>
self.nodes.selected_item_index = 0
<type 'exceptions.IndexError'>: list index out of range
    __class__ = <type 'exceptions.IndexError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.IndexError object at 0x099C8120>
    __dict__ = {}
    __doc__ = 'Sequence index out of range.'
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.IndexError object at 0x099C8
120>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.IndexError object at 0x099C8120>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.IndexError object at 0x099C8120>
    __hash__ = <method-wrapper '__hash__' of exceptions.IndexError object at 0x099C8120>
    __init__ = <method-wrapper '__init__' of exceptions.IndexError object at 0x099C8120>
    __new__ = <built-in method __new__ of type object at 0x10232C10>
    __reduce__ = <built-in method __reduce__ of exceptions.IndexError object at 0x099C8120>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.IndexError object at 0x099C8120>
    __repr__ = <method-wrapper '__repr__' of exceptions.IndexError object at 0x099C8120>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.IndexError object at 0x099C8120>
    __setstate__ = <built-in method __setstate__ of exceptions.IndexError object at 0x099C8120>
    __str__ = <method-wrapper '__str__' of exceptions.IndexError object at 0x099C8120>
    args = ('list index out of range',)
    message = 'list index out of range'

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "c:\src\upicek_plugins\elisa-plugins\elisa\plugins\pigment\pigment_frontend.py", line 704, in
 _update_pass_callback
    ticker.tick()
  File "C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\pgm\timing\ticker.py", l
ine 45, in tick
    controller.update(update_time)
  File "C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\pgm\timing\controller.py
", line 276, in update
    self.stop()
  File "C:\OABuild\Distribuable-dependencies\deps\Release\lib\site-packages\pgm\timing\controller.py
", line 254, in stop
    self._end_callback(self)
  File "c:\src\upicek_plugins\elisa-plugins\elisa\plugins\poblesec\base\coverflow.py", line 280, in
faded_out
    selected_item = self.model[self.nodes.selected_item_index]
IndexError: list index out of range

Changed in elisa-plugin-movie-trailers:
assignee: nobody → jcorrius
importance: Undecided → High
status: New → Confirmed
Olivier Tilloy (osomon)
Changed in elisa-plugin-movie-trailers:
assignee: Jesús Corrius (jcorrius) → nobody
Revision history for this message
Michał Sawicz (saviq) wrote :

I can't reproduce that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.