{"record":{"id":"51b4c191ed7da1ec","repo":"iced-rs/iced","slug":"build-circle-path","errorCode":null,"errorMessage":"Build circle path","messagePattern":"Build circle path","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"tiny_skia/src/engine.rs","lineNumber":645,"sourceCode":"    if top_left == 0.0 && top_right == 0.0 && bottom_right == 0.0 && bottom_left == 0.0 {\n        return tiny_skia::PathBuilder::from_rect(\n            tiny_skia::Rect::from_xywh(bounds.x, bounds.y, bounds.width, bounds.height)\n                .expect(\"Build quad rectangle\"),\n        );\n    }\n\n    if top_left == top_right\n        && top_left == bottom_right\n        && top_left == bottom_left\n        && top_left == bounds.width / 2.0\n        && top_left == bounds.height / 2.0\n    {\n        return tiny_skia::PathBuilder::from_circle(\n            bounds.x + bounds.width / 2.0,\n            bounds.y + bounds.height / 2.0,\n            top_left,\n        )\n        .expect(\"Build circle path\");\n    }\n\n    let mut builder = tiny_skia::PathBuilder::new();\n\n    builder.move_to(bounds.x + top_left, bounds.y);\n    builder.line_to(bounds.x + bounds.width - top_right, bounds.y);\n\n    if top_right > 0.0 {\n        arc_to(\n            &mut builder,\n            bounds.x + bounds.width - top_right,\n            bounds.y,\n            bounds.x + bounds.width,\n            bounds.y + top_right,\n            top_right,\n        );\n    }\n","sourceCodeStart":627,"sourceCodeEnd":663,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/tiny_skia/src/engine.rs#L627-L663","documentation":"Error \"Build circle path\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at tiny_skia/src/engine.rs:645 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2cffa99b395d84fe469b44dccb56bbacd2f1a157","analyzedAt":"2026-08-16T19:41:49.083Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}