Skip to content

Commit

Permalink
Fix crashing images (qarmin#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin authored Feb 27, 2024
1 parent e5a0219 commit 2a32a52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions czkawka_core/src/similar_images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ impl SimilarImages {
let (progress_thread_handle, progress_thread_run, atomic_counter, check_was_stopped) =
prepare_thread_handler_common(progress_sender, 1, 2, non_cached_files_to_check.len(), CheckingMethod::None, self.common_data.tool_type);

// Throw out images with not proper type - TODO why this happens, only broken cache?
let non_cached_files_to_check = non_cached_files_to_check
.into_iter()
.filter(|(_, file_entry)| file_entry.image_type != ImageType::Unknown)
.collect::<BTreeMap<_, _>>();

debug!("hash_images - start hashing images");
let mut vec_file_entry: Vec<ImagesEntry> = non_cached_files_to_check
.into_par_iter()
Expand Down

0 comments on commit 2a32a52

Please sign in to comment.