Your screen freezes, often in the middle of a game, and Windows restarts with the stop code THREAD_STUCK_IN_DEVICE_DRIVER. What follows is based on Microsoft's own documentation for this bug check and its general blue screen advice, credited below, plus our own suggested order for working through it. Where something is our advice rather than Microsoft's, we say so.
What the stop code means
Microsoft's bug check reference lists THREAD_STUCK_IN_DEVICE_DRIVER as bug check 0xEA (0x000000EA) and says it means "a thread in a device driver is endlessly spinning". In plain English, a driver got stuck in a loop, "most likely waiting for hardware to become idle", and Windows gave up waiting.
Microsoft is unusually direct about where to look. Its reference page says the error usually points either to a problem with the hardware itself or to the driver programming that hardware incorrectly, and adds: "Frequently, this is the result of a bad video card or a bad display driver."
So on a gaming PC, assume the graphics card and its driver are involved until you can prove otherwise. That's why the steps below spend most of their time there.
Before you start: confirm which driver is involved
If you can still get into Windows, it's worth confirming the culprit before you change anything:
On Microsoft's page, the third parameter of this bug check is "A pointer to the offending driver name", which is why a dump analysis usually names a file. If the dump names your graphics driver, carry on with the steps below. If it names something else, such as a capture card, network or storage driver, focus on that device instead.
If Windows won't stay up long enough to do any of this, Microsoft's blue screen guide suggests starting the PC in safe mode and carrying on from there.
Step 1: Undo recent changes
Think about what changed just before the crashes started. Microsoft's first basic step is "Remove any new hardware", so if you've just fitted a new graphics card, capture card or other expansion card, take it out and see if the crashes stop.
The same applies to software. In our view, these are the usual suspects on a gaming PC:
A graphics driver update in the last few days
A GPU overclock or undervolt applied with MSI Afterburner, AMD Software or similar
A new RGB, fan control or monitoring utility that talks directly to the graphics card
Step 2: Remove any GPU overclock or undervolt
An overclock that passes a quick benchmark can still crash under a long gaming session. Reset any GPU tuning to default in the tool you used, including memory clocks and power limits, and switch off any factory OC mode you enabled in the card maker's software. If the crashes stop, reapply your tuning more conservatively. Our guides to overclocking a GPU with MSI Afterburner and undervolting a GPU explain how to step back safely.
Step 3: Clean-install the graphics driver
Because Microsoft singles out the display driver, a clean reinstall is the most important software fix:
Download the current driver for your card from NVIDIA, AMD or Intel directly.
Use Display Driver Uninstaller (DDU) in safe mode to remove the old driver completely. Our guide on how to clean-install graphics drivers with DDU walks through it.
Install the new driver and restart.
If the crashes started right after a driver update, try the opposite: go back to the version that was working. See how to roll back a graphics driver. Our article on updating graphics drivers covers where to get each brand's drivers.
Step 4: Update Windows and check Device Manager
Microsoft's basic troubleshooting list for stop code errors also includes installing the latest updates (Start > Settings > Windows Update > Check for updates) and checking Device Manager for any device marked with an exclamation point, then updating, disabling or uninstalling that device's driver. It also says to keep enough free space on the system drive, suggesting 10% to 15% free as a good idea.
Step 5: Check the hardware: power, heat and seating
If a clean driver install doesn't fix it, Microsoft's point about "a bad video card" comes into play. Before you assume the card is faulty, rule out the cheaper causes. This is our suggested order:
Power. Make sure every PCIe power connector on the card is fully plugged in, and, in our view, use separate cables rather than one daisy-chained cable where the card has several sockets and your power supply has enough cables. Check that your power supply has enough headroom for the card: see how to calculate PSU wattage and how to check PSU GPU power connectors.
Heat. Watch GPU temperatures while gaming. If the card is running very hot, clean the dust out and improve case airflow. See how to check GPU temperature on Windows 11 and how to lower GPU temperatures.
Seating. Power down, unplug the PC, then reseat the graphics card firmly in its PCIe slot and make sure the bracket screws are secure.
Test another card or slot. If you can borrow a graphics card, or your motherboard has a second full-length slot, try it. If the crashes follow the card, the card is the likely problem.
If you also see coloured blocks, lines or flickering before the crash, read how to fix GPU artifacting too. In our view, artifacts at stock settings, after a clean driver install, point quite strongly to a failing card, and it's time to contact the retailer or card maker about a warranty claim.
THREAD_STUCK_IN_DEVICE_DRIVER sits in the same family as other graphics driver failures. If you see a different message, these guides cover it: