CommandCodeAI / CommandCodeAI/command-code

Desktop app renderer crashes on launch (render-process-gone, exit code -2147483645 / STATUS_BREAKPOINT) on Windows 11 24H2

Đang mở
#890 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Summary

Command Code Desktop (v0.1.35) will not open on Windows 11 24H2. The Electron main process starts fine and creates the window, but the sandboxed renderer process crashes immediately on every launch, so the window never becomes usable. The app looks like it is starting and then shows nothing.

Expected Behavior

The desktop app opens and shows a usable main window.

Actual Behavior

The main process starts and logs main.window-created and main.harness-loaded, then the renderer dies. The window never becomes usable.

%APPDATA%\Command Code\logs\main.log:

[2026-09-19 16:52:57.273] [info] Command Code starting - v0.1.35 (packaged: true)
[2026-09-19 16:52:57.537] [info] [startup] main.imports-start +1014ms (1014ms) -> main.module-loaded +13ms (1027ms) -> main.ready +65ms (1092ms) -> main.window-created +127ms (1219ms) -> main.harness-loaded +72ms (1291ms)
[2026-09-19 16:52:57.729] [error] [render-process-gone] crashed -2147483645
[2026-09-19 16:52:57.835] [error] [render-process-gone] crashed -2147483645

Exit code -2147483645 is 0x80000003 (STATUS_BREAKPOINT). Two render-process-gone events are logged per launch.

Steps to reproduce the issue
  1. Install Command Code Desktop 0.1.35 (x64) on Windows 11 Pro 24H2 (build 26100), Intel Core i3-4150.
  2. Launch the app from the Start Menu or Desktop shortcut.
  3. Watch %APPDATA%\Command Code\logs\main.log - the window is created, then render-process-gone (crashed -2147483645) is logged twice.
  4. The window never becomes usable.
Command Code Version

0.1.35 (desktop app) / 1.58.0 (cli)

Operating System

Windows

Terminal/IDE

Unknown

Shell

cmd.exe

Session file (optional)

No response

Fix prompt (optional)

Consider handling the case where the Windows renderer sandbox cannot initialize, instead of the renderer crashing with STATUS_BREAKPOINT. In resources/app/out/main/index.js the window is created with webPreferences.sandbox = true unconditionally; a fallback (or a documented opt-out) would let the app start on affected machines.

Additional context

Narrowed down on this machine:

  • Not corrupted user data: launching with a fresh --user-data-dir crashes identically.
  • Not GPU/driver: launching with --disable-gpu still crashes.
  • Not forced ASLR/CFG: Windows Exploit Protection is at defaults (ForceRelocateImages NOTSET, CFG NOTSET), HVCI not running.
  • Build is current: v0.1.35 is the latest desktop release.

Workaround that works: disabling the renderer sandbox. Both --no-sandbox and ELECTRON_DISABLE_SANDBOX=1 make the app start normally (reaches main.ready-to-show, zero crashes). The app hard-codes webPreferences.sandbox = true in resources/app/out/main/index.js.

Environment:

  • Windows 11 Pro, build 26100 (24H2)
  • CPU: Intel Core i3-4150 (Haswell, 2013) - not officially supported by Windows 11
  • Command Code Desktop 0.1.35 (x64), Command Code CLI 1.58.0
  • Windows Defender is the only AV product

Points to a Chromium renderer-sandbox incompatibility on this OS/CPU combination.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu trong resources/app/out/main/index.js, nơi webPreferences.sandbox được bật một cách vô điều kiện, và xem xét việc thiết lập cửa sổ renderer cũng như xử lý render-process-gone. Tái hiện trên Windows 11 24H2, so sánh quá trình khởi động bình thường với --no-sandbox hoặc ELECTRON_DISABLE_SANDBOX=1. Được xem là hoàn tất khi ứng dụng hiển thị được một cửa sổ có thể sử dụng mà không xảy ra sự cố với renderer, đồng thời vẫn duy trì sandbox phù hợp hoặc ghi lại tài liệu về opt-out.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
electron, javascript
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.