Ticket #311 (new defect)

Opened 2 years ago

no "Albums" in container "Music"

Reported by: smoe Assigned to: philn
Priority: major Milestone:
Component: MediaServer Backend Banshee Version:
Keywords: Cc: smoe@realiteam.de

Description

when i try to fetch the resources via moovida the following exception occurs in coherence:

Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1170, in run
    self.mainLoop()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1179, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 778, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 577, in _tick
    taskObj._oneWorkUnit()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 458, in _oneWorkUnit
    result = self._iterator.next()
  File "/usr/lib/pymodules/python2.6/coherence/backends/banshee_storage.py", line 621, in query_db
    artist = self.get_artist_with_id(row.ArtistID)
  File "/usr/lib/pymodules/python2.6/coherence/backends/banshee_storage.py", line 657, in get_artist_with_id
    row = self.db.sql_execute(q, artist_id)[0]
exceptions.IndexError: list index out of range
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1170, in run
    self.mainLoop()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1179, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 778, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 577, in _tick
    taskObj._oneWorkUnit()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 458, in _oneWorkUnit
    result = self._iterator.next()
  File "/usr/lib/pymodules/python2.6/coherence/backends/banshee_storage.py", line 716, in query_db
    album = self.get_album_with_id(row.AlbumID)
  File "/usr/lib/pymodules/python2.6/coherence/backends/banshee_storage.py", line 663, in get_album_with_id
    artist = self.get_artist_with_id(row.ArtistID)
  File "/usr/lib/pymodules/python2.6/coherence/backends/banshee_storage.py", line 657, in get_artist_with_id
    row = self.db.sql_execute(q, artist_id)[0]
exceptions.IndexError: list index out of range

it seems there is an empty resultset for the query in get_artist_with_id() function, but i'm no python programmer (neither less i wish i would be one :-)

i use ubuntu 10.04, banshee 1.6.6, moovida 1.0.9