I've been using positron to add a large quantity of files to my Neuros, and
there are a couple of files which crash positron. I can find no difference
between these files and the others in the collection. Here's the output:
/mp3$ positron add Joy_Division/Still/\[12\]-Shadow_Play.mp3
Generating file list...
Joy_Division/Still/[12]-Shadow_Play.mp3
Traceback (most recent call last):
File "/usr/bin/positron", line 157, in ?
main(sys.argv)
File "/usr/bin/positron", line 142, in main
cmd.run(config, myNeuros, remaining[1:])
File
"/root/positron/positron-1.0b2/debian/positron/usr/lib/python2.2/site-packages/positron/cmd_add.py",
line 85, in run
File "/usr/lib/python2.2/site-packages/positron/add_file.py", line 41, in
gen_filelist
if not mp3file.detect(fullname):
File
"/root/positron/positron-1.0b2/debian/positron/usr/lib/python2.2/site-packages/positron/audiofile.py",
line 55, in detect
File
"/root/positron/positron-1.0b2/debian/positron/usr/lib/python2.2/site-packages/positron/MP3Info.py",
line 440, in __init__
File
"/root/positron/positron-1.0b2/debian/positron/usr/lib/python2.2/site-packages/positron/MP3Info.py",
line 305, in __init__
File
"/root/positron/positron-1.0b2/debian/positron/usr/lib/python2.2/site-packages/positron/MP3Info.py",
line 412, in _parse_xing
struct.error: unpack str size does not match format
There were 3 files in my collection which caused this behavior. My workaround
was to manually copy all my files to the neuros, and run a positron rebuild.
This also crashed when trying to process these files, so I added a print
statement in /usr/lib/python2.2/site-packages/positron/add_file.py so I could
find the files being crashed on, and removed those files. Eventually, the
rebuild succeeded after I'd found all three bad files. I'd be happy to get one
or all of these files to you if you tell me the best way for this.
If nothing else, it would be great if positron would gracefully skip a problem
file instead of bailing out.
I'm running positron version 1.0b2