decibel-audio-player.py crashed with IndexError in loadLibrary()

Bug #201128 reported by zajca
12
Affects Status Importance Assigned to Milestone
Decibel Audio Player
Fix Released
Undecided
Anonym25712
decibel-audio-player (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: decibel-audio-player

crashed when i use library

ProblemType: Crash
Architecture: i386
Date: Tue Mar 11 20:40:27 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/decibel-audio-player/src/decibel-audio-player.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: decibel-audio-player 0.09-1
PackageArchitecture: all
ProcCmdline: python /usr/bin/decibel-audio-player
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/decibel-audio-player']
SourcePackage: decibel-audio-player
Title: decibel-audio-player.py crashed with IndexError in loadLibrary()
Uname: Linux 2.6.24-11-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev sambashare video

Tags: apport-crash
Revision history for this message
zajca (zajcaa) wrote :
Revision history for this message
mehturt (mehturt) wrote :

I see the same right now, the output is:
Traceback (most recent call last):
  File "/usr/share/decibel-audio-player/src/modules/Library.py", line 438, in handleMsg
    self.loadLibrary(self.tree, self.currLib)
  File "/usr/share/decibel-audio-player/src/modules/Library.py", line 336, in loadLibrary
    currChar = artist[ART_NAME][0]
IndexError: string index out of range

This happens when loading a library.

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Any chances you can try 0.10?

Changed in decibel-audio-player:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
mehturt (mehturt) wrote :

I just downloaded 0.10 from http://decibel.silent-blade.org/index.php?n=Main.Download and I get the same error.

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Thanks for checking, I've opened an upstream task now.

Is there an easy way to reproduce this? I've just created another library and it was imported fine.

Changed in decibel-audio-player:
status: Incomplete → Confirmed
Revision history for this message
Anonym25712 (anonym25712) wrote :

Maybe this is caused by incorrect tags: the IndexError indicates that there is no character at all for the current artist.

Revision history for this message
mehturt (mehturt) wrote :

I was afraid you're going to ask this :D
Actually, the library import was working fine.. then I've changed some ID3v2 tags (just artist name for one album) and ever since then it is not importing properly..
I've changed the tags using kid3, so it should be fine.
If debugging could be added so that I could know which file it is failing on, I could reproduce this and check for the actual tag value.
Anyway, problem with ID3 tag should not stop whole library from being imported.

Revision history for this message
Asbjørn Clemmensen (func) wrote :

I am getting the same error, and I narrowed it down to one specific album which, it seems, has no tags at all. This is the error Decibel generates:

Traceback (most recent call last):
  File "/usr/local/share/decibel-audio-player/src/modules/Library.py", line 441, in handleMsg
    self.loadLibrary(self.tree, self.currLib)
  File "/usr/local/share/decibel-audio-player/src/modules/Library.py", line 339, in loadLibrary
    currChar = artist[ART_NAME][0]
IndexError: string index out of range

... which is the exact same as mehturt above.

When using metaflac --list on a random track from this one album, this is what I get:

METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4096 samples
  maximum blocksize: 4096 samples
  minimum framesize: 2270 bytes
  maximum framesize: 11860 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 9199260
  MD5 signature: 5669ff0323870528118f43196196eebb
METADATA block #1
  type: 3 (SEEKTABLE)
  is last: false
  length: 378
  seek points: 21
    point 0: sample_number=0, stream_offset=0, frame_samples=4096
    point 1: sample_number=438272, stream_offset=512014, frame_samples=4096
    point 2: sample_number=880640, stream_offset=1160330, frame_samples=4096
    point 3: sample_number=1318912, stream_offset=1829722, frame_samples=4096
    point 4: sample_number=1761280, stream_offset=2485795, frame_samples=4096
    point 5: sample_number=2203648, stream_offset=3144337, frame_samples=4096
    point 6: sample_number=2641920, stream_offset=3909715, frame_samples=4096
    point 7: sample_number=3084288, stream_offset=4654098, frame_samples=4096
    point 8: sample_number=3526656, stream_offset=5378249, frame_samples=4096
    point 9: sample_number=3964928, stream_offset=6176575, frame_samples=4096
    point 10: sample_number=4407296, stream_offset=7040682, frame_samples=4096
    point 11: sample_number=4849664, stream_offset=7851768, frame_samples=4096
    point 12: sample_number=5287936, stream_offset=8662464, frame_samples=4096
    point 13: sample_number=5730304, stream_offset=9648238, frame_samples=4096
    point 14: sample_number=6172672, stream_offset=10638137, frame_samples=4096
    point 15: sample_number=6610944, stream_offset=11567558, frame_samples=4096
    point 16: sample_number=7053312, stream_offset=12474432, frame_samples=4096
    point 17: sample_number=7495680, stream_offset=13338931, frame_samples=4096
    point 18: sample_number=7933952, stream_offset=14393668, frame_samples=4096
    point 19: sample_number=8376320, stream_offset=15446683, frame_samples=4096
    point 20: sample_number=8818688, stream_offset=16350123, frame_samples=4096
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 118
  vendor string: reference libFLAC 1.1.4 20070213
  comments: 6
    comment[0]: artist=
    comment[1]: title=
    comment[2]: album=
    comment[3]: date=
    comment[4]: tracknumber=00
    comment[5]: genre=A Cappella
METADATA block #3
  type: 1 (PADDING)
  is last: true
  length: 8192

When I remove the offending album from the folder and refresh the library, it all works as it should. I am using Decibel 0.10.

Revision history for this message
Anonym25712 (anonym25712) wrote :

Thanks for the information, it should be quite easy to fix in the next release.

Revision history for this message
Anonym25712 (anonym25712) wrote :

Should be fixed on trunk.

Changed in decibel-audio-player:
assignee: nobody → athropos
status: New → Fix Committed
Revision history for this message
Anonym25712 (anonym25712) wrote :

See v0.11

Changed in decibel-audio-player:
status: Fix Committed → Fix Released
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

decibel-audio-player (0.11-0ubuntu1) intrepid; urgency=low

 * New upstream release. (LP: #261235)
 * debian/control:
  - Add Recommends on python-cddb (LP: #261252)
  - Bumped Standards-Version to 3.8.0
  - Update Maintainer field as per spec.

 -- Andrew Starr-Bochicchio <email address hidden> Mon, 25 Aug 2008
16:28:03 -0400

Changed in decibel-audio-player:
status: Confirmed → Fix Released
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.