Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Stop code DPC_WATCHDOG_VIOLATION (0x133): a driver ran too long at a high priority

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A computer or server restarts with a blue screen reading DPC_WATCHDOG_VIOLATION. The user sees a stop code and nothing that says what was running, so the fault is hard to tie to one action.

Microsoft's page for this bug check is written for programmers, and most of it is debugger output. It does, however, say clearly what the watchdog measures, how to read its first parameter, and what a non-programmer can do. What follows sets those out in plain terms. Nothing before the Fix section changes anything.

What the error means

The DPC_WATCHDOG_VIOLATION bug check has a value of 0x00000133. Microsoft says it indicates that the deferred procedure call (DPC) watchdog executed, either because it detected a single long-running DPC, or because the system spent a prolonged time at an interrupt request level (IRQL) of DISPATCH_LEVEL or above.

Microsoft's page on DPC objects supplies the background. Interrupt service routines (ISRs) must execute as quickly as possible, so drivers postpone the completion of servicing an interrupt until after the ISR returns. The system provides deferred procedure calls for that: they can be queued from ISRs and are executed at a later time and at a lower IRQL than the ISR. In plain terms, a driver does its urgent work at once and leaves the rest for a short, scheduled follow-up. The watchdog is the timer that notices when that follow-up, or the whole high-priority state, goes on too long.

The bug check page gives the expected scale: "DPCs should not run longer than 100 microseconds and ISRs should not run longer than 25 microseconds, however the actual timeout values on the system are set much higher." So a blue screen means the code ran far longer than it should have.

The first parameter says which of two situations happened:

Parameter 1 Cause on Microsoft's page Other parameters
0 A single DPC or ISR exceeded its time allotment. The page says the offending component "can usually be identified with a stack trace" Parameter 2 is the DPC time count in ticks, parameter 3 the time allotment in ticks
1 The system cumulatively spent an extended period of time at IRQL DISPATCH_LEVEL or above. The page says the offending component "can usually be identified with a stack trace" Parameter 2 is the watchdog period

Microsoft's first example, for Parameter 1 equal to 0, has a tick count of 501 against an allotment of 500, and the debugger names a driver file (BthA2DP.sys) as the image that was running. The second example, for Parameter 1 equal to 1, notes that the code "may not stop in the offending area of code" and suggests event tracing to find which driver is exceeding its normal execution time. Both are illustrations from one crash each.

Likely causes

Microsoft's remarks give one: "In general this stop code is caused by faulty driver code that under certain conditions, does not complete its work within the allotted time frame." The page gives no list of drivers or products. It says determining the cause needs the Windows debugger, programming experience and access to the source code of the faulting module.

Situation What it suggests
The blue screen or the dump names a driver That driver is the first suspect; check with its manufacturer for updates
Parameter 1 is 0 One call ran too long, and the page says the component "can usually be identified with a stack trace"
Parameter 1 is 1 The total time at high priority was too long; the page says the code may not stop in the offending area, so event tracing may be needed
No driver is named and the dump is not available The general steps below, or a dump analysis, are the routes left

The table follows the page. The page gives no counts for how many cases each situation covers.

Prove the cause before changing anything

All of these read only.

  1. Note whether the blue screen or the logs name a driver. Microsoft says, if a driver is identified in the bug check message, to disable it to isolate the issue and to check with the manufacturer for driver updates. Write the driver file name down first.

  2. Look in the System log in Event Viewer. The page says to check it for additional error messages that might help identify the device or driver that is causing the bug check.

  3. Look at what changed before the first blue screen: new drivers, new hardware. Microsoft's general stop code page lists removing new hardware and checking Device Manager as basic steps.

  4. Check hardware compatibility. The page says to confirm that any new hardware that is installed is compatible with the installed version of Windows.

  5. If you have crash dump files, keep them, and if possible note the Parameter 1 value. The page's debugging commands (!analyze -v, !pcr, !dpcs and others) need a kernel debugger and someone who can read the output; they are not walked through here.

  6. Look for a pattern in time: always during network or disk load, only after startup, only after wake from sleep. The page does not describe this check, so it is general advice, but the pattern is what the vendor will ask for.

Example (illustrative): at contoso.com.au a workstation blue screens with DPC_WATCHDOG_VIOLATION about twice a week. The dump names a wireless adapter driver file, and the adapter's driver is two years older than the other workstations'. That is a driver named by the dump and a driver behind its peers, so it is the first place to look; it is a lead, since the page does not give driver age as a cause.

Fix

Microsoft's remarks give general techniques for those who cannot use the debugger: disable an identified driver and check with the manufacturer for updates, check the System log, confirm new hardware is compatible. Take them one at a time.

Update the named driver

Risk: the next step changes a driver on a computer that is already unstable. A new driver can itself cause faults, and a device may stop working during the change. Do it on one computer first and tell its user.

If a driver is identified, the first step is to look for a newer version from the manufacturer. Before you install it, note the current driver's name, version and date, and keep the installer for that version. The page gives no command for this, so it is general advice, and the record is how you go back.

Install the manufacturer's updated driver for the device. In Device Manager, Microsoft's support page says you can right-click a device and select Update driver.

To undo it: reinstall the driver version you noted from the installer you kept.

Disable the named driver to isolate the cause

Risk: the next step turns off the device that uses the named driver. The device, for example a network adapter or an audio device, stops working until it is turned on again, and turning off a network adapter on a remote computer can cut your own connection. Do it at the machine, or with a way to reverse it.

Microsoft says, if a driver is identified in the bug check message, to disable it to isolate the issue. Before you do, make sure nothing the business relies on needs that device, and write down which device it is. The page gives no command for this, so it is general advice.

In Device Manager, right-click the device and choose to disable it. Microsoft's support page names disabling or uninstalling the device as the step to try if updating does not help. Use the computer as usual and watch whether the stop code returns.

To undo it: in Device Manager, right-click the same device and enable it.

Check compatibility

Microsoft says to confirm that any new hardware is compatible with the installed version of Windows, using the hardware requirements for your version. This is a read-only check. If the hardware turns out not to be compatible, ask the manufacturer or supplier which model or driver is, before changing anything on the machine.

Confirm the fix

  • The stop code has not returned over a period at least as long as the gap between earlier blue screens, including the activity that used to trigger it.
  • The System log shows no new critical errors in the same window.
  • The driver you changed shows the new version, or the device is disabled as intended, and the business processes that use the machine work.
  • If you disabled the device and the stop code stopped, you have isolated the driver, and the next step is a manufacturer fix rather than leaving the device off.

What to watch afterwards

  • A recurrence, with the date, the Parameter 1 value if you can get it, and any named driver.
  • The first heavy-use period after the change. Microsoft's page describes the fault as occurring under certain conditions, which may be load-related, though the page does not say so.
  • Other machines using the same driver version.
  • Driver updates delivered by Windows Update or the manufacturer's tool, which can reinstate the version you replaced.

Risks and limits

These steps have not been run or lab-tested.

Microsoft's bug check page, dated 2022-09-27, says its article is for programmers and refers customers to its stop code troubleshooting page. It gives no figures for how many cases the bug check covers, no version range and no single fix. The cause is a defect in driver code, and determining it needs the debugger. The steps here are Microsoft's general tips and may only eliminate candidates. The debugger examples on the page show the structure of the output for particular crashes and are not a guide to what your dump will contain. If the stop code returns, collect the dump files and the System log and have them analysed by someone who can use the Windows debugger.

Sources