๐Ÿ› [CRITICAL] Workspace VM Service Crash + Memory Leak: 18+ Processes, 2.5GB RAM, Complete Freeze

Status Open
Reported on v2.1.198
Maintainer reply None cached
Activity 1 comment ยท opened Jul 17, 2026

Summary

Claude Code extension fails to start workspace with "VM service not running" error.
Spawns 18+ processes simultaneously, consuming 1.1GB+ RAM โ†’ complete system freeze.
Native memory leak confirmed via Node.js debugger and Task Manager.

Reproduction Steps

  1. Install Claude Code (tested: 2.1.198, 2.1.211, 2.1.212 โ€” ALL affected)
  2. Open Cowork workspace
  3. Observe: error "Failed to start Claude's workspace - VM service not running"
  4. Task Manager: 18+ VS Code processes spawn simultaneously
  5. System becomes unresponsive (freeze)

Expected Behavior

  • Workspace starts normally
  • Single process or controlled process pool
  • Memory remains stable

Actual Behavior

  • Workspace fails to start
  • 18 VS Code processes spawned simultaneously
  • RAM consumption: 1,163.6 MB (example: 207.7 MB, 255.8 MB, 140.6 MB, 82.4 MB per process)
  • System freeze / unresponsiveness
  • Error: "VM service not running. The service failed to start."

Root Cause (Debugged)

Native addon memory leak โ€” STRUCTURAL BUG:

  • Module: windows-mutex / child_process native addons
  • Heap snapshot shows external memory not releasing: 6,624,217 bytes (6.3 MB)
  • Heap: 15,743,164 bytes used (15 MB)
  • RSS: 248,709,120 bytes (237 MB)
  • Growth rate unsustainable

Critical Finding: Version-Independent

Problem persists across ALL tested versions:

  • โœ— 2.1.198 โ€” 18 processes, 1.1GB RAM
  • โœ— 2.1.211 โ€” 18 processes, 2.5GB RAM
  • โœ— 2.1.212 โ€” 18 processes, 2.5GB RAM

Conclusion: Bug is NOT version-specific regression. This is a structural/architectural issue in native addon management, not fixable by downgrade.

Troubleshooting Attempted

โœ… Cleaned settings.local.json (200+ rules โ†’ 15 wildcards)
โœ… Downgraded extension (2.1.212 โ†’ 2.1.211 โ†’ 2.1.198) โ€” issue persists
โœ… Full VS Code uninstall + Windows registry cleanup
โœ… Cowork workspace complete reinstall
โœ… Node.js debugger attached โ€” confirmed native memory leak
โœ… Heap profiling โ€” external memory not released
โœ… Task Manager monitoring โ€” confirmed 18-process spawn across all versions

Timeline

  • 2026-07-17 11:48 AM โ€” Extension crash: "chatParticipant must be declared in package.json"
  • 2026-07-17 12:15 PM โ€” 18 processes spawn, full freeze
  • 2026-07-17 12:30 PM โ€” Attempted full uninstall/reinstall
  • 2026-07-17 1:00 PM โ€” Cowork workspace reinstall
  • 2026-07-17 1:15 PM โ€” In-app support ticket submitted
  • 2026-07-17 1:30 PM โ€” Multiple version downgrade tests (2.1.212 โ†’ 2.1.198) โ€” all affected
  • 2026-07-17 1:45 PM โ€” Confirmed bug is structural, not version-specific

System Information

  • OS: Windows 11 Home 10.0.26200
  • Cowork Version: 1.22209.0
  • Node.js: 24.18.0
  • Electron: 42.6.0
  • Claude Code Extensions Tested: 2.1.198, 2.1.211, 2.1.212 (ALL affected)
  • Subscription: PRO
  • RAM Available: 16 GB

Impact

  • ๐Ÿ”ด CRITICAL โ€” Active project blocked (ULC Due Diligence system, deadline at risk)
  • 4+ hours lost to troubleshooting
  • PRO subscription unusable
  • Cannot use Claude Code in VS Code or Cowork
  • Workaround: Using Claude CLI (functional, but limits VS Code integration)

Evidence

  • Task Manager snapshot: 18 processes, 1.1GB+ RAM (provided in attached screenshot)
  • Node.js heap snapshot available upon request
  • Error logs available upon request

Email: tolstoistudio@gmail.com

---

NOTE: This is a STRUCTURAL BUG in native addon lifecycle management. Requires engineering review of windows-mutex / child_process addon release/cleanup cycle.

View original on GitHub โ†—

This issue has 1 comment on GitHub. Read the full discussion on GitHub โ†—