Author Topic: PC shutdown problems  (Read 48557 times)

0 Members and 1 Guest are viewing this topic.

Offline salvatore27

  • Newbie
  • *
  • Posts: 6
PC shutdown problems
« on: May 11, 2020, 04:06:47 PM »
Windows 7, Avast Premium Security
Since I installed the program update on May 4, 2020, the system is very slow when shutting down the PC.
If I go to the Event Viewer / System and look for events that occurred during shutdown, I find an error reporting "Avast Antivirus service was not shut down properly after receiving a system shutdown check".
If, before shutting down the computer, I deactivate the main protections "files, behavior, web, e-mail) until the next restart, then the computer will shut down normally in a few seconds.

Offline info2433

  • Newbie
  • *
  • Posts: 1
Re: PC shutdown problems
« Reply #1 on: May 14, 2020, 11:36:40 AM »
I'have  the same problem, and seems to be related with network connection. If all connection are deactivated before, shutdown is realized normally.
The problem occurs during avast service shutdown.
« Last Edit: May 14, 2020, 11:38:39 AM by info2433 »

Offline Asyn

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 76037
    • >>>  Avast Forum - Deutschsprachiger Bereich  <<<
Re: PC shutdown problems
« Reply #2 on: May 14, 2020, 12:35:46 PM »
- Which Avast..? (Free/Pro/IS/Premium)
- Which version/build of Avast..?
- OS..? (32/64 Bit..? - which SP/Build..?)
- Other security related software installed..?
- Which AV(s) did you use before Avast..?
W8.1 [x64] - Avast Free AV 23.3.8047.BC [UI.757] - Firefox ESR 102.9 [NS/uBO/PB] - Thunderbird 102.9.1
Avast-Tools: Secure Browser 109.0 - Cleanup 23.1 - SecureLine 5.18 - DriverUpdater 23.1 - CCleaner 6.01
Avast Wissenswertes (Downloads, Anleitungen & Infos): https://forum.avast.com/index.php?topic=60523.0

Offline cc2cc2

  • Newbie
  • *
  • Posts: 1
Re: PC shutdown problems
« Reply #3 on: May 14, 2020, 01:47:49 PM »
Same issue, take few minutes to shutdown my PC.
W7 x64
Avast Free 20.3.2405 build 20.3.5200.561 (4 May 2020)

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48550
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: PC shutdown problems
« Reply #4 on: May 14, 2020, 02:41:01 PM »
Same issue, take few minutes to shutdown my PC.
W7 x64
Avast Free 20.3.2405 build 20.3.5200.561 (4 May 2020)
It's been reported to Avast.
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

Offline TheOwner

  • Poster
  • *
  • Posts: 406
Re: PC shutdown problems
« Reply #5 on: May 14, 2020, 02:47:59 PM »
Same for me! I already told this in main thread in 20.3 version but without answer. For me never happened during PC restart, but happen every shutdown. I am also on Win 7 64bit.
« Last Edit: May 14, 2020, 05:23:46 PM by TheOwner »

Offline salvatore27

  • Newbie
  • *
  • Posts: 6
Re: PC shutdown problems
« Reply #6 on: May 14, 2020, 06:03:56 PM »
W7 x64
Avast Premium Security
Update 4/05/2020
Ver 20.3.2405
Buld 20.3.5200.561

Offline jaroslav.nix

  • Avast team
  • Jr. Member
  • *
  • Posts: 71
Re: PC shutdown problems
« Reply #7 on: May 15, 2020, 10:23:33 AM »
Thank you for reporting. It might be known bug, which is going to be fixed in the upcoming 20.4. release (internal tracking number AV-22446), but it can be also something new. Could you please try to help us to analyze the issue and install xperf tool. The 64-bit version for Windows 7 can be downloaded from:
http://public.avast.com/~nix/users/xperf/xperf_x64.msi

