{"record":{"id":"2952afb6b70f7f59","repo":"iced-rs/iced","slug":"fill-rectangle","errorCode":null,"errorMessage":"Fill rectangle","messagePattern":"Fill rectangle","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"wgpu/src/geometry.rs","lineNumber":197,"sourceCode":"            .current\n            .0\n            .transform_point(lyon::math::Point::new(top_left.x, top_left.y));\n\n        let size = self\n            .transforms\n            .current\n            .0\n            .transform_vector(lyon::math::Vector::new(size.width, size.height));\n\n        let options = tessellation::FillOptions::default().with_fill_rule(into_fill_rule(rule));\n\n        self.fill_tessellator\n            .tessellate_rectangle(\n                &lyon::math::Box2D::new(top_left, top_left + size),\n                &options,\n                buffer.as_mut(),\n            )\n            .expect(\"Fill rectangle\");\n    }\n\n    fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>) {\n        let stroke = stroke.into();\n\n        let mut buffer = self\n            .buffers\n            .get_stroke(&self.transforms.current.transform_style(stroke.style));\n\n        let mut options = tessellation::StrokeOptions::default();\n        options.line_width = stroke.width;\n        options.start_cap = into_line_cap(stroke.line_cap);\n        options.end_cap = into_line_cap(stroke.line_cap);\n        options.line_join = into_line_join(stroke.line_join);\n\n        let path = if stroke.line_dash.segments.is_empty() {\n            Cow::Borrowed(path)\n        } else {","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/wgpu/src/geometry.rs#L179-L215","documentation":"Error \"Fill rectangle\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at wgpu/src/geometry.rs:197 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"}