Sign in with
Sign up | Sign in
Your question
Solved

Windows 8.1 freezing on shutdown

Last response: in Windows 8
Share
February 18, 2014 5:10:42 AM

Hi, my PC has started to freeze when shutting down. It doesn't happen all the time, but a lot of the time. I have to turn it off manually by holding down the power button. It's getting really annoying and i have no idea what's causing it. Please can anyone advise how to fix this or find the cause of the problem? :) 
Sytem specs:
FX8350
ASUS M5A97 R2.0
Corsair vengeance 2x4GB DDR3 @1600MHz
Gigabyte R9 270X
XFX PRO 550W PSU

All my drivers are up to date and i built the PC myself.
a c 292 * Windows 8
February 18, 2014 5:52:55 AM

First try System File Checker
Winkey plus 'X'
Choose Command Prompt (Admin)
Type sfc /scannow then Enter

It finds and fixes errors in Windows, but doesn't always report them. Run it and see if the fault disappears after re-booting your system.

If that fails, try turning off hibernate, W8 uses it to achieve faster boot times.
Winkey plus X
Choose CMD (admin)
Type powercfg -h off then Enter
February 18, 2014 6:32:36 AM

The system file check finished and it says 'windows resource protection found corrupt files but was unable to fix some of them.' When i try to look in the CBS log it says access is denied.
Related resources
a c 292 * Windows 8
February 18, 2014 7:02:34 AM

One I picked up from another thread, not sure what it does, but worth trying...
dism.exe /check-image /online /restorehealth
a c 292 * Windows 8
February 18, 2014 7:23:59 AM

SFC log
findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >sfcdetails.txt


sfcdetails.txt will be in C:\Windows\system32 (quickest just to search C for it!)
February 18, 2014 7:43:09 AM

Thanks i ran the dism.exe thing successfully and gained access to the cbs.log however there is a crap load of information in it so i'm not sure what i should look for.
a c 292 * Windows 8
February 18, 2014 7:57:57 AM

xero99 said:
Thanks i ran the dism.exe thing successfully and gained access to the cbs.log however there is a crap load of information in it so i'm not sure what i should look for.

Just did the same on this machine as it wasn't running too well. Guess scroll down the txt file to see what wasn't repaired?
Probably should run SFC again anyway. I had no joy with the DISM, but this one worked and did some repairs

Dism /Online /Cleanup-Image /RestoreHealth

Try it, then run SFC again to see if it runs clear
February 18, 2014 8:33:58 AM

I ran SFC again after doing what you suggested and it found no problems! I'll update this thread again when i find out if this has fixed my shutdown issue.
February 18, 2014 9:17:10 AM

I tried shutting down my PC and it froze again, any other ideas on what i could try to fix it?
a c 292 * Windows 8
February 18, 2014 9:41:43 AM

xero99 said:
I tried shutting down my PC and it froze again, any other ideas on what i could try to fix it?

Could try clean boot, starts windows with minimal processes, see if shutdown works, then enable groups at a time to see which one is causing the hang.
After that there is Refresh and Reset, but that would require re-installing software and loss of data in the case of Reset...
http://support.microsoft.com/kb/929135

February 18, 2014 11:41:43 AM

dodger46 said:
xero99 said:
I tried shutting down my PC and it froze again, any other ideas on what i could try to fix it?

Could try clean boot, starts windows with minimal processes, see if shutdown works, then enable groups at a time to see which one is causing the hang.
After that there is Refresh and Reset, but that would require re-installing software and loss of data in the case of Reset...
http://support.microsoft.com/kb/929135



I'll try that, however reinstalling or resetting windows is a last resort.. i have really bad internet and downloading all my games and programs again will literally take weeks.
a c 292 * Windows 8
February 18, 2014 12:08:10 PM

Presumably you will have any downloaded apps in your download folder, back them up if you have to Refresh or Reset, though Refresh should leave them intact. But we'll try to avoid that!
February 18, 2014 12:17:43 PM

I ran a clean boot and it froze on shutdown again so i guess it's likely that it isn't a third party software conflict causing the issue.

I know refresh leaves your files alone but i wasn't sure if it deleted any programs like Photoshop CC or Battlefield 4... so will it leave my program files alone and all programs will stay installed or will i have to download them again? Unfortunately i don't have access to a second storage device at the moment.
a c 292 * Windows 8
February 18, 2014 12:28:33 PM

xero99 said:
I ran a clean boot and it froze on shutdown again so i guess it's likely that it isn't a third party software conflict causing the issue.

I know refresh leaves your files alone but i wasn't sure if it deleted any programs like Photoshop CC or Battlefield 4... so will it leave my program files alone and all programs will stay installed or will i have to download them again? Unfortunately i don't have access to a second storage device at the moment.

