musistudio/claude-code-router · error
Capture area must not be empty.
Error message
Capture area must not be empty.
What it means
Error "Capture area must not be empty." thrown in musistudio/claude-code-router.
Source
Thrown at packages/electron/src/main/ipc.ts:613
function shareCardSaveDialogOptions(fileName: string): SaveDialogOptions {
return {
buttonLabel: "Save image",
defaultPath: path.join(app.getPath("downloads"), safePngFileName(fileName)),
filters: [
{ extensions: ["png"], name: "PNG image" }
],
title: "Save image"
};
}
function sanitizeCaptureRect(rect: AppCaptureElementPngRequest["rect"]): Rectangle {
const x = finiteNumber(rect?.x, "capture x");
const y = finiteNumber(rect?.y, "capture y");
const width = finiteNumber(rect?.width, "capture width");
const height = finiteNumber(rect?.height, "capture height");
if (width <= 0 || height <= 0) {
throw new Error("Capture area must not be empty.");
}
return {
height: Math.ceil(height),
width: Math.ceil(width),
x: Math.max(0, Math.floor(x)),
y: Math.max(0, Math.floor(y))
};
}
function sanitizeRenderSize(size: AppRenderHtmlPngRequest["size"]): { height: number; width: number } {
const width = finiteNumber(size?.width, "render width");
const height = finiteNumber(size?.height, "render height");
if (width <= 0 || height <= 0 || width > 4096 || height > 4096) {
throw new Error("Render size is out of range.");
}
return {
height: Math.ceil(height),
width: Math.ceil(width)View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/electron/src/main/ipc.ts:613 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of musistudio/claude-code-router@99f24806c6 (2026-08-27).
Data as JSON: /api/errors/30978463d57c0df1.
Report an issue: GitHub.