after installation, please run the tool via command (in elevated command prompt):
"c:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\xbootmgr.exe"  -trace shutdown -numRuns 1 -traceFlags DiagEasy+DISPATCHER+Profile+SYSCALL -stackwalk Profile+CSwitch+ReadyThread

The install folder will probably differ, this is example for Windows 10. This command will reboot you computer twice and create new file with ETL file extension. Please ZIP it and share the file with us via FTP:
https://support.avast.com/en-sg/article/FTP-file-upload

and let us know the uploaded file name. Thank you.

Offline salvatore27

  • Newbie
  • *
  • Posts: 6
Re: PC shutdown problems
« Reply #8 on: May 16, 2020, 05:03:12 PM »
Thank you jaroslav.nix, I followed your instructions.
I opened a ticket 10761840 on Avast support and uploaded the ETL file to the Incoming folder.
The file name is 10761840.7z.
I hope the problem will be solved with the next Avast update.

Offline jaroslav.nix

  • Avast team
  • Jr. Member
  • *
  • Posts: 71
Re: PC shutdown problems
« Reply #9 on: May 18, 2020, 01:20:14 PM »
Thank you for the log.

I am still not 100% sure its really the same issue as we were able to reproduce locally. Could you please try to install latest beta version of AV 20.4.:
https://forum.avast.com/index.php?topic=234203.0

and let us know if the problem disappear?

If not, please try to disable the Avast self-defence (settings -> trouble shooting) and then try to stop the avast service from elevated CML line via command:
net stop "avast! Antivirus"

wait a bit and if the service is not stopped, please try to create a dump of it via Task manager (right mouse click).  Then please ZIP the dump flle and upload it to the FTP server and again, let us known the file name. Thank you and sorry for inconveniences.

Offline jaroslav.nix

  • Avast team
  • Jr. Member
  • *
  • Posts: 71
Re: PC shutdown problems
« Reply #10 on: May 18, 2020, 01:26:22 PM »
Even better would be the full computer memory dump (from the frozen stopping of avast service), because we see some 3rd party drivers (e.g.  McAfee Endpoint Encryption) in the logs, so it might be also connected to some conflict with 2rd party sw. You can let the computer got to BSOD and create the full dump via this procedure:
https://support.avast.com/en-my/article/Windows-complete-memory-dump

Offline jaroslav.nix

  • Avast team
  • Jr. Member
  • *
  • Posts: 71
Re: PC shutdown problems
« Reply #11 on: May 19, 2020, 11:06:03 AM »
There is one more/easier way how to stop avast service, you can user this command (again in elevated command prompt):
sc.exe control "avast! antivirus" 255
and if the service won't stop in couple of second (so you induce the same issue as with the shutdown), please create a dum file via command
sc.exe control "avast! antivirus" 254

The dump file fill be located in avast program data directory, e.g.:
"c:\ProgramData\AVAST Software\Avast\log" (on Windows 10, there is "Documents and Settings\..." on Window 7

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48550
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: PC shutdown problems
« Reply #12 on: May 19, 2020, 01:33:15 PM »
@ jaroslav.nix,
Is there also an easy command to restart the service?
Thanks
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

Offline jaroslav.nix

  • Avast team
  • Jr. Member
  • *
  • Posts: 71
Re: PC shutdown problems
« Reply #13 on: May 19, 2020, 02:15:05 PM »
Actually there is not direct command for restart, you would need to do it via combination of commands:
sc.exe control "avast! antivirus" 255 (this command is asynchronous unfortunately)
sc.exe query "avast! antivirus" (and wait till the svc is stopped)
sc.exe start "avast! antivirus" (for new start of the svc)

Offline jaroslav.nix

  • Avast team
  • Jr. Member
  • *
  • Posts: 71
Re: PC shutdown problems
« Reply #14 on: May 19, 2020, 02:16:44 PM »
But please keep in mind the stop (command 255) will require user consent dialog, so this can't be easily scripted by "bad guys".