Sadly it does uninstall everything normally, though some have been surprised with programmes left intact.
However, it is still possible to perform what is known as 'Repair Install' which will preserve your 3rd party apps...
http://www.eightforums.com/tutorials/26095-repair-insta...


a c 292 * Windows 8
February 18, 2014 12:40:38 PM

Also it would be possible to protect your d'loads and data by creating a partition and parking everything there whilst you sort out the OS...
February 18, 2014 12:42:27 PM

Thanks, i'll try that now
February 18, 2014 2:01:01 PM

Ok, thanks, i'll try the repair install first though.
a b * Windows 8
February 18, 2014 3:28:35 PM

The operating system will try to block a shut down of your system in certain conditions that would result in data loss. By forcing the shutdown you cause the lost of the data. A very common failure like this is caused by a disk drive that has lazy writes turned on. Basically that setting allows the system to just throw data at the drive and have the drive later confirm the write. Problem is some of the drives have bugs and never confirm the write so when you try to shutdown the system the system tells the device to flush its memory buffers on the disk to the drive and tell it that the data has been saved. (the drive does not respond and the system hangs)

you can also get this for other reasons, for example the shutdown event will ask running programs if to shutdown but some programs have the rights to block a shutdown and do so. These are often media sharing programs such as windows media center, or media extenders for the Xbox.
you have to make special settings in the control panel power management to have the system ignore their refusal to shut down.

There are other causes of the same behavior but those are the most common on a home network.

if you force the shutdown you will want to resolve the issue because your data that should be written to disk is being lost.
the sfc.exe /scannow command will scan only your core windows files for corruption if it finds a corrupted file, it looks in its local copy of the driver store (backup protected copy ) and restores it. If it can not fix the problem that means that both copies has been corrupted.

the dism.exe /online /check-image /restore-health command goes and gets a trusted online copy of the file to fix both of your local copies. Now you need to reboot and run the sfc.exe /scannow command again to make sure that you don't have a virus or malware just corrupting your files again. (if so, you have to virus and malwarebytes scan and go through the prococess again with the sfc.exe and dism.exe commands to get a clean system)
a c 292 * Windows 8
February 18, 2014 11:24:11 PM

@johnbl
we tried the dism.exe and the sfc scan came back clean, and still it froze, but what you said about background programs is interesting.
@xero99 could also try Clean Boot which starts Windows with bare essentials, see if it shuts down ok, and if so add in more processes till it fails, to isolate...
http://support.microsoft.com/kb/929135 For Win 8
a b * Windows 8
February 18, 2014 11:45:21 PM

to turn off lazy writes on a hard drive. start control panel, administrative tools, select create and format hard disk partitions,
this will bring up the disk management. select a drive, right mouse click and select properties,select the hardware tab, select properties, select the policies tab. Unselect the check box for enable write caching on the device. This will disable a suspected broken hardware cache on a disk drive.

note: you can also have the same issue on a redirected drive, it can block the shutdown of a computer when the correct notification is not sent thru the network that the file has been commited to disk.


- there are also ways to turn on special logs for the logoff process that will tell you what it is waiting on.
regedit find
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Policies \ System
add the key verbosestatus as a dword with a value of 1 to enable the feature and 0 to disable it (or remove the key)
This will make windows tell you what it is doing as it works on its shutdown

- you can also querry the power management system to see if something is blocking shutdown
powercfg.exe /requests (if I remember correctly will list shutdown blocking requests)
powercfg.exe /requestsoverride command can be use to ignore drivers that block your shutdown requests
but you only want to do that if you don't care about the data stream being lost (audio or video)
a c 292 * Windows 8
February 18, 2014 11:57:16 PM

johnbl said:
to turn off lazy writes on a hard drive. start control panel, administrative tools, select create and format hard disk partitions,
this will bring up the disk management. select a drive, right mouse click and select properties,select the hardware tab, select properties, select the policies tab. Unselect the check box for enable write caching on the device. This will disable a suspected broken hardware cache on a disk drive.

note: you can also have the same issue on a redirected drive, it can block the shutdown of a computer when the correct notification is not sent thru the network that the file has been commited to disk.


- there are also ways to turn on special logs for the logoff process that will tell you what it is waiting on.
- you can also querry the power management system to see if something is blocking shutdown
powercfg.exe /requests (if I remember correctly will list shutdown blocking requests)
powercfg.exe /requestsoverride command can be use to ignore drivers that block your shutdown requests
but you only want to do that if you don't care about the data stream being lost (audio or video)

Interesting stuff. Could a malfunctioning hardware cache also affect hibernate/sleep etcetera?
February 19, 2014 3:43:02 AM

@dodger 46
I already tried a clean boot yesterday and with everything disabled it still froze

@johnbl
Thanks, i've just turned off lazy writes and added the key you suggested to regedit. It still froze with after turning off lazy writes. After running powercfg.exe /requests this is what it said.

SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine


