Here, we are talking about a common Windows 10 BSOD error, the session has valid views on the exit error. This error is related to the PC hardware and usually appears if there are problems with the PC hardware or associated drivers, especially video drivers.
Let's take a look at the solutions you can implement to fix this error.
Reinstall the display driver
One of the first things you should try while fixing the SESSION_HAS_VALID_VIEWS_ON_EXIT problem in Windows 10 is to reinstall the display driver.
Step 1: Open the Power User menu by pressing the button Win + X keys together and select the Device administrator option from the list.
Step 2: In the Device Manager window, click Video cards option to expand it. Then right-click on the first controller and click Uninstall device option. You will be asked to confirm if you really want to uninstall it; click on Yup.
3 pass: Now press the button Home on the keyboard and type Compatibility in the search box. From the search results, select the file Run programs created for previous versions of Windows option.
Phase 4: The Program compatibility troubleshooting the window will open. This program finds problems and tries to fix them by running previous versions of programs; in this case, video driver. Hit The next and the program will start looking for problems. When the video driver is uninstalled, you will be given the option to install the previous version. Select the previous version and install it.
If that doesn't fix the problem, try the next method.
Update other drivers
You can also try updating other device drivers on your PC to fix this problem. Follow these steps:
Step 1: Open Device administrator following the steps provided in the previous solution.
Step 2: In the Device Manager window, expand other devices to view their drivers. Then right-click on a driver and click Update Driver option.
3 pass: In the new window that opens, select the file Automatically searches for updated driver software option. Your PC will search for a newer version of the driver and update itself if it finds it.
When you are done with one driver, switch to another driver and do the same process.
Alternatively, you can also check out this Windows driver update software which will help you automatically update the drivers of outdated devices.
Update Windows 10
Check if Windows 10 on your PC is up to date. If not, update it; it might fix the BSOD error.
Step 1: Open the settings application in Windows by pressing the key Win + me keyboard keys together.
Step 2: In the Settings app, find Update and security option and select it.
3 pass: A new window will open. There, go to the left panel and select the file Windows update option, then in the right pane, click Look for updates button.
If there is an update available for Windows, your PC will notify you. Follow the on-screen instructions to complete the update procedure. Once the update is complete, check if the SESSION_HAS_VALID_VIEWS_ON_EXIT error still affects you.
Run the Blue Screen Troubleshooter
Windows built-in troubleshooter is a great tool for dealing with issues especially blue screen of death errors as the session has valid views on exit error. Let's find out how to use this tool.
Step 1: Open the settings menu, then click Updates and security option using the steps provided in the previous method.
Step 2: In the new window, go to the left panel and select the file Solve problems option. From the list in the right pane, select the file Blue screen option to expand it, then click Run the troubleshooter option.
The troubleshooter will start working now. Wait to find a problem and fix it. When done, restart your PC and check for the error.
Run an SFC scan on your PC
You can also run an SFC scan on your PC to fix this error. SFC Scan looks for faulty or corrupt files on your PC and repairs them if it finds them.
Step 1: In the Start menu search bar, type cmdThen, in the search results, right-click Command Prompt and select Run as administrator option.
Step 2: In the command prompt window, type the following command and press the key Log in button.
sfc / scannow
Let the scan begin. When finished, close the Command Prompt window and restart your PC. If the problem is not resolved, go to the next method.
You can also run a DISM scan on your PC to fix the SESSION_HAS_VALID_VIEWS_ON_EXIT BSOD error in Windows 10. There are 2 types of DISM scan. 1) Standard DISM scan and 2) DISM scan with Windows installation media.
Let's take a look at both. First, try the first method.
Standard DISM scan
Step 1: Open Command Prompt in Administrator Mode; follow the steps provided in the previous solution.
Step 2: Copy the following command and paste it into the command prompt window, then press Log in.
DISM / Online / Cleanup Image / RestoreHealth
Wait for the scan to complete, then restart your PC. If the problem persists, try the next one.
DISM scan with Windows installation media
Step 1: Get the Windows installation media if you have one on a flash drive or CD and mount it on your PC.
Step 2: Open Command Prompt in Administrator Mode (previous steps).
3 pass: Copy the following command, paste it into the command prompt and press Log in:
dism / online / cleanup-image / scanhealth
Phase 4: Copy the following command and then press Log in still:
dism / online / cleanup-image / restorehealth
5 pass: Finally, copy the following command, paste it into the command prompt, but replace the letter X with the drive name of the Windows installation media. Then press the button Log in button.
DISM / Online / Cleanup-Image / RestoreHealth /source:WIM:X:SourcesInstall.wim:1 / LimitAccess
Let the scan run until it's done, then restart your PC.
Disable startup programs / services
One of the applications or services may be causing this problem on your PC. To do this, you will need to perform a clean boot disabling all third party services and applications on your PC, then check if the problem is with you.
Step 1: Press Win + R keys together to open the file run the dialog box. Here, write msconfig and press the button Log in key.
Step 2: A System configuration window that opens, go to general tab and under the Selective startup section, deselect the file Load startup items option. Then click To apply option.
3 pass: Now go to Services tab, select the file Hide all Microsoft services option, then click Disable everything button. Click To apply.
Phase 4: Then click To boot tab and select the file Open Task Manager option.
5 pass: A Task Manager select all programs e deactivate one by one.
6 pass: Close all open windows now and restart your PC.
After reboot, check if the session error has valid displays on exit. If so, discard all changes. If the error no longer appears, there is a problem with the services and programs. Enable the services and applications one by one and restart your PC. Once you have identified which service / program is causing all the problems, remove it from your PC.
Uninstall Aero Glass
If you are using Aero Glass, an interface software for Windows, immediately remove it from your PC. According to users, Aero Glass is not compatible with Windows 10 and hence it causes various issues including this BSOD error.
Remove the antivirus from the PC
Users have also reported that antivirus software sometimes causes BSOD errors in Windows 10. Therefore, it is important to check at least once if the antivirus on your PC is the cause of all the problems. Note that simply uninstalling the antivirus may not work properly as this software leaves associated files and registry entries on the PC. In such case, it is recommended to use antivirus uninstaller software.
Reset Windows 10
If nothing works for you, you may want to restore Windows 10 to your PC. If you can log in to Windows, follow the steps provided here: How to restore Windows 10 without losing files to rest Windows 10.
In case you are unable to log into Windows on your PC and get stuck on the blue screen, follow these steps:
Step 1: Restart your PC and as soon as the initial boot screen with PC branding pops up, press and hold the PC power button for about 5 seconds until it restarts. Do this 3-4 times until your PC boots into self-repair mode. Have the Windows installation media handy and insert it into your PC when prompted.
Step 2: To go Troubleshoot> Reset this PC> Erase everything.
3 pass: Then select only the drive in which Windows is installed> Delete my files> Reset to start the process.
Now follow the onscreen instructions to complete the reset.
This would likely fix the SESSION_HAS_VALID_VIEWS_ON_EXIT error in Windows 10.
Check your hardware
Quickly check your PC's hardware components if they are installed correctly. It is also possible that some components are malfunctioning. Check RAM, graphics card, video card, network card, etc. to see if there are any problems. Look for loose cable connections, if any. It is also recommended that you clean dust accumulated on CPU components, especially moving parts such as fans.