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

deep scan never finishes: UnicodeDecodeError #336

Closed
hlef opened this issue Apr 19, 2018 · 4 comments
Closed

deep scan never finishes: UnicodeDecodeError #336

hlef opened this issue Apr 19, 2018 · 4 comments
Labels
bug priority:high Fix sooner than later
Milestone

Comments

@hlef
Copy link

hlef commented Apr 19, 2018

Hi,

#895979 was recently reported on the Debian bug tracking system:

Package: bleachbit
Version: 2.0-2
Severity: normal

Bleachbit hangs while doing deep scan

Console output:

Traceback (most recent call last):
  File "/usr/share/bleachbit/bleachbit/Worker.py", line 254, in run
    for dummy in self.run_deep_scan():
  File "/usr/share/bleachbit/bleachbit/Worker.py", line 313, in run_deep_scan
    for path in ds.scan():
  File "/usr/share/bleachbit/bleachbit/DeepScan.py", line 85, in scan
    for (dirpath, dirnames, filenames) in normalized_walk(top):
  File "/usr/share/bleachbit/bleachbit/DeepScan.py", line 59, in normalized_walk
    for result in os.walk(top, **kwargs):
  File "/usr/lib/python2.7/os.py", line 296, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 296, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 296, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 296, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 296, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 286, in walk
    if isdir(join(top, name)):
  File "/usr/lib/python2.7/posixpath.py", line 73, in join
    path += '/' + b
UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 18: invalid continuation byte

This may be someway related to #209, but since the stacktrace is different, I'm opening a new bug report.

Thanks for your work.

@az0 az0 added the bug label Apr 19, 2018
@az0 az0 added this to the 2.2 milestone Apr 19, 2018
@az0 az0 added the priority:high Fix sooner than later label Apr 19, 2018
@vasyugan
Copy link

I have been the submitter of the Debian bug and I can say that my locale is already in unicode (de_DE.UTF-8), so it is different from issue #209

@az0
Copy link
Member

az0 commented Apr 29, 2018

@hlef The stacktrace is similar, so the fix may be the same. Either way, opening another bug ticket is fie.

@vasyugan I understand you are already using Unicode, but would you please try this fix?

Either

  1. Apply the patch from commit 7f7451f
  2. Download the whole DeepScan.py file and overwrite your copy.

These two options above should be equivalent.

Please let me know how it goes.

@vasyugan
Copy link

vasyugan commented Apr 30, 2018 via email

@az0 az0 closed this as completed May 1, 2018
@az0
Copy link
Member

az0 commented Mar 4, 2019

The fix was published in BleachBit 2.1 beta. Soon the fix will be published also in BleachBit 2.2 final.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority:high Fix sooner than later
Projects
None yet
Development

No branches or pull requests

3 participants