cc-switch crashes on launch / white screen / black screen / background crash
Quick fix
Upgrade to the latest. Windows white screen: install WebView2. Proxy crash: change port, upgrade to v3.9.1+. Old macOS/Linux: use the CLI or distro package.
Symptom
Section titled “Symptom”3.9版本开启代理后,只要claude cli发起请求,ccs先是界面卡死然后就闪退了,关闭代理后就正常了。On version 3.9, with the proxy on, as soon as the claude cli makes a request, ccs freezes and then crashes. With the proxy off it behaves normally.
This cluster holds launch-time and runtime crashes with several different mechanisms. First: a panic while handling a request with the local proxy on, typically because the proxy layer truncates a log or request body across a multi-byte character boundary — for example byte index 2000 is not a char boundary. This was fixed by Proxy Panic Prevention / graceful degradation in v3.9.1. Second: a white screen or crash on Windows, usually tied to a missing WebView2, an old OS version, signature blocking, or UI/title-bar problems in later versions; v3.2.0 and v3.9.0+ each fixed part of the white/black screen family. Third: a tao event-loop assertion or state error while running in the background on Windows, such as flush_paint_messages or cannot move state from Destroyed — the issues name no definitive fix version. Fourth: a white screen, freeze, or failure to start on macOS/Linux, mostly because Tauri 2 is demanding about the OS, WebKit/GTK, hardware acceleration, and package type; older macOS and some Linux environments are better served by cc-switch-cli or a distro-specific package. There are also port conflicts that break or crash the proxy toggle, such as 7890 clashing with Clash, or port 5000 where 15721 was suggested instead.
Upgrade cc-switch to the latest version first. The crash with the proxy on was fixed in v3.9.1, and the Windows black screen was fixed in v3.9.0+ by switching to the system title bar; a maintainer suggested upgrading to v3.12.3 to verify.
If cc-switch freezes or crashes when Claude Code / Codex / Gemini CLI makes a request with the local proxy on, turn the proxy off to confirm. Once confirmed proxy-related, upgrade to v3.9.1 or newer. On port 5000, try 15721 instead; on port 7890 clashing with Clash, pick another port.
For a white screen on Windows, confirm the WebView2 Runtime is installed. If you fully uninstalled Edge, WebView2 may be missing — install WebView2RuntimeInstaller.exe and retry.
If a white screen or crash on Windows survives the upgrade, delete the .cc-switch folder in your user directory, uninstall, and reinstall. If it persists, back your data up, clear the related files, and reinstall.
If you downgraded from v3.9.* to v3.8.3 and it crashes, restore the cc-switch.db you backed up earlier. Otherwise prefer the newer version over downgrading.
For a white screen, freeze, or failure to start on Linux, prefer the distro-specific package shipped from v3.9.0+; on Fedora try the rpm. If the white screen happens in VMware, turn off virtual machine hardware acceleration.
On an older macOS (10.15 Catalina or macOS 11) showing a white screen, failing to start, or reporting it is unsupported: Tauri 2 demands a recent OS and WebKit, so use cc-switch-cli instead: https://github.com/SaladDay/cc-switch-cli
If cc-switch will not start on Windows because of a misconfigured WSL path or similar, uninstall thoroughly with a tool such as Geek Uninstaller, clear C:\Users\<username>\AppData\Local\com.ccswitch.desktop, and reinstall. Back important data up first.
For occasional crashes while running in the background, collect the logs under .cc-switch/log or .cc-switch/logs and send them to the maintainers. Some of the tao event-loop crashes in this cluster have no stated fix version.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 20 real issues
- #17window11 运行失败,程序闪退
- #26最新版本 v3.2.0 在 macOS Sequoia 15.6.1 运行闪退
- #119Ubuntu24 LTS 安装打开后白屏
- #347Mac 版本打不开了
- #381This software does not run on macOS versions older than Big Sur
- #414windows24H下,3.8.x-3.9-x版本打开都黑屏,几秒后闪退,降级到3.7.x 版本恢复正常
- #465v3.8.3打开就崩溃,系统mac 26.2
- #490AppImage 在 Ubuntu KDE 桌面环境下,输入框输入任意内容后程序卡死并崩溃
- #537Fedora 43 Linux 上无法启动
- #553win11开启代理后闪退
- #568使用本地代理导致 APP 直接 Crash
- #669Windows11自己退出进程问题
- #719mac电脑直接主界面白屏
- #768app后台运行的时候,有时候会崩溃,日志如下
- #1027MAC 11.7.10 安装后打开白屏,如何解决
- #1226Windows11无法正常启动
- #1415windows11环境下经常闪退
- #1585MacOS启动白屏
- #1608Windows 11 环境下配置 CC Switch 为 WSL 的Claude 路径后无法启动的
- #1718代理总开关打不开
- It only crashes with the proxy on and behaves normally with it off. Why?
- A panic while the proxy layer handles a request, common around v3.9. Upgrading to v3.9.1 or newer fixes it. Also avoid port conflicts with tools like Clash — change port 5000 to 15721, or move off 7890, if needed.
- Windows shows a white screen every time. What now?
- Install or repair the WebView2 Runtime first, especially if Edge was ever uninstalled. Then upgrade to v3.2.0 or newer. If that does not help, delete .cc-switch in your user directory and reinstall.
- An old Mac says it is unsupported or opens to a white screen. What now?
- Tauri 2 demands a recent macOS and WebKit, so 10.15/11 and similar may not render properly. Use cc-switch-cli instead: https://github.com/SaladDay/cc-switch-cli
- Linux shows a white screen or freezes after input. What now?
- Use the distro-specific package shipped from v3.9.0+ — on Fedora, try the rpm. VMware users can turn off hardware acceleration. AppImage/Flatpak may still fail in some environments.
- It crashes after downgrading from v3.9.* to v3.8.3. What now?
- Downgrading after running v3.9.* requires restoring the cc-switch.db you backed up earlier. Otherwise upgrade rather than downgrade.
- It quits by itself after running in the background for a while and the log shows a tao error. How do I fix it?
- Those crashes relate to the Windows event loop, and the issues name no definitive fix version. Upgrade to the latest version, and if it still reproduces, submit the logs under .cc-switch/log or .cc-switch/logs.
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.