collection rescan gets stalled at 69%

Bug #642744 reported by Momchil
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Exaile
Expired
Undecided
Unassigned

Bug Description

13:19:42,432:INFO : Compilation the best bg www.mp3-bg.com mp3 hits detected in /mnt/store2/mp3/bg/slavi (xl.collection)
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/exaile/xl/collection.py", line 113, in run
    self.collection.rescan_libraries()
  File "/usr/local/lib/exaile/xl/collection.py", line 263, in rescan_libraries
    library.rescan(notify_interval=scan_interval)
  File "/usr/local/lib/exaile/xl/collection.py", line 721, in rescan
    self._check_compilation(ccheck, compilations, tr)
  File "/usr/local/lib/exaile/xl/collection.py", line 659, in _check_compilation
    {'album':album, 'dir':basedir})
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 25: invalid continuation byte

the progress bar does not move at all, the scan does not continue

Revision history for this message
reacocard (reacocard) wrote :

What exaile version?

Changed in exaile:
status: New → Incomplete
Revision history for this message
Momchil (momchil-xaxo) wrote :

0.3.2

Revision history for this message
Jorge Ibáñez (yosoymicerinos) wrote :

Hi,
also have the same problem, using exaile 0.3.2.0. It's a problem handling files with incorrect encoding. There should be an exception handling. For the time being, solved this with the following changes:
--- /usr/local/lib/exaile/xl/collection_old.py 2010-09-21 12:35:23.000000000 +0200
+++ /usr/local/lib/exaile/xl/collection.py 2010-09-21 12:20:35.000000000 +0200
@@ -655,8 +655,11 @@
             artist in ccheck[basedir][album]:
             if not (basedir, album) in compilations:
                 compilations.append((basedir, album))
- logger.info("Compilation %(album)s detected in %(dir)s" %
+ try:
+ logger.info("Compilation %(album)s detected in %(dir)s" %
                         {'album':album, 'dir':basedir})
+ except UnicodeDecodeError:
+ logger.info("Unicode Error: Non printable file or directory name")

         ccheck[basedir][album].append(artist)

Revision history for this message
Momchil (momchil-xaxo) wrote :

seems to work, thank you

Momchil (momchil-xaxo)
Changed in exaile:
status: Incomplete → New
reacocard (reacocard)
Changed in exaile:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Exaile because there has been no activity for 60 days.]

Changed in exaile:
status: Incomplete → Expired
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.