Skip to content

Copilot agent mode appears to trigger Windows BSOD during ripgrep workspace scan #313167

Closed

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:

  1. Open a large workspace in VS Code.
  2. Use Copilot Chat agent mode / command execution, or trigger a large workspace scan/search.
  3. VS Code starts rg.exe for workspace scanning.
  4. 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

  1. added
    chat-ext-issue
    on Apr 29, 2026
  2. bogdanst24 commented on May 5, 2026

    @bogdanst24
    Author

    I narrowed down the triggers to changes in node modules folder, when copilot extension is opened, and any of the following are true:

    • using pnpm link (or similar tools) and updating the resources
    • updating libraries
    • manually replacing packages

    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.

  3. roblourens commented on May 6, 2026

    @roblourens
    Member

    Does search.followSymlinks help 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

  4. bogdanst24 commented on May 6, 2026

    @bogdanst24
    Author

    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": false set.

    Image

    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.

  5. roblourens commented on May 6, 2026

    @roblourens
    Member

    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

  6. bogdanst24 commented on May 8, 2026

    @bogdanst24
    Author

    Yes, you can see on the task manager search that it is filtered by "rg".

    Command:

    Pid        : 49756
    ParentPid  : 43756
    ParentName : Code - Insiders.exe
    Command    : "c:\Users\***\AppData\Local\Programs\Microsoft VS Code Insiders\6c2aba20dc\resources\app\node_modules\@vscode\ripgrep\bin\rg.exe" --files --hidden --case-sensitive
                 --no-require-git -g **/*.{js,jsx,ts,tsx} -g !**/.git -g !**/.svn -g !**/.hg -g !**/.DS_Store -g !**/Thumbs.db -g !**/CVS -g !**/node_modules/** --no-ignore --threads 1 --no-config
                 --no-ignore-global
    

    In logs, in extension logs, I see this, in an infinite loop

    2026-05-08 12:39:43.149 [debug] ExtHostSearch c:\Users\**\AppData\Local\Programs\Microsoft VS Code Insiders\89bab60dbb\resources\app\node_modules\@vscode\ripgrep\bin\rg.exe --files --hidden --case-sensitive --no-require-git -g '**/*.{js,jsx,ts,tsx}' -g '!**/.git' -g '!**/.svn' -g '!**/.hg' -g '!**/.DS_Store' -g '!**/Thumbs.db' -g '!**/CVS' -g '!**/node_modules/**' --no-ignore --threads '1' --no-config --no-ignore-global
     - cwd: c:\**\**\**
     - Sibling clauses: {}
    2026-05-08 12:39:43.235 [debug] ExtHostSearch c:\Users\**\AppData\Local\Programs\Microsoft VS Code Insiders\89bab60dbb\resources\app\node_modules\@vscode\ripgrep\bin\rg.exe --files --hidden --case-sensitive --no-require-git -g '**/*.{js,jsx,ts,tsx}' -g '!**/.git' -g '!**/.svn' -g '!**/.hg' -g '!**/.DS_Store' -g '!**/Thumbs.db' -g '!**/CVS' -g '!**/node_modules/**' --no-ignore --threads '1' --no-config --no-ignore-global
     - cwd: c:\Projects\***\***
     - Sibling clauses: {}
    2026-05-08 12:39:43.314 [debug] ExtHostSearch c:\Users\**\AppData\Local\Programs\Microsoft VS Code Insiders\89bab60dbb\resources\app\node_modules\@vscode\ripgrep\bin\rg.exe --files --hidden --case-sensitive --no-require-git -g '**/*.{js,jsx,ts,tsx}' -g '!**/.git' -g '!**/.svn' -g '!**/.hg' -g '!**/.DS_Store' -g '!**/Thumbs.db' -g '!**/CVS' -g '!**/node_modules/**' --no-ignore --threads '1' --no-config --no-ignore-global
     - cwd: c:\Projects\***\***\***
     - Sibling clauses: {}
    

    In Window:

    2026-05-08 12:41:00.639 [debug] [Window] [DefaultAccount] Refetching default account
    2026-05-08 12:41:00.639 [trace] [Window] [UserAttentionService] VS Code focus changed: true
    2026-05-08 12:41:00.751 [debug] [Window] [DefaultAccount] Default account provider ID: github
    2026-05-08 12:41:00.752 [debug] [Window] [DefaultAccount] Getting Default Account from authenticated sessions for provider: github
    2026-05-08 12:41:00.773 [trace] [Window] [UserAttentionService] User attention changed: false
    2026-05-08 12:41:01.142 [trace] [Window] [ChatSessionsService] Resolved 5 sessions for provider local
    2026-05-08 12:41:01.311 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:01.311 [trace] [Window] [UserAttentionService] User attention changed: true
    2026-05-08 12:41:07.761 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:08.761 [trace] [Window] NativeEditContext.blur
    2026-05-08 12:41:08.761 [trace] [Window] NativeEditContext#handleFocusChange :  false
    2026-05-08 12:41:10.761 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:12.804 [debug] [Window] Comments: URIs of continue on comments to add to storage .
    2026-05-08 12:41:12.804 [trace] [Window] [UserAttentionService] VS Code focus changed: false
    2026-05-08 12:41:13.379 [debug] [Window] chatEditingSession: Storing editing session at file:///c%3A/Users/***/AppData/Roaming/Code%20-%20Insiders/User/workspaceStorage/d275746959cabbc48daff2469e00e491/chatEditingSessions/88c00758-684e-4013-a4ed-073c4ad7f392: 26 files
    2026-05-08 12:41:15.495 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:16.900 [trace] [Window] [text file model] resolve() - enter file:///c%3A/Projects/**/**/**/package.json
    2026-05-08 12:41:16.900 [trace] [Window] [text file model] resolveFromFile() file:///c%3A/Projects/**/**/**/package.json
    2026-05-08 12:41:16.901 [debug] [Window] [DefaultAccount] Refetching default account
    2026-05-08 12:41:16.901 [trace] [Window] [UserAttentionService] VS Code focus changed: true
    2026-05-08 12:41:17.409 [trace] [Window] [ChatSessionsService] Resolved 5 sessions for provider local
    2026-05-08 12:41:17.900 [debug] [Window] Comments: URIs of continue on comments to add to storage .
    2026-05-08 12:41:18.409 [debug] [Window] [perf] SLOW task detected (509ms) but renderer profiling is disabled via 'application.experimental.rendererProfiling'
    2026-05-08 12:41:18.455 [debug] [Window] User data changed
    2026-05-08 12:41:18.460 [debug] [Window] chatEditingSession: Storing editing session at file:///c%3A/Users/***/AppData/Roaming/Code%20-%20Insiders/User/workspaceStorage/d275746959cabbc48daff2469e00e491/chatEditingSessions/88c00758-684e-4013-a4ed-073c4ad7f392: 26 files
    2026-05-08 12:41:22.111 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:22.855 [trace] [Window] CommandService#executeCommand workbench.action.output.show.rendererLog
    2026-05-08 12:41:22.861 [trace] [Window] Stopped polling file:///c%3A/Users//***/AppData/Roaming/Code%20-%20Insiders/logs/20260508T123020/window1/exthost/exthost.log
    2026-05-08 12:41:22.912 [trace] [Window] Started polling file:///c%3A/Users//***/AppData/Roaming/Code%20-%20Insiders/logs/20260508T123020/window1/renderer.log
    2026-05-08 12:41:22.912 [trace] [Window] Started polling file:///c%3A/Users//***/AppData/Roaming/Code%20-%20Insiders/logs/20260508T123020/window1/views.log
    2026-05-08 12:41:22.913 [trace] [Window] Started polling file:///c%3A/Users//***/AppData/Roaming/Code%20-%20Insiders/logs/20260508T123020/window1/network.log
    2026-05-08 12:41:22.913 [trace] [Window] Started polling file:///c%3A/Users//***/AppData/Roaming/Code%20-%20Insiders/logs/20260508T123020/window1/notebook.rendering.log
    2026-05-08 12:41:22.913 [trace] [Window] Started polling file:///c%3A/Users//***/AppData/Roaming/Code%20-%20Insiders/logs/20260508T123020/editSessions.log
    2026-05-08 12:41:23.978 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:25.911 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:27.144 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:28.728 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:29.544 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:30.128 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:34.744 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:36.306 [trace] [Window] CommandService#executeCommand _testing.getExplorerSelection
    2026-05-08 12:41:38.828 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:39.299 [trace] [Window] NativeEditContext.focus
    2026-05-08 12:41:39.300 [trace] [Window] NativeEditContext#handleFocusChange :  true
    2026-05-08 12:41:39.952 [trace] [Window] NativeEditContext.blur
    2026-05-08 12:41:39.953 [trace] [Window] NativeEditContext#handleFocusChange :  false
    2026-05-08 12:41:43.161 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:47.294 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:49.227 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:50.845 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:54.649 [trace] [Window] NativeEditContext.focus
    2026-05-08 12:41:54.649 [trace] [Window] NativeEditContext#handleFocusChange :  true
    2026-05-08 12:41:56.840 [trace] [Window] [UserAttentionService] User activity detected
    2026-05-08 12:41:57.087 [trace] [Window] KeybindingService#dispatch Ctrl+C [ Will dispatch command editor.action.clipboardCopyAction ]
    2026-05-08 12:41:57.087 [trace] [Window] CommandService#executeCommand editor.action.clipboardCopyAction
    2026-05-08 12:41:57.087 [trace] [Window] Executing Command 'editor.action.clipboardCopyAction' which has 7 bound.
    2026-05-08 12:41:57.088 [trace] [Window] registerExecCommandImpl (addImplementation code-editor for :  copy )
    2026-05-08 12:41:57.088 [trace] [Window] NativeEditContext#handleWillCopy
    2026-05-08 12:41:57.088 [trace] [Window] NativeEditContext#isFocused :  true
    2026-05-08 12:41:57.088 [trace] [Window] registerExecCommandImpl (before execCommand copy)
    2026-05-08 12:41:57.088 [trace] [Window] NativeEditContext#copy
    2026-05-08 12:41:57.090 [trace] [Window] CopyPasteController#handleCopy
    2026-05-08 12:41:57.090 [trace] [Window] CopyPasteController#setCopyMetadata new id :  87f2859f-dffb-44c7-a446-35353014331c
    2026-05-08 12:41:57.090 [trace] [Window] ensureClipboardGetsEditorSelection with id :  e9a718b6-16d3-44f7-b2fb-ca3d73c2c475  with text.length:  5756
    2026-05-08 12:41:57.090 [trace] [Window] registerExecCommandImpl (after execCommand copy)
    2026-05-08 12:41:57.091 [trace] [Window] Command 'editor.action.clipboardCopyAction' was handled by 'code-editor'.
    
    
    Github copilot chat
    
    2026-05-08 12:39:03.828 [debug] [Power] CPU speed limit changed: 35% (throttled)
    2026-05-08 12:39:04.027 [debug] [Power] CPU speed limit changed: 34% (throttled)
    2026-05-08 12:39:04.072 [debug] [Power] CPU speed limit changed: 35% (throttled)
    2026-05-08 12:39:04.072 [debug] [Power] CPU speed limit changed: 36% (throttled)
    2026-05-08 12:39:04.072 [debug] [Power] CPU speed limit changed: 38% (throttled)
    2026-05-08 12:39:04.073 [debug] [Power] CPU speed limit changed: 40% (throttled)
    2026-05-08 12:39:04.073 [debug] [Power] CPU speed limit changed: 42% (throttled)
    2026-05-08 12:39:04.073 [debug] [Power] CPU speed limit changed: 44% (throttled)
    2026-05-08 12:39:04.074 [debug] [Power] CPU speed limit changed: 45% (throttled)
    2026-05-08 12:39:04.074 [debug] [Power] CPU speed limit changed: 48% (throttled)
    2026-05-08 12:39:04.076 [debug] [Power] CPU speed limit changed: 49% (throttled)
    2026-05-08 12:39:04.077 [debug] [Power] CPU speed limit changed: 50% (throttled)
    2026-05-08 12:39:04.079 [debug] [Power] CPU speed limit changed: 52% (throttled)
    2026-05-08 12:39:04.081 [debug] [Power] CPU speed limit changed: 53% (throttled)
    2026-05-08 12:39:04.081 [debug] [Power] CPU speed limit changed: 54% (throttled)
    2026-05-08 12:39:04.084 [debug] [Power] CPU speed limit changed: 51% (throttled)
    2026-05-08 12:39:04.093 [debug] [Power] CPU speed limit changed: 52% (throttled)
    2026-05-08 12:39:04.095 [debug] [Power] CPU speed limit changed: 55% (throttled)
    2026-05-08 12:39:04.098 [debug] [Power] CPU speed limit changed: 56% (throttled)
    2026-05-08 12:39:04.101 [debug] [Power] CPU speed limit changed: 55% (throttled)
    2026-05-08 12:39:04.103 [debug] [Power] CPU speed limit changed: 54% (throttled)
    2026-05-08 12:39:04.105 [debug] [Power] CPU speed limit changed: 56% (throttled)
    2026-05-08 12:39:04.106 [debug] [Power] CPU speed limit changed: 59% (throttled)
    2026-05-08 12:39:04.106 [debug] [Power] CPU speed limit changed: 57% (throttled)
    2026-05-08 12:39:04.106 [debug] [Power] CPU speed limit changed: 58% (throttled)
    2026-05-08 12:39:04.106 [debug] [Power] CPU speed limit changed: 59% (throttled)
    2026-05-08 12:39:04.108 [debug] [Power] CPU speed limit changed: 60% (throttled)
    2026-05-08 12:41:36.305 [trace] [NES][DiagnosticsInlineCompletionProvider] Diagnostics changed received in processor: 
    
  7. roblourens commented on May 9, 2026

    @roblourens
    Member

    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.

  8. bogdanst24 commented on May 11, 2026

    @bogdanst24
    Author

    You are right! It was the NuclleaR.vscode-extension-auto-import extension 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

  9. locked and limited conversation to collaborators on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chat-ext-issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions