Solution:
Root Cause: Kernel Mode Unhandled Exception in Graphics Subsystem Driver
The
SYSTEM_THREAD_EXCEPTION_NOT_HANDLED bug check (Stop Code
0x0000007E or
0xC0000005 STATUS_ACCESS_VIOLATION) occurs when a system thread created by a kernel-mode driver generates an exception that the error handler fails to catch. When the faulting driver is a graphics binary (
nvlddmkm.sys for NVIDIA,
amdkmdag.sys for AMD, or
igdkmd64.sys for Intel), the display driver attempts an illegal memory access or issues an invalid opcode during early Direct3D hardware-acceleration initialization (
dxgkrnl.sys). Because this occurs during early kernel initialization, Windows enters an endless boot loop.
Diagnostic Verification:
1Boot the PC into Windows Recovery Environment (WinRE) (Force power-off twice during boot animation).
2Navigate to Troubleshoot > Advanced options > Command Prompt.
3Determine your Windows drive letter (e.g., D: or C:):
dir C:
dir D:
4Inspect recent crash dump details using the Windows DISM log or parsing SrtTrail:
type D:\Windows\System32\LogFiles\Srt\SrtTrail.txt
5Search for entries naming nvlddmkm.sys, amdkmdag.sys, or dxgkrnl.sys.
Step-by-Step Fix:
1Disable the Faulting Driver via Offline Registry Hive in WinRE:
Open Command Prompt in WinRE.Load the offline SYSTEM registry hive: reg load HKLM\OFFLINE_SYS D:\Windows\System32\config\SYSTEM
Navigate to the active ControlSet service entries (typically ControlSet001): reg add "HKLM\OFFLINE_SYS\ControlSet001\Services\nvlddmkm" /v Start /t REG_DWORD /d 4 /f
*(Use
amdkmdag for AMD GPUs or
igfx for Intel GPUs)*
Unload the offline registry hive: reg unload HKLM\OFFLINE_SYS
Close Command Prompt and click Continue to Windows 11/10.2Boot into Safe Mode to Perform Clean Driver Removal:
Once Windows boots past the boot loop using basic display fallback, press Win + R, type msconfig -> Boot tab -> check Safe boot (Minimal) -> restart.In Safe Mode, run Display Driver Uninstaller (DDU) to completely purge corrupted GPU driver files and registry keys.3Reinstall Fresh WHQL Display Drivers:
Boot back into normal mode and download the official WHQL display driver package directly from NVIDIA or AMD.Prevention & Long-Term Monitoring:
Disable automatic driver updates via Windows Update for GPU hardware using Group Policy or device installation settings.