Bleachbit v1.4 crashes at launch (before GUI), v1.2 runs fine

Bug #1372179 reported by Oliver Tonet
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
BleachBit
Fix Released
High
Andrew Ziem

Bug Description

When launching bleachbit.exe or bleachbit_console.exe on Windows 8.1 Pro 64-bit, the program crashes immediately before displaying a GUI. This happens with v.1.4, both with the installed and the portable edition. Version 1.2 runs fine on the same PC.
The bleachbit.exe.log file reports:

Traceback (most recent call last):
  File "bleachbit.py", line 43, in <module>
  File "bleachbit\GUI.pyo", line 40, in <module>
  File "bleachbit\Cleaner.pyo", line 40, in <module>
  File "bleachbit\Special.pyo", line 27, in <module>
  File "bleachbit\Options.pyo", line 297, in <module>
  File "bleachbit\Options.pyo", line 65, in __init__
  File "bleachbit\Options.pyo", line 194, in restore
  File "bleachbit\FileUtilities.pyo", line 394, in guess_overwrite_paths
  File "bleachbit\FileUtilities.pyo", line 443, in same_partition
  File "bleachbit\FileUtilities.pyo", line 324, in free_space
WindowsError: [Error 3] The system cannot find the path specified.

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Thank you for the good bug report. Please try BleachBit 1.5 beta listed here and let me know whether this helps
https://github.com/az0/bleachbit/issues/27

If this does help, please let me know if you have any special drives installed. For example, others had a virtual drive letter supporting Microsoft Office Click and Run.

Changed in bleachbit:
importance: Undecided → High
milestone: none → 1.6
Revision history for this message
Oliver Tonet (otonet) wrote :

I tried the beta (portable edition). The GUI starts and I was able to use the shred folder function.
Upon exit, I got an error message and the following appears in the log:

Traceback (most recent call last):
  File "bleachbit\FileUtilities.pyo", line 395, in guess_overwrite_paths
  File "bleachbit\FileUtilities.pyo", line 448, in same_partition
  File "bleachbit\FileUtilities.pyo", line 324, in free_space
WindowsError: [Error 3] The system cannot find the path specified.
Traceback (most recent call last):
  File "bleachbit\FileUtilities.pyo", line 395, in guess_overwrite_paths
  File "bleachbit\FileUtilities.pyo", line 448, in same_partition
  File "bleachbit\FileUtilities.pyo", line 324, in free_space
WindowsError: [Error 3] The system cannot find the path specified.

I was not able to reproduce the error on a subsequent run.
I did not try the non-portable version or other options.
Regards,
Oliver

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Oliver,

Thank you for testing again. Do you have Microsoft Office Click and Run installed? It may have been preloaded with your computer.

By the way, you can probably force the error again by deleting bleachbit.ini which, for the portable edition, is in the same folder as bleachbit.exe .

Revision history for this message
Oliver Tonet (otonet) wrote :

Andrew,
if you meant Office Click-to-Run, I don't have that installed.
Actually, I noticed that the "see the logfile" popup related to my last error above occurs at launch of BleachBit Portable 1.5a, immediately after the GUI is displayed. It occurs only on the first run, and not on subsequent runs.
If I delete/rename the bleachbit.ini file prior to launching bleachbit.exe, I get no error message.
If I then close BleachBit and put the .ini file back, and launch BleachBit again, I get the error, but again only on first run.

The .ini file initialy just contains one line: "[Portable]".
After having closed BleachBit immediately after the GUI appears at the first run, the .ini file contains (I truncated the hashsalt):

[list/shred_drives]

[preserve_languages]
en = True

[bleachbit]
hashsalt = 114...2d5
update_winapp2 = False
check_beta = False
check_online_updates = True
first_start = True
version = 1.5
auto_start = False
shred = False

[Portable]

[hashpath]

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Oliver, to help troubleshoot this issue, would you please run the following command to get information about your drives?

wmic /output:%userprofile%\desktop\drives.csv logicaldisk get /all /format:csv

If you want to see what it does, I am attaching output from my system.

You can either run it in a CMD.EXE window, or you can type it in the Run dialog by holding the WINDOWS key while pressing the R key.

Within a few seconds, a file called "drives.csv" should appear on the desktop. Then would you please either attach that here or email it to me directly at <email address hidden>? Thank you

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Please try this

1. Close BleachBit
2. Remove BleachBit.ini. If it is installed, it is in %APPDATA%\BleachBit\BleachBit.ini. Otherwise, it's in the same directory as BleachBit.exe.
3. Update to BleachBit version 1.5.1 (portable or installed---see below)
4. Start BleachBit
5. In the menu bar, click Help
6. Click System Information
7. Copy the line os.getenv('TMP')
8. Please paste that line here
9. Close BleachBit
10. Let me know whether there was another crash

BleachBit version 1.5.1 installer
http://sourceforge.net/projects/bleachbit/files/bleachbit/1.5.1/BleachBit-1.5.1-setup.exe/download

BleachBit version 1.5.1 portable
http://sourceforge.net/projects/bleachbit/files/bleachbit/1.5.1/BleachBit-1.5.1-portable.zip/download

Thank you

Revision history for this message
Oliver Tonet (otonet) wrote :

Hello Andrew,
did the procedure with v1.5.1 portable. The line says:
os.getenv('TMP') = C:\Users\oly\AppData\Local\Temp
the directory exists and is indeed the Temp folder of my user account.
No crash or error message this time!

Do you still need the info about my drives (see your penultimate post)?
Cheers,
Oliver

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Oliver,

Thank you for testing. No, I think this bug is closed now.

Changed in bleachbit:
assignee: nobody → Andrew Ziem (ahziem1)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.