iced-rs/iced · error
Build circle path
Error message
Build circle path
What it means
Error "Build circle path" thrown in iced-rs/iced.
Source
Thrown at tiny_skia/src/engine.rs:645
if top_left == 0.0 && top_right == 0.0 && bottom_right == 0.0 && bottom_left == 0.0 {
return tiny_skia::PathBuilder::from_rect(
tiny_skia::Rect::from_xywh(bounds.x, bounds.y, bounds.width, bounds.height)
.expect("Build quad rectangle"),
);
}
if top_left == top_right
&& top_left == bottom_right
&& top_left == bottom_left
&& top_left == bounds.width / 2.0
&& top_left == bounds.height / 2.0
{
return tiny_skia::PathBuilder::from_circle(
bounds.x + bounds.width / 2.0,
bounds.y + bounds.height / 2.0,
top_left,
)
.expect("Build circle path");
}
let mut builder = tiny_skia::PathBuilder::new();
builder.move_to(bounds.x + top_left, bounds.y);
builder.line_to(bounds.x + bounds.width - top_right, bounds.y);
if top_right > 0.0 {
arc_to(
&mut builder,
bounds.x + bounds.width - top_right,
bounds.y,
bounds.x + bounds.width,
bounds.y + top_right,
top_right,
);
}
View on GitHub (pinned to 2cffa99b39)
When it happens
Trigger: Thrown at tiny_skia/src/engine.rs:645 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of iced-rs/iced@2cffa99b39 (2026-08-16).
Data as JSON: /api/errors/51b4c191ed7da1ec.
Report an issue: GitHub.