Skip to content

Comments

chore: update libheif to fix 100% CPU usage due to corrupted HEIC images#259

Merged
mertalev merged 1 commit intoimmich-app:mainfrom
skatsubo:fix-bump-libheif
Aug 15, 2025
Merged

chore: update libheif to fix 100% CPU usage due to corrupted HEIC images#259
mertalev merged 1 commit intoimmich-app:mainfrom
skatsubo:fix-bump-libheif

Conversation

@skatsubo
Copy link
Contributor

libheif v1.19.8 does not properly detect corrupted HEIC and spins in an infinite loop with full 1 core 100% CPU usage (per thread / thumbnail generation job).
Seems fixed in v1.20, see the main issue thread.

Another/unrelated noticeable change in v1.20:

You can specify a security limit for the maximum total memory libheif may use for decoding. This is easier to handle than specifying limits on the maximum image size or single memory allocations.

@skatsubo skatsubo changed the title chore: Update libheif to fix 100% CPU usage due to corrupted HEIC images chore: update libheif to fix 100% CPU usage due to corrupted HEIC images Aug 15, 2025
@mertalev mertalev merged commit eb23769 into immich-app:main Aug 15, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants