exit safe mode windows 11
Windows 11

How to Fix the exception_illegal_instruction Error on Windows 11


A user may experience the exception_illegal_instruction during gameplay. The error may occur when the PC attempts to execute an invalid or unsupported CPU command. Also, this error may come up due to a hardware issue like a faulty CPU or memory, a software problem like a corrupted driver or program, or a third-party application conflict.

This error can cause a program crash, PC freeze or restart, a blue screen of death (BSOD), or performance issues. There are several ways to solve this issue, which we will look into in this guide as we proceed. Before applying the solutions, restart your PC to see if it fixes the problem or scan your system for malware.

Perform an SFC scan to fix exception_illegal_instruction

The System File Checker (SFC) scan is a Windows utility that scans for and repairs corrupted system files. It can help to fix several problems, including the exception_illegal_instruction error. If the error arises from a corrupted system file, the SFC scan should fix the error.

Use the following steps to run the SFC scan:

  1. Press the Windows and S keys together and type cmd in the text field.
  2. Then, choose the Run as administrator option on the right side to start the Command Prompt with administrator privileges.
    error 2001-0123
  3. Once the User Account Control prompts you, select Yes to continue.
    error 2001-0123
  4. When the Command Prompt displays, enter the following command into the prompt and tap the Enter key to start an SFC scan:
    sfc /scannow
    error 2001-0123
  5. Once the scan is complete, copy and paste the command below and press the Enter key to run the command:
    DISM.exe /Online /Cleanup-image /Restorehealth
    error 2001-0123
  6. Finally, it would be best to restart your computer to implement repairs.

Verify game files on Steam to fix exception_illegal_instruction

Verifying game files on Steam helps to check the game files’ integrity. This implies that Steam will compare the original game files on Steam’s servers with your game files. If there are missing or corrupted files, Steam will download and replace them. The following steps show how to do this:

  1. First, launch the Steam app on your PC.
  2. Then go to the main context menu and click Library.
  3. After that, right-click on any game.
  4. Then select the Properties window and click the Local Files tab.
    Steam not working after Windows update
  5. Under the Local Files tab, click the Verify integrity of game files button and close the Steam client.
  6. Finally, launch the Steam games.

Perform clean boot

A clean boot in Windows is a troubleshooting method that starts Windows with a minimal set of drivers and startup programs. This process can help you to identify which driver or startup program is causing a problem. Performing a clean boot can help fix the problem by eliminating any conflicting software or service causing the error. Here is how to do it.

  1. Press the Windows and R keys at once to open the Run dialog, type msconfig, and hit Enter.
  2. Then, find the Services tab, click on it, and tick on the Hide all Microsoft services box.
    windows 11 notepad crashing
  3.  Click on the Disable all button and then click Apply.
    windows 11 notepad crashing
  4. Select the Startup tab and then click Open Task Manager.
    windows 11 notepad crashing
  5. Right-click the first enabled app on the Task Manager tab and select Disable.
  6. Finally, follow step 6 to disable all enabled applications one after the other.
  7. After disabling the apps, close Task Manager.
  8. Restart your PC.
  9. You may then follow the steps again. But this time, you will enable the apps.

Update Graphic Cards driver

Graphics card drivers helps your PC to communicate with your graphics card. They translate the graphics commands from your PC into instructions that your graphics card can understand. If an outdated driver is the cause of exception_illegal_instruction, this solution will help to solve it. Here is how to do it:

  1.  Connect your PC to the internet.
  2. Open the Run dialog by pressing the Windows + R keys together, enter devmgmt.msc, and hit Enter.
    nvspcap64 dll
  3. Find the Display adapters option, then expand it.
    nvspcap64 dll
  4. After that, right-click on the Graphics card driver and click Update driver.
    nvspcap64 dll
  5. If it prompts you, then select the How do you want to search driver option.
  6. Then, click on Search automatically for updated driver software.
    nvspcap64 dll
  7. If there is a driver on your PC, select Browse my computer for driver software.
  8. Then, choose the correct location of the driver on your PC to update it.
  9. Finally, restart the computer.

In conclusion, the exception_illegal_instruction error makes it difficult to enjoy gaming. However, the solutions in this guide are effective in removing the problem. We suggest you reinstall the affected app if the solutions above do not fix your issue.

Also, keep your operating system, drivers, and programs updated, install a trusted antivirus program and keep it updated, download programs only from trusted sites, and avoid overclocking your CPU or memory, as it can expose your computer to instability and errors.

Leave a Response

Richard Omachona
Richard is a techie in providing fixes and solutions for computer issues of various kinds. Among his contemporaries, he is a preferred choice. His experiences are vast in Windows operating systems, and several other skills in programming such as Python, Web Frontend designing implementing at industry standards, best practices in HTML, CSS and JavaScript. and basics in Web Backend. He also loves traveling, gaming and music.