Opened 5 years ago

Closed 5 years ago

#2956 closed bug (Fixed)

Filestab IndexError: tuple index out of range

Reported by: Cas Owned by:
Priority: minor Milestone: 1.3.14
Component: GTK UI Version: 1.3.13
Keywords: Cc:

Description

Adding a magnet and leaving the files_tab open creating a timing issue where file_progress is populated but file_priorities is not:

[CRITICAL] 16:15:57 files_tab:469 {'files': (), 'file_progress': 0.0, 'file_priorities': ()}
[CRITICAL] 16:15:59 files_tab:469 {'files': ({...}), 'file_progress': (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), 'file_priorities': ()}
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/protocols/policies.py", line 118, in dataReceived
    self.wrappedProtocol.dataReceived(data)
  File "/home/ubuntu/deluge-1.3-git/deluge/ui/client.py", line 179, in dataReceived
    d.callback(request[2])
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 362, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/ubuntu/deluge-1.3-git/deluge/ui/gtkui/files_tab.py", line 503, in _on_get_torrent_status
    file_priority = status["file_priorities"][index]
exceptions.IndexError: tuple index out of range

Doesn't happen every time but often enough to replicate.

Change History (1)

comment:1 Changed 5 years ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

Fixed 1.3-stable: [42ba9086d0d], [10ebf9b0] develop: [b7162fab3]

Note: See TracTickets for help on using tickets.