FIX: UNEXPEXTED_KERNEL_MODE_TRAP error in Windows 8.1, 10

Ivan Jenic
by Ivan Jenic
Troubleshooting Expert
Last update:
Affiliate Disclosure
Share this article:

To fix various PC problems, we recommend DriverFix: This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:
  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

The UNEXPEXTED_KERNEL_MODE_TRAP error message you get in Windows 10 or Windows 8.1 is either caused by a hardware failure or, most likely, an outdated or corrupted driver. Follow the instructions below in order to find out what drivers may have caused the issue in the first place and how you can fix the UNEXPEXTED_KERNEL_MODE_TRAP error you get on a blue screen of death in Windows 8.1, 10.

In some cases, there might also be an issue with your antivirus. Most of the time, Avast Antivirus is the problem behind the “UNEXPEXTED_KERNEL_MODE_TRAP” error message in Windows 10, 8.1. The solutions listed below also refer to the antivirus you are running in Windows 10, 8.1


1. Check your hardware

  1. First of all, check and see if you made any changes to the hardware configuration of your Windows 8.1, 10 device.
  2. If you added a RAM memory or another HDD recently, please take it out of the device.
  3. Reboot the Windows 8.1, 10 device.
  4. Without the new hardware, you recently installed in your device, please check if you still have the “UNEXPEXTED_KERNEL_MODE_TRAP” error message appearing.
  5. If you don’t, then the hardware part you took out is not compatible with your device thus making your system react in this way.

2. Disable your antivirus

In most cases, when you get this error message this is because of the antivirus you are using. So, for this step, we will uninstall or disable it to see if it fixed the issue.

  1. Please insert your Windows 8.1, 10 media CD/DVD into the CD/DVD drive.
  2. Reboot your Windows 8.1, 10 operating system.
  3. When the PC starts it should boot from the Windows 8.1, 10 media DVD.
  4. Left click or tap on the “Next” button in the first window that shows on the screen.
  5. Left click or tap on the “Repair your computer” feature.
  6. Next you will get to “Choose an option” window and you will have to left click or tap on the “Troubleshoot” feature.
  7. In the next window left click or tap on the “Advanced Options” feature.
  8. In “Advanced Options” window left click or tap on the “Command Prompt” feature.
  9. In the black box that appears, write the following: “C:” without the quotes.
  10. Press the “Enter” button on the keyboard.
  11. Next in the “Command Prompt” window you will need to write the following: “BCDEDIT /SET {DEFAULT} BOOTMENUPOLICY LEGACY” without the quotes.
  12. Press the “Enter” button on the keyboard.
  13. After the command was executed, write the following: “EXIT”.
  14. Press the “Enter” button on the keyboard.
  15. After you exit command prompt, you will have to left click or tap on the “Continue” button to reboot your device .
  16. While the Windows 8.1, 10 restarts, you need to press the “F8” button continuously.
  17. This should get you to the “Advanced Boot” options.
  18. Move the arrows down to select “Safe Mode” feature.
  19. Press the “Enter” button on the keyboard.
  20. This should get you in the “Safe mode” feature.
  21. Now you will have to disable the antivirus you are using or just uninstall it for the duration of this step.
  22. After you disabled it take out the Windows 8.1, 10 media CD/DVD.
  23. Reboot the Windows 8.1, 10 operating system.
  24. Check and see if you still get the “UNEXPEXTED_KERNEL_MODE_TRAP” error message.
  25. If you do not, I suggest you try installing another version of the Antivirus to see if it helps with the current version you won’t be able to operate your Windows 8.1, 10 properly.
  26. If you still get this error message start again the “Safe Mode” feature as you did above but this time left click or tap on the “Desktop” icon present in the Start screen of Windows 8.1, 10
  27. Move the mouse cursor over to the bottom right corner of the window.
  28. From the menu that shows you will need to left click or tap on the “Settings” feature.
  29. In the “Settings” window left click or tap on the “Control Panel” icon.
  30. Left click or tap on the “Device Manager” window.
  31. On the left side check your drivers and see if any one of them appear with an exclamation mark beside them.
  32. If they do then you will have to uninstall that driver or update it because most probably it is not compatible with your Windows 8.1, 10 operating system.
  33. If you don’t have any exclamation marks next to the drivers you will have to uninstall or update them one by one until you find the corrupt driver which is causing you this malfunction.


3.  Run the BSOD troubleshooter

Since this error code manifests itself as a BSOD issue, you can also run the built-in BSOD troubleshooter to fix it. On Windows 10, go to Settings > Update & Security > Troubleshoot > select and launch the BSOD troubleshooter, as shown in the screenshot below.

windows 10 BSOD troubleshooter

On Windows 8.1, go to Control Panel > type ‘troubleshoot’ > select Troubleshooting > click on View All to list all the troubleshooting tools and then select and run the Blue Screen troubleshooter.

blue screen troubleshooter

While the steps listed in this guide apply both Windows 8.1 and Windows 10, if you’re still experiencing this issue on your Windows 10 computer, you can also check out this in-depth Windows 10 guide for additional solutions.

Was it hard? I think anyone can fix this issue if you carefully pay attention to the steps above. You’ll get your Windows 8.1, 10 PC working again in no time. For additional information, you can also write us in the comments section below we will help you further to fix this problem.


Editor’s Note: This post was originally published in January 2015 and has been since updated for freshness, and accuracy.

This article covers:
add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *