Closed rscarson closed 1 month ago
Offending code:
let src = skia_safe::IRect::from_xywh(
skia_image.width() * fit.clip_rect.origin.x / source_size.width as i32,
skia_image.height() * fit.clip_rect.origin.y / source_size.height as i32,
skia_image.width() * fit.clip_rect.size.width / source_size.width as i32,
skia_image.height() * fit.clip_rect.size.height / source_size.height as i32,
);
Looks like a null image can cause this.
Offending code:
let src = skia_safe::IRect::from_xywh( skia_image.width() * fit.clip_rect.origin.x / source_size.width as i32, skia_image.height() * fit.clip_rect.origin.y / source_size.height as i32, skia_image.width() * fit.clip_rect.size.width / source_size.width as i32, skia_image.height() * fit.clip_rect.size.height / source_size.height as i32, );
Looks like a null image can cause this.
Makes sense, I have an image generated by a backend callback. In preview mode it would be null
Seems to be related to this struct. Crash occurred once I put the comma after the last field: