Repository navigation
Description
- Copilot Chat Extension Version: embedded in VS Code
- VS Code Version: 1.117.0
- OS Version: Windows 11, build 26100.x
- Feature (e.g. agent/edit/ask mode): Agent mode / Copilot running commands and workspace scanning
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Any
- Logs:
I am seeing repeatable system BSODs while using VS Code/Copilot. I understand this is most likely a driver/OS issue, not a normal VS Code crash, but VS Code/Copilot appears to be the trigger.
The crashes happen while Code.exe / rg.exe are active. As soon as Copilot starts running complex tools, hundreds of rg.exe processes are started and never killed. In multiple minidumps, the active process is either Code.exe or rg.exe.
Earlier dumps showed:
Bugcheck: 0x133 DPC_WATCHDOG_VIOLATION
Arg1: 0x1 - cumulative DPC/ISR timeout
Process: rg.exe / Code.exe```
The dump also showed ripgrep being launched with arguments similar to:
```rg.exe --files --hidden --case-sensitive --no-require-git ... --no-ignore --follow --no-config --no-ignore-global```
A later dump showed a different bugcheck:
Bugcheck: 0x9F DRIVER_POWER_STATE_FAILURE
Arg1: 0x3 - a device object blocked a power IRP for too long
Process: rg.exe
Failure bucket: 0x9F_3_IMAGE_amdacpbus.sys
Image: amdacpbus.sys```
WinDbg output from the blocked IRP:
[IRP_MJ_POWER, IRP_MN_SET_POWER]
\Driver\amdacpbus portcls!PowerIrpCompletionRoutine
\Driver\AMDAcpBtAudioService pending
\Driver\ksthunk nt!PopRequestCompletion
Relevant drivers from the machine:
AMDAcpBtAudioService Running Manual ...\amdacpbt.sys
amdacpbus Running Manual ...\amdacpbus.sys
AMDAfdAudioService Running Manual ...\amdacpafd.sys
AtiHDAudioService Running Manual ...\AtihdWT6.sys
I previously also had third-party drivers loaded, which I disabled for testing:
pango_netfilter2.sys - Hotspot Shield / Pango NetFilter WFP Driver
RFDriveFs2.sys - Lenovo Ready For Assistant filesystem driver
AMDRyzenMasterDriver.sys
Even after removing those from the active suspect list, I still hit a BSOD where the active process was rg.exe and the blocked power IRP pointed to AMD ACP audio drivers.
I am not attaching the full minidumps publicly for privacy reasons, but I can provide sanitized !analyze -v, !irp, and !devstack output if needed.
Steps to Reproduce:
- Open a large workspace in VS Code.
- Use Copilot Chat agent mode / command execution, or trigger a large workspace scan/search.
- VS Code starts rg.exe for workspace scanning.
- The machine eventually BSODs. The dump shows Code.exe or rg.exe as the active process, with either 0x133 DPC_WATCHDOG_VIOLATION or 0x9F DRIVER_POWER_STATE_FAILURE.
Activity
bogdanst24 commentedon May 5, 2026
I narrowed down the triggers to changes in node modules folder, when copilot extension is opened, and any of the following are true:
The workaround is to close vs code, perform the changes and then restart it. The fact that there is a workaround doesn't mean it is not a problem that should be fixed.
Also, I am using now the insiders version. Same issue.
roblourens commentedon May 6, 2026
Does
search.followSymlinkshelp with the rg processes?The BSOD itself, I don't believe that's caused by vscode or ripgrep, it looks like an AMD audio driver issue from the details you've shared
bogdanst24 commentedon May 6, 2026
This is task manager 5 minutes after I ran
pnpm i. All rg.exe processes, never cleaned up. As soon as I close vs code, it goes back to normal. Closing copilot tab is not enough.I already have
"search.followSymlinks": falseset.BSOD was more like the extreme end result of this behavior. I know that for others (in other reported issues) it ends up in VS Code crashing. Looks like my drivers are crashing before.
roblourens commentedon May 6, 2026
The "Visual Studio Code - Insiders" entries are actually rg.exe? Can you check the full arguments of the rg processes to see what might be spawning them? Checking the logs in vscode also helps: https://github.com/microsoft/vscode/wiki/Search-Issues
bogdanst24 commentedon May 8, 2026
Yes, you can see on the task manager search that it is filtered by "rg".
Command:
In logs, in extension logs, I see this, in an infinite loop
In Window:
roblourens commentedon May 9, 2026
Thanks. I guess I'm not clear from the description, is the copilot agent running when this happens? This would either be from the agent running dumb searches aggressively (I assume you would have noticed) or another extension that you've installed (which may have some bad behavior accidentally triggered by things that happen due to having the copilot extension running). In the extension host output logs, there shoudl be some log message saying which extension triggered a search.
bogdanst24 commentedon May 11, 2026
You are right! It was the
NuclleaR.vscode-extension-auto-importextension triggering it, though it does only happen when a copilot chat is opened. Not sure why, but it doesn't matter. I removed it and now everything is good.Found this as a similar reported issue #303190
Thank you for the help and sorry for taking your time