Skip to content

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.

Error output
窗口尺寸被放大到 Win32 坐标的 16 位上限,导致 WebView2 无法渲染,界面永久不可见。
English translation

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.

  1. Fully exit the CC Switch process to prevent the invalid window state from being saved again on exit.

  2. Delete `%APPDATA%\com.ccswitch.desktop\.window-state.json`, then restart CC Switch.

ToolCC Switch 主窗口
Version3.19.1
PlatformsWindows

(No FAQ yet)

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.