Does that mean a driver is preventing the shut-down to finish properly, so if i override it what would be the disadvantages of the data stream being lost?
February 19, 2014 4:01:49 AM

With the log turned on to see what it was waiting on it froze on the 'Stopping services' bit
a c 292 * Windows 8
February 19, 2014 4:32:02 AM

Do you have a Wireless Adapter for connecting to the 'net?
February 19, 2014 4:42:55 AM

dodger46 said:
Do you have a Wireless Adapter for connecting to the 'net?


Yes, i do
a c 292 * Windows 8
February 19, 2014 4:53:15 AM

xero99 said:
dodger46 said:
Do you have a Wireless Adapter for connecting to the 'net?


Yes, i do

Open Device Manager/Network adapters and double click your Network adapter. Choose advanced tab and in Properties look for Power Saving option and check to see if it's 'Always on'

February 19, 2014 5:32:46 AM

Under power management 'allow the computer to turn of this device to save power' was already ticked. Under advanced there are things like shut down wake on lan an energy efficient ethernet which are enabled and i'm not sure what they do but theres no clear power saving option.
a c 292 * Windows 8
February 19, 2014 5:39:27 AM

xero99 said:
Under power management 'allow the computer to turn of this device to save power' was already ticked. Under advanced there are things like shut down wake on lan an energy efficient ethernet which are enabled and i'm not sure what they do but theres no clear power saving option.

Hmmm. I feel we're getting close, but not quite there yet! Try updating the adapter driver just in case...
February 19, 2014 5:42:23 AM

Yes, we're definitely making progress. All my drivers are already up to date, i could try rolling the adapter driver back but that might not help.
February 19, 2014 6:06:34 AM

I ran SFC again after doing what you suggested and it found no problems! I'll update this thread again when i find out if this has fixed my shutdown issue.
a c 292 * Windows 8
February 19, 2014 6:06:58 AM

xero99 said:
Yes, we're definitely making progress. All my drivers are already up to date, i could try rolling the adapter driver back but that might not help.

Perhaps try disabling the Adapter in Networking and Sharing to see if the machine shuts down normally with it off...then you know you're in the right area...
February 19, 2014 6:48:14 AM

dodger46 said:
xero99 said:
Yes, we're definitely making progress. All my drivers are already up to date, i could try rolling the adapter driver back but that might not help.

Perhaps try disabling the Adapter in Networking and Sharing to see if the machine shuts down normally with it off...then you know you're in the right area...


I disabled the network adapters and have been able to perform five successful shut downs in a row! I guess we've probably found the issue unless that was just luck. :)  Now we could do with finding out how to stop the network adapter freezing the shutdown process while it's enabled?
a c 292 * Windows 8
February 19, 2014 7:20:39 AM

Anh Caoto said:
I ran SFC again after doing what you suggested and it found no problems! I'll update this thread again when i find out if this has fixed my shutdown issue.

If it's USB just unplug it, but a PCI unit a little trickier. Apart from uninstalling the driver and re-installing I can't think of much else to do...

Best solution

a b * Windows 8
February 19, 2014 7:34:46 AM
Share

edit:
you can confirm the problem as being a particular service by
run cmd.exe as a admin, run
net.exe start
this will provide a list of the services running
then you can
net stop "the service you want to stop"
then see if your shutdown works as expected, use the quotes around the service name if there is a space in the friendly name.

if it is not that, I would block the card from the network by doing a ipconfig /release command and see if it will shutdown
(a service still may block the shutdown)

sounds like you have a service running that is sharing streaming media and tells the system not to sleep.
powercfg /energy
or the powercfg.exe /requests should show the name.

Streaming media often will block sleep so they can stream to other devices on the network.

Most often fix:
control panel->hardware and sounds->power options->change plan settings>change
this will bring up power options dialog, scroll down to multimedia settings, expand when sharing media
select Allow the computer to sleep, select apply






xero99 said:
dodger46 said:
xero99 said:
Yes, we're definitely making progress. All my drivers are already up to date, i could try rolling the adapter driver back but that might not help.

Perhaps try disabling the Adapter in Networking and Sharing to see if the machine shuts down normally with it off...then you know you're in the right area...


I disabled the network adapters and have been able to perform five successful shut downs in a row! I guess we've probably found the issue unless that was just luck. :)  Now we could do with finding out how to stop the network adapter freezing the shutdown process while it's enabled?


February 19, 2014 7:35:47 AM

dodger46 said:
Anh Caoto said:
I ran SFC again after doing what you suggested and it found no problems! I'll update this thread again when i find out if this has fixed my shutdown issue.

If it's USB just unplug it, but a PCI unit a little trickier. Apart from uninstalling the driver and re-installing I can't think of much else to do...



It's a PCI unit, i'll try re-installing the driver and until we find out how to fix it permanently i'll disable it before i shut down
!