This seems to be a recent development as a previous Deep Scan a month ago did not trigger this error.
Avast Security 15.3 (2a902fb2b965) Definitions: 22080322
Scan Settings: Notify of PUP, Scan Archives, Test Whole Files
While doing a Deep Scan of my system, I noticed that the scan finished surprisingly quickly and that it did not scan as many files as it did on the previous run.
The results screen did not provide any useful information, only "Scan Failed". I was able to locate the full scan log using Console.app in /Library/Logs/Avast/scan_helper.log.
This revealed that a whole bunch of Windows-like files were failing as unscannable.
Here is a sample:
2022-08-03 12:41:48.118-0400 [38868: aa158] NOTICE scanner: error occurred while in fallback mode 2; reporting /Users/<REDACTED>/.pyenv/versions/2.7.18/lib/python2.7/site-packages/pip/_vendor/distlib/t32.exe as unscannable
2022-08-03 12:41:49.119-0400 [38868: aa158] WARNING scanner: failed to send data to client
2022-08-03 12:41:58.961-0400 [38868: aa158] WARNING scanner: error on client connection 0
2022-08-03 12:41:58.961-0400 [38868: aa158] ... scanner: connection closed on message boundary
This is not specific to Python binaries or 32-bit binaries. It also fails to scan .dlls and other .exes. The largest source of these is my steamapps folder which contains a bunch of Unity/Mono-based games. There are also some node_modules that I expect as well. None of the entries I found in scan_helper.log seem to be unexpected (I am a developer), but after a certain number -- I cannot tell how many, and/or it varies -- the scan gives up. It reports "No Threats Found" but says "Scan Failed".
This is frustrating for a number of reasons:
- First, I cannot complete a whole scan, and I cannot pick up where I left off, so I don't know how much was scanned or how to do it piecemeal.
- Second, there is no indication from the UI of what the actual problem is. Only getting "Scan Failed" but seeing "No Threats Detected" is confusing and doesn't really leave you understanding what you're protection status really is. (Luckily being a dev, I went trolling through Console.app to see if there was any useful info, and thankfully there was.)
Unfortunately I do not know what version of the Avast I was using when the scan was working properly. All I know is that I last did a Deep Scan about a month ago (so first week of July 2022).
Any ideas what may be wrong or if there is a fix in the works from the Avast team?
I have not yet tried to uninstall and reinstall the application, but that will be my next step if I can't get any full scan done, even of my /Users/<me> dir.
Edit: M1 macOS Monterey 12.5 (21G72)