BleachBit Crashes after update if deep scann is enabled

Forums: 

Hello,
i use Bleachbit for several years and a problem occured yesterday after updating with yum upgrade (Fedora 27).
When a cleanning is running, at the end of the cleaning, Bleachbit meet a problem and stop without finishing the cleaning.
If i disable the deep scan options it works again.

Could you please help me to find a solution ? I would like to be able again to perform a full cleaning.

Best regards

Your operating system: 
Fedora 27

Is there any error message? If so, please include it verbatim.

Does it happen during a preview (not a clean) if only deep scan is selected?

---
Andrew, lead developer

Hello,
i got a fedora message : "We are sorry, it seems that there is a problem with bleachbit" (translation).
However, i can get a report :

posixpath.py:73:join:UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 25: invalid start byte

posixpath.py:73:join:UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 25: invalid start byte

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

it also happens during a preview (not a clean) if only deep scan is selected.

Thank you in advance for your help
regards

That looks just like GH#317. Please see the unanswered question there.

---
Andrew, lead developer

Hello
here is the report

BleachBit version 2.0
GTK+ version 2.24.32
SQLite version 3.20.1
local_cleaners_dir = None
locale_dir = /usr/share/locale/
options_dir = /home/AAAAA/.config/bleachbit
personal_cleaners_dir = /home/AAAAA/.config/bleachbit/cleaners
system_cleaners_dir = /usr/share/bleachbit/cleaners
locale.getdefaultlocale = ('fr_FR', 'UTF-8')
os.getenv('DESKTOP_SESSION') = gnome
os.getenv('LOGNAME') = AAAAA
os.getenv('USER') = AAAAA
os.getenv('SUDO_UID') = None
os.path.expanduser('~') = /home/AAAAA
platform.linux_distribution() = ('Fedora', '27', 'Twenty Seven')
platform.platform = Linux-4.15.10-300.fc27.x86_64-x86_64-with-fedora-27-Twenty_Seven
platform.version = #1 SMP Thu Mar 15 17:13:04 UTC 2018
sys.argv = ['/usr/bin/bleachbit']
sys.executable = /usr/bin/python
sys.version = 2.7.14 (default, Mar 14 2018, 13:36:31)
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
__file__ = /usr/share/bleachbit/Diagnostic.pyc

thanks in advance

I fixed it. Are you able to test by applying the patch for commit 7f7451f? Alternatively you can download the whole DeepScan.py file and overwrite your copy.

---
Andrew, lead developer