Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError while scanning library #2143

Closed
tilmanginzel opened this issue Dec 11, 2016 · 9 comments
Closed

IndexError while scanning library #2143

tilmanginzel opened this issue Dec 11, 2016 · 9 comments
Labels
Milestone

Comments

@tilmanginzel
Copy link

Hey,

while trying to scan my library, I get an IndexError: list index out of range.
I suspect this or this commit broke something, but I didn't go too much into detail there.

=== SYSTEM INFORMATION:
Quod Libet 3.7.1
Mutagen 1.34.1
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] linux2
Platform Linux-4.4.0-47-generic-x86_64-with-LinuxMint-18-sarah
=== STACK TRACE

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/quodlibet/util/copool.py", line 25, in wrap
    for value in func(*args, **kwargs):

  File "/usr/lib/python2.7/dist-packages/quodlibet/library/libraries.py", line 690, in rebuild
    for value in self.scan(paths, exclude, cofuncid):

  File "/usr/lib/python2.7/dist-packages/quodlibet/library/libraries.py", line 740, in scan
    item = self.add_filename(fullfilename, False)

  File "/usr/lib/python2.7/dist-packages/quodlibet/library/libraries.py", line 840, in add_filename
    song = MusicFile(filename)

  File "/usr/lib/python2.7/dist-packages/quodlibet/formats/_misc.py", line 118, in MusicFile
    return loader(filename)

  File "/usr/lib/python2.7/dist-packages/quodlibet/formats/mp4.py", line 91, in __init__
    cur, total = values[0]

IndexError: list index out of range
@lazka
Copy link
Member

lazka commented Dec 11, 2016

Thanks

@lazka lazka added the bug label Dec 11, 2016
@lazka
Copy link
Member

lazka commented Dec 11, 2016

(I haven't looked into it) In case this is something new for you, my guess is that

  • it is because you have new mp4 file which triggers this bug in QL
  • you updated to 3.7. In <=3.6 such errors would be ignored and the file not loaded.

@lazka lazka added this to the 3.8.0 Release milestone Dec 11, 2016
@tilmanginzel
Copy link
Author

tilmanginzel commented Dec 11, 2016

Your second guess is right. Previously I had version 3.5.3 installed, which worked fine. I wouldn't care too much if the file would be ignored. But I don't know the underlying problem, so ignoring the error could be wrong.

@lazka
Copy link
Member

lazka commented Dec 11, 2016

OK. Sadly I can't think of an easy workaround.

You can use exfalso and look through your music library until you get an error, so you can at least see in which directory the problematic file is and maybe move that file out of the way.

@tilmanginzel
Copy link
Author

tilmanginzel commented Dec 11, 2016

Ok. Would it help if I identify the file in question and give you more info about it, or do you already know the underlying problem?

The log statement will help, thx!

@lazka
Copy link
Member

lazka commented Dec 11, 2016

Having a real file always helps, but it's not required. If you find it please send to reiter.christoph@gmail.com Thanks!

@tilmanginzel
Copy link
Author

tilmanginzel commented Dec 11, 2016

Check your inbox. ;) I'll remove the file locally, but maybe it will help debugging the problem.

@lazka lazka closed this as completed in a08f7d9 Dec 11, 2016
@lazka
Copy link
Member

lazka commented Dec 11, 2016

Thanks!

@tilmanginzel
Copy link
Author

Wow, that was a fast fix! Great, now the file even gets scanned. Thank you very much. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants