iced-rs/iced · error
Non-zero width
Error message
Non-zero width
What it means
Error "Non-zero width" thrown in iced-rs/iced.
Source
Thrown at tiny_skia/src/window/compositor.rs:82
let mut surface = Surface {
window,
clip_mask: tiny_skia::Mask::new(1, 1).expect("Create clip mask"),
frames: VecDeque::new(),
max_age: 0,
};
if width > 0 && height > 0 {
self.configure_surface(&mut surface, width, height);
}
surface
}
fn configure_surface(&mut self, surface: &mut Self::Surface, width: u32, height: u32) {
surface
.window
.resize(
NonZeroU32::new(width).expect("Non-zero width"),
NonZeroU32::new(height).expect("Non-zero height"),
)
.expect("Resize surface");
surface.clip_mask = tiny_skia::Mask::new(width, height).expect("Create clip mask");
surface.frames.clear();
}
fn information(&self) -> Information {
Information {
adapter: String::from("CPU"),
backend: String::from("tiny-skia"),
}
}
fn present(
&mut self,
renderer: &mut Self::Renderer,View on GitHub (pinned to 2cffa99b39)
When it happens
Trigger: Thrown at tiny_skia/src/window/compositor.rs:82 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/fb1d4a32620bacf4.
Report an issue: GitHub.