|

How To Fix APC_INDEX_MISMATCH Blue Screen

APC_INDEX_MISMATCH is a Windows blue screen with the stop code 0x1.

Microsoft says it indicates a mismatch in the asynchronous procedure call (APC) state index.

The fix is to find the file system or driver that caused it and update, disable or remove it.

Table of Contents

Quick answer

The table gives the fastest route for each situation.

SituationWhat to do
You installed hardware recentlyCheck it is compatible with your Windows version, or remove it
The blue screen names a driverDisable the driver or check the maker for an update
The name is not shownCheck the System log in Event Viewer
The PC will not stay upUse Safe Mode to update or disable drivers
Nothing helpsRun DISM and SFC, then restore or reset Windows

What APC_INDEX_MISMATCH means

The bug check has the value 0x00000001.

Microsoft says it results from an internal kernel error that occurs on exit from a system call.

The APC state recorded for the thread does not match what the kernel expects at that point.

Microsoft’s page is written for programmers, so the steps below combine it with its general guidance for customers.

What usually causes it

Microsoft says the most common cause is a file system or driver that makes a mismatched sequence of calls to disable and re-enable APCs.

Its example is that every call to KeEnterCriticalRegion must have a matching call to KeLeaveCriticalRegion.

A driver that skips the matching call leaves the thread in the wrong state when the system call returns.

Reading the parameters

The crash dump holds four values that point to the offending routine.

ParameterMeaning
1Address of the system function (system call) or worker routine
2The current thread’s ApcStateIndex value
3The current thread’s CombinedApcDisable value
4Call type: 0 for a system call, 1 for a worker routine

Parameter 3 combines two 16-bit fields, SpecialApcDisable and KernelApcDisable.

What the APC disable values reveal

Microsoft says the CombinedApcDisable field is the key data item.

Field valueWhat it means
SpecialApcDisable is negativeA driver disabled special APCs and did not re-enable them
KernelApcDisable is negativeA driver disabled normal (kernel) APCs and did not re-enable them
Either field is positiveA driver enabled APCs more times than it disabled them

These values matter to developers, but they also tell you the fault is in a driver or file system rather than in your hardware.

Check new hardware first

Microsoft says to confirm that any newly installed hardware is compatible with your installed version of Windows.

If the blue screen began after you added a device, shut down and remove it.

Restart and see whether the error returns before you try anything else.

Look for the driver in Event Viewer

Microsoft says to check the System log in Event Viewer for messages that might identify the device or driver behind the bug check.

Open Event Viewer from the Start menu search and look at entries near the time of the crash.

If the blue screen itself names a driver, Microsoft says to disable it or check with the manufacturer for an update.

Update or roll back the driver

Microsoft recommends using Windows Update first for drivers.

  1. Open Start, then Settings, then Windows Update, and select Check for updates.
  2. Right-click Start and open Device Manager.
  3. Right-click the affected device and select Update driver.
  4. If the problem began after an update, open the device Properties, go to the Driver tab and select Roll Back Driver.
  5. To start fresh, select Uninstall device, confirm and restart.

Our guide to the DRIVER_POWER_STATE_FAILURE blue screen covers a similar driver workflow.

Use Safe Mode if the crash comes too fast

Go to Settings, then System, then Recovery, and select Restart now beside Advanced startup.

Choose Troubleshoot, Advanced options, Startup Settings and Restart.

Press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.

From Safe Mode, Microsoft says you can disable a faulty driver in Device Manager.

Repair Windows files

Open Command Prompt as administrator and run DISM.exe /Online /Cleanup-image /Restorehealth.

Then run sfc /scannow and wait until it reaches 100%.

Microsoft’s guide also suggests keeping 10% to 15% of the drive free and running chkdsk /f /r if you suspect disk errors.

Restore, uninstall or reset

If a recent update, driver or app triggered the error, Microsoft says a restore point or Startup Repair is the best option.

OptionEffect
Uninstall a recent updateKeeps your files and apps
System restore pointRolls back system files and settings, not personal files
Reset this PCReinstalls Windows and lets you keep or remove personal files
Installation mediaReinstalls Windows, and a clean install removes everything

Have your BitLocker recovery key ready for most recovery options on an encrypted drive.

Save a crash dump for later analysis

A saved dump lets you or a technician identify the faulty driver after the PC restarts.

  1. Search the taskbar for Advanced system settings and press Enter.
  2. On the Advanced tab, select Settings under Startup and Recovery.
  3. Under Write debugging information, choose Automatic memory dump.
  4. Select OK and restart.

Small dumps land in %SystemRoot%\Minidump, and the larger ones in %SystemRoot%\MEMORY.DMP.

Open the file in WinDbg on another PC, set the Microsoft symbol path and run !analyze -v.

Microsoft says the module names in STACK_TEXT, such as a .sys driver, point to the likely culprit.

Driver Verifier for repeat crashes

If the error keeps returning, Microsoft lists Driver Verifier as a way to isolate drivers and validate what they do.

Start with suspicious drivers, such as any updated just before the crashes began.

Microsoft warns that it can slow the PC and cause more crashes, and that it does not run in Safe Mode.

If you write drivers

Microsoft says to run the !analyze and !apc debugger extensions to see the APCs involved.

It also recommends Static Driver Verifier with the CriticalRegions rule to check that your code uses these calls in the right order.

When to contact support

If a third-party driver or file system filter is named, contact its vendor with the stop code and dump file.

Use your PC maker for firmware and BIOS updates that Microsoft lists among its general stop error steps.

Sources and related guides

Leave a Reply

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