Window Size Overflows to 65535×53251, CC Switch Main Window Invisible
Quick fix
Fully exit CC Switch, delete the window state file, and restart to clear the persisted invalid window size.
Symptom
Section titled “Symptom”窗口尺寸被放大到 Win32 坐标的 16 位上限,导致 WebView2 无法渲染,界面永久不可见。The window size was enlarged to the 16-bit limit of Win32 coordinates, preventing WebView2 from rendering and leaving the interface permanently invisible.
On Windows, after dragging the main window from a display at 100% scaling to one at 175% scaling, its size abnormally grows to 65535×53251, and the invalid size and position are written to the window state file. Startup recovery applies the saved size unconditionally. Because the oversized window rectangle intersects a display, the saved position is also restored, so each launch returns to an invisible state.
The temporary workaround provided in the issue is to fully exit the process first, then delete the window state file. If the process is still running, it may write the invalid state again on exit.
Fully exit the CC Switch process to prevent the invalid window state from being saved again on exit.
Delete `%APPDATA%\com.ccswitch.desktop\.window-state.json`, then restart CC Switch.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
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.