The following: https://github.com/emilk/egui/blob/0f1d6c281894647b2fdd1fcb311eb930ab1a269c/crates/egui_extras/src/loaders/file_loader.rs#L99 Doesn't take into account that the user may want to forget the image before it's loaded. Here: https://github.com/emilk/egui/blob/0f1d6c281894647b2fdd1fcb311eb930ab1a269c/crates/egui_extras/src/loaders/file_loader.rs#L111 or here: https://github.com/emilk/egui/blob/0f1d6c281894647b2fdd1fcb311eb930ab1a269c/crates/egui_extras/src/loaders/file_loader.rs#L115 The following would be a better alternative (untested): ```rust let mut cache = cache.lock(); if cache.contains(&uri) { cache.insert(uri.clone(), Poll::Ready(result)); ctx.request_repaint(); log::trace!("finished loading {uri:?}"); } else { log::trace!("cancelled loading {uri:?}"); } ``` This assert was recently added by @bircni and @lucasmerlin in https://github.com/emilk/egui/commit/58b2ac88c0b39a48ac2277161ca75df3034b7ae3. It's possible similar assertions were added in other loaders.