Bleachbit hangs for one minute before opening
I think I have reported this issue in the past and never found the cause or solution. That thread is here: https://www.bleachbit.org/forum/bleachbit-portable-v16-wont-load
To be clear, i am using a fresh portable version of BleachBit 2.0. But this started happening with my usual BleachBit 2.0 that I use, just with different options ticked. I tried a fresh copy to check if it was some option i had selected or just a corrupted .ini file.
What happened was when I tried to run BleachBit it takes around a minute to load. Checking Task Manager in Windows 10 x64 I see one of my i5 cores is nearly maxed out at 90%. This happens if ESET Internet Security 11.0.159.9 protection is either enabled or paused.
Is there some program I can use to tell me where BleachBit is hanging, so I can properly report the bug? Right now I feel as though I am guessing with no tools to provide you with any information or logs.
andrew
Tue, 03/13/2018 - 18:27
Permalink
Do you have Winapp2.ini
Do you have Winapp2.ini enabled? Typically this is enabled in the BleachBit preferences. This can slow down startup because it is checking thousands of files, directories, and registry entries.
I agree that a minute is not acceptable, so removing Winapp2.ini temporarily to measure the difference in speed would help with troubleshooting.
To remove Winapp2.ini, you can go to %APPDATA%\BleachBit and delete the Winapp2.ini file. Make sure the option is disabled in preferences, or it will come back. If you need more detailed instructions, let me know.
I have more options depending on your reply
---
Andrew, lead developer
captaincackle
Tue, 03/13/2018 - 18:54
Permalink
Winapp2.ini is enabled and
Winapp2.ini is enabled and the delay only happens with this. If I delete the winapp2.ini, Bleacbit quickly loads, but then downloads/updates winapp2.ini and the delays start again.
I have made sure that all checkboxes have been cleared and still get the delay.
andrew
Tue, 03/13/2018 - 21:25
Permalink
In the preferences enable
In the preferences enable Winapp2.ini and disable auto-hide. Does this make it much faster (compared to Winapp2.ini enabled with auto-hide enabled)?
---
Andrew, lead developer
captaincackle
Wed, 03/14/2018 - 08:37
Permalink
Unchecking "Hide irrelevant
Unchecking "Hide irrelevant cleaner" brings the load speed back to what I am used, which is less than a couple of seconds. This definitely fixes the issue for me - load time is now ~1 second rather than ~1 minute when that option is ticked.
andrew
Wed, 03/14/2018 - 22:33
Permalink
That's good for
That's good for troubleshooting, but I will try for a more permanent solution.
I built a special version that logs extra information about the speed of Winapp2.ini: BleachBit 2.0.675
Please try this version, enable auto-hide, and enable the debug log using the --debug-log command line parameter. Let me know if you need help with this.
If any individual entry in Winapp2.ini takes longer than 3 seconds, it will log it.
It also logs how long it takes to load the whole Winapp2.ini.
---
Andrew, lead developer
captaincackle
Thu, 03/15/2018 - 04:53
Permalink
This is the copy and paste
I downloaded and installed https://ci.appveyor.com/api/buildjobs/hrb3xpsxp5p84plb/artifacts/BleachB... and ran it using the command "%ProgramFiles(x86)%\BleachBit\bleachbit_console.exe" --gui --debug-log=%USERPROFILE%\desktop\bleachbit.log
This is the copy and paste from the black command prompt window that appears:
When "automatically hiding cleaner 'warzone2100'" is displayed, this is the point it hangs for a very long time. So perhaps "automatically hiding cleaner 'winapp2_google_chrome'" is causing the issue? Except I don't have Google Chrome installed.
This is the Bleachbit.log from the same session.
andrew
Thu, 03/15/2018 - 16:40
Permalink
I published BleachBit 2.0.683
I published BleachBit 2.0.683 that may help isolate the issue. It will log in more detail how long certain parts take and what it is doing.
Would you please try this again like before (with auto-hide and winapp2.ini both enabled)? Feel free to post only the interesting lines from the log file. The whole log is not needed.
If it points out a section that is slow, would you please also let me know how many files the preview finds in that section?
Also, it has two startup improvements, though I believe they may not help your system. One is specific to Linux, and the other relates only to certain options under the System category.
---
Andrew, lead developer
captaincackle
Thu, 03/15/2018 - 18:53
Permalink
That build seems to have
That build seems to have found the problem.
In the Bleacbit window this is shown:
For completion this is the complete list of timing shown:
captaincackle
Thu, 03/15/2018 - 18:54
Permalink
By the way the long list of
By the way the long list of timings is copied from the second run on Bleachbit.
andrew
Thu, 03/15/2018 - 20:53
Permalink
Interesting. Do you have
Interesting. Do you have Steam?
I wonder whether this is related to issue GH #257.
---
Andrew, lead developer
captaincackle
Fri, 03/16/2018 - 03:38
Permalink
Yes, I hvae Steam installed.
Yes, I hvae Steam installed.
captaincackle
Sun, 03/18/2018 - 08:21
Permalink
Any information on updates or
Any information on updates or progress? Let me know if I can help out in any way - ie: more information or testing.
andrew
Sun, 03/18/2018 - 15:10
Permalink
BleachBit version 2.0.692
Thanks for working through this.
BleachBit version 2.0.692 should start up much faster on system. It has an optimization for the auto-hide feature when used with Winapp2.ini cleaners. Let me know how this affects startup on your system.
Please also check how many files are in the folder %ProgramFiles%\Steam. (You can count by right clicking on the folder name Steam when browsing C:\Program Files\). My system has ~4000 files after installing Steam and before installing any games. This quantity was part of the problem.
Finally, please check how long it takes to preview Steam under the Games category. On my system this still takes about 10 seconds because there are many files in the folder that is scanned. (Fewer files show up to be cleaned because most files do not pass the filter.)
---
Andrew, lead developer
captaincackle
Mon, 03/19/2018 - 05:17
Permalink
Tested and it is perfect now!
Tested and it is perfect now! Thank you very much. Is this beta safe to use until a stable version is released? When is the next stable release?
My Steam folder is around 18.9GB, consisting of 91,033 Files, 4,338 Folders. This could be why the problem was noticeable in my particular instance.
Previewing Steam takes around a minute. The same task with CCleaner only takes around 2 seconds. Other noticeable delays under Games was Steam Games taking around 1 minute and 30 seconds (CCleaner took around 2 seconds) and Steam Installers which took around 10 minutes (not a typo!) and 5 seconds, 1(0 seconds with CCleaner).
I hope that bringing these delays to light helps you. If you need more tests or information, let me know.
andrew
Mon, 03/19/2018 - 12:41
Permalink
Yes, version 2.0.692 should
Yes, version 2.0.692 should be safe to use. I plan for the next stable release in a few months (much faster than the time from 1.12 to 2.0).
I may need to save the "slow preview for Steam" issue for later. So do I not lose it, please consider filing a bug report in GitHub.
---
Andrew, lead developer