cc-switch crashes immediately after opening
Quick fix
No confirmed fix. Reinstalling does not help. Collect debug logs and wait for an official fix.
Symptom
Section titled “Symptom”打开后就闪退Crashes immediately after opening
Multiple users on Windows 11 report that cc-switch flashes or exits immediately after the main window appears, on both Windows 11 Pro 25H2 and Home. Reinstalling does not improve it. A user built a debug version for troubleshooting. The log shows startup proceeding normally: inserting default model pricing data, checking Claude/Codex/Gemini 等配置, registering the deep link, initializing `[GlobalProxy] Initialized: direct connection`, and finally printing `正常启动模式:主窗口已显示`, after which the process exits. This means the crash point is not captured by the current logs and may be in the main window/WebView or an uncaught exception. No clear root cause is known for this issue.
This is an open issue with no maintainer-confirmed solution. Do not confuse it with #6215, where deleting imported skills caused original directory files to be lost; that is a different failure.
Do not repeatedly uninstall and reinstall. In #845, users reported that reinstalling still crashes immediately.
To locate the issue, run the debug build: `D:\cc-switch\src-tauri\target\debug\cc-switch.exe`, and save the trailing log. If the log stops after `正常启动模式:主窗口已显示` and the process exits, the crash was not written to the current log.
Reply to issue #845 with your system version (`winver`, e.g. Windows 11 Pro 25H2) and that log, then wait for the maintainer to investigate further.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- Does cc-switch also crash on Windows 11 Home?
- Yes. In #845, users reported the same issue on both Pro 25H2 and Home.
- Can uninstalling and reinstalling fix it?
- Based on current feedback, reinstalling still crashes immediately and is not an effective fix.
- Why does the debug log contain no error?
- The log ends at `正常启动模式:主窗口已显示`, then the process exits. This crash is not recorded by the current logs. Maintainers need to add crash dumps or more logging.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.