{"record":{"id":"fb1d4a32620bacf4","repo":"iced-rs/iced","slug":"non-zero-width","errorCode":null,"errorMessage":"Non-zero width","messagePattern":"Non-zero width","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"tiny_skia/src/window/compositor.rs","lineNumber":82,"sourceCode":"        let mut surface = Surface {\n            window,\n            clip_mask: tiny_skia::Mask::new(1, 1).expect(\"Create clip mask\"),\n            frames: VecDeque::new(),\n            max_age: 0,\n        };\n\n        if width > 0 && height > 0 {\n            self.configure_surface(&mut surface, width, height);\n        }\n\n        surface\n    }\n\n    fn configure_surface(&mut self, surface: &mut Self::Surface, width: u32, height: u32) {\n        surface\n            .window\n            .resize(\n                NonZeroU32::new(width).expect(\"Non-zero width\"),\n                NonZeroU32::new(height).expect(\"Non-zero height\"),\n            )\n            .expect(\"Resize surface\");\n\n        surface.clip_mask = tiny_skia::Mask::new(width, height).expect(\"Create clip mask\");\n        surface.frames.clear();\n    }\n\n    fn information(&self) -> Information {\n        Information {\n            adapter: String::from(\"CPU\"),\n            backend: String::from(\"tiny-skia\"),\n        }\n    }\n\n    fn present(\n        &mut self,\n        renderer: &mut Self::Renderer,","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/tiny_skia/src/window/compositor.rs#L64-L100","documentation":"Error \"Non-zero width\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at tiny_skia/src/window/compositor.rs:82 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"}