Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash #1937

Closed
opened 2025-12-21 19:44:37 +01:00 by backuprepo · 60 comments
Owner

Originally created by @nicolasvac on GitHub (Jul 24, 2020).

System (please complete the following information):

  • OS: Ubuntu 20.04
  • Virtualization: Docker
  • Clients: Browser
  • Browser: Edge
  • Jellyfin Version: 10.6.0
  • Playback:
  • Installed Plugins: none
  • Reverse Proxy: nginx
  • Base URL: none
  • Networking: reverse proxy
  • Storage: local

To Reproduce

  1. Add avengers endgame to library
  2. Fetch metadata
  3. See error

Logs

[matroska,webm @ 0x55db0cd733c0] Could not find codec parameters for stream 1 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[16:11:52] [INF] [73] MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider: TmdbSearch: Finding id for item: Avengers Endgame (2019)
[16:12:19] [INF] [76] Emby.Server.Implementations.IO.LibraryMonitor: film (/media/film) will be refreshed.
[16:12:35] [INF] [73] MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider: TmdbSearch: Finding id for item: endgame (null)
[16:12:36] [WRN] [71] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 200 to XXX. Time (slow): 0:00:00.7172692. http://XXX/Items/RemoteSearch/Movie
[16:12:43] [INF] [30] MediaBrowser.Api.ItemLookupService: Setting provider id's to item 5ffaee96-5bcc-6860-cefe-1fb24c9da385-Avengers - Endgame: {"Tmdb":"299534"}
[matroska,webm @ 0x55aa278633c0] Could not find codec parameters for stream 1 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[16:12:52] [ERR] [63] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/F/Frank Grillo/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
[16:13:00] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/J/Joe Russo/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
[16:13:04] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/S/Stan Lee/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
[16:13:13] [ERR] [69] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/J/John Michael Morris/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
[16:13:18] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/J/Jim Starlin/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
[16:13:26] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/S/Stephen McFeely/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
Originally created by @nicolasvac on GitHub (Jul 24, 2020). **System (please complete the following information):** - OS: Ubuntu 20.04 - Virtualization: Docker - Clients: Browser - Browser: Edge - Jellyfin Version: 10.6.0 - Playback: - Installed Plugins: none - Reverse Proxy: nginx - Base URL: none - Networking: reverse proxy - Storage: local **To Reproduce** 1. Add avengers endgame to library 2. Fetch metadata 3. See error **Logs** ``` [matroska,webm @ 0x55db0cd733c0] Could not find codec parameters for stream 1 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [16:11:52] [INF] [73] MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider: TmdbSearch: Finding id for item: Avengers Endgame (2019) [16:12:19] [INF] [76] Emby.Server.Implementations.IO.LibraryMonitor: film (/media/film) will be refreshed. [16:12:35] [INF] [73] MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider: TmdbSearch: Finding id for item: endgame (null) [16:12:36] [WRN] [71] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 200 to XXX. Time (slow): 0:00:00.7172692. http://XXX/Items/RemoteSearch/Movie [16:12:43] [INF] [30] MediaBrowser.Api.ItemLookupService: Setting provider id's to item 5ffaee96-5bcc-6860-cefe-1fb24c9da385-Avengers - Endgame: {"Tmdb":"299534"} [matroska,webm @ 0x55aa278633c0] Could not find codec parameters for stream 1 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [16:12:52] [ERR] [63] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/F/Frank Grillo/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) [16:13:00] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/J/Joe Russo/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) [16:13:04] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/S/Stan Lee/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) [16:13:13] [ERR] [69] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/J/John Michael Morris/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) [16:13:18] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/J/Jim Starlin/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) [16:13:26] [ERR] [31] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/S/Stephen McFeely/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) ```
backuprepo 2025-12-21 19:44:37 +01:00
Author
Owner

@Carl-RTP commented on GitHub (Aug 1, 2020):

Ditto

[23:54:12] [ERR] [21] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/People/J/James Earl Jones/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.CoreBlurHashEncoder.Encode(Int32 xComponents, Int32 yComponents, Int32 width, Int32 height, ReadOnlySpan`1 pixels, Int32 bytesPerRow, PixelFormat pixelFormat)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename)
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
@Carl-RTP commented on GitHub (Aug 1, 2020): Ditto ``` [23:54:12] [ERR] [21] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/People/J/James Earl Jones/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.CoreBlurHashEncoder.Encode(Int32 xComponents, Int32 yComponents, Int32 width, Int32 height, ReadOnlySpan`1 pixels, Int32 bytesPerRow, PixelFormat pixelFormat) at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) ```
Author
Owner

@stale[bot] commented on GitHub (Nov 30, 2020):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Nov 30, 2020): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Author
Owner

@nicolasvac commented on GitHub (Dec 6, 2020):

Still relevant

@nicolasvac commented on GitHub (Dec 6, 2020): Still relevant
Author
Owner

@jagarrison commented on GitHub (Jan 15, 2021):

I've been getting this error as well. My libraries rarely update any more and JellyFin is becoming useless now.

@jagarrison commented on GitHub (Jan 15, 2021): I've been getting this error as well. My libraries rarely update any more and JellyFin is becoming useless now.
Author
Owner

@Ishannaik commented on GitHub (Jan 16, 2021):

Same error here Ubuntu and installed using jellyfin.org instructions


[2021-01-16 14:11:08.954 +00:00] [ERR] Cannot compute blurhash for "/root/Media/drive/Jellyfin/Anime/Black Clover/extrafanart/fanart9.jpg"
System.IO.FileNotFoundException: File not found
File name: '/root/Media/drive/Jellyfin/Anime/Black Clover/extrafanart/fanart9.jpg'
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
[2021-01-16 14:11:08.955 +00:00] [ERR] Cannot compute blurhash for "/root/Media/drive/Jellyfin/Anime/Black Clover/extrafanart/fanart10.jpg"
System.IO.FileNotFoundException: File not found
@Ishannaik commented on GitHub (Jan 16, 2021): Same error here Ubuntu and installed using jellyfin.org instructions ``` [2021-01-16 14:11:08.954 +00:00] [ERR] Cannot compute blurhash for "/root/Media/drive/Jellyfin/Anime/Black Clover/extrafanart/fanart9.jpg" System.IO.FileNotFoundException: File not found File name: '/root/Media/drive/Jellyfin/Anime/Black Clover/extrafanart/fanart9.jpg' at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) [2021-01-16 14:11:08.955 +00:00] [ERR] Cannot compute blurhash for "/root/Media/drive/Jellyfin/Anime/Black Clover/extrafanart/fanart10.jpg" System.IO.FileNotFoundException: File not found ```
Author
Owner

@digdilem commented on GitHub (Jan 17, 2021):

Same on debian, running in docker. Things aren't getting added to the library.


[2021-01-17 11:33:30.785 +00:00] [INF] [38] MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider: TmdbSearch: Finding id for item: "REDACTED" (2015)
[2021-01-17 11:33:59.973 +00:00] [ERR] [37] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/config/metadata/People/A/Anna Brewster/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate)
@digdilem commented on GitHub (Jan 17, 2021): Same on debian, running in docker. Things aren't getting added to the library. ``` [2021-01-17 11:33:30.785 +00:00] [INF] [38] MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider: TmdbSearch: Finding id for item: "REDACTED" (2015) [2021-01-17 11:33:59.973 +00:00] [ERR] [37] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/config/metadata/People/A/Anna Brewster/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImages(BaseItem item, Boolean forceUpdate) ```
Author
Owner

@cvium commented on GitHub (Apr 9, 2021):

Can you upload the images that are failing?

And @digdilem a failing blurhash does not stop the scanner.

@cvium commented on GitHub (Apr 9, 2021): Can you upload the images that are failing? And @digdilem a failing blurhash does not stop the scanner.
Author
Owner

@gjvanetten commented on GitHub (Jul 12, 2021):

I get the same error for many different poster images:

Running Jellyfin in Docker on Ubuntu 20.04
Version: 10.7.6
Operating System: Linux
Architecture: X64

[17:29:39] [ERR] [104] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/movies/1408 (2007)/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[17:29:49] [ERR] [106] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/movies/The Incredible Hulkdvdrip (2008)/poster.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)

@gjvanetten commented on GitHub (Jul 12, 2021): I get the same error for many different poster images: Running Jellyfin in Docker on Ubuntu 20.04 Version: 10.7.6 Operating System: Linux Architecture: X64 [17:29:39] [ERR] [104] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/movies/1408 (2007)/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [17:29:49] [ERR] [106] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/movies/The Incredible Hulkdvdrip (2008)/poster.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
Author
Owner

@nothing2obvi commented on GitHub (Aug 28, 2021):

Any update on this? I have the same error. At least for now it seems the error is confined to my "Movies" library, and Jellyfin seems able to scan other media, found in libraries other than "Movies."

today at 1:01:15 AM [01:01:15] [ERR] [47] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /gdrive-movies/MOVIES___BRUCE.LEE__2.OF.2/The.Game.of.Death.1978.1080p.BluRay.x264.anoXmous_swe-backdrop.jpg
today at 1:01:15 AM System.IO.FileNotFoundException: File not found
today at 1:01:15 AM File name: '/gdrive-movies/MOVIES___BRUCE.LEE__2.OF.2/The.Game.of.Death.1978.1080p.BluRay.x264.anoXmous_swe-backdrop.jpg'
today at 1:01:15 AM    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path)
today at 1:01:15 AM    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
today at 1:01:15 AM    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
today at 1:01:16 AM [01:01:16] [ERR] [46] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/Silent.Movie.1976.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg
today at 1:01:16 AM System.IO.FileNotFoundException: File not found
today at 1:01:16 AM File name: '/gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/Silent.Movie.1976.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg'
today at 1:01:16 AM    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path)
today at 1:01:16 AM    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
today at 1:01:16 AM    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
today at 1:01:18 AM [01:01:18] [ERR] [47] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/The.Twelve.Chairs.1970.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg
today at 1:01:18 AM System.IO.FileNotFoundException: File not found
today at 1:01:18 AM File name: '/gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/The.Twelve.Chairs.1970.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg'
today at 1:01:18 AM    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path)
today at 1:01:18 AM    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
today at 1:01:18 AM    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)

I am running Jellyfin 10.7.6 on Docker on Ubuntu machine btw.

@nothing2obvi commented on GitHub (Aug 28, 2021): Any update on this? I have the same error. At least for now it seems the error is confined to my "Movies" library, and Jellyfin seems able to scan other media, found in libraries other than "Movies." ``` today at 1:01:15 AM [01:01:15] [ERR] [47] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /gdrive-movies/MOVIES___BRUCE.LEE__2.OF.2/The.Game.of.Death.1978.1080p.BluRay.x264.anoXmous_swe-backdrop.jpg today at 1:01:15 AM System.IO.FileNotFoundException: File not found today at 1:01:15 AM File name: '/gdrive-movies/MOVIES___BRUCE.LEE__2.OF.2/The.Game.of.Death.1978.1080p.BluRay.x264.anoXmous_swe-backdrop.jpg' today at 1:01:15 AM at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) today at 1:01:15 AM at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) today at 1:01:15 AM at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) today at 1:01:16 AM [01:01:16] [ERR] [46] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/Silent.Movie.1976.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg today at 1:01:16 AM System.IO.FileNotFoundException: File not found today at 1:01:16 AM File name: '/gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/Silent.Movie.1976.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg' today at 1:01:16 AM at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) today at 1:01:16 AM at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) today at 1:01:16 AM at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) today at 1:01:18 AM [01:01:18] [ERR] [47] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/The.Twelve.Chairs.1970.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg today at 1:01:18 AM System.IO.FileNotFoundException: File not found today at 1:01:18 AM File name: '/gdrive-movies/MOVIES___MEL.BROOKS___1.OF.2/The.Twelve.Chairs.1970.1080p.BluRay.H264.AAC-RARBG-backdrop.jpg' today at 1:01:18 AM at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) today at 1:01:18 AM at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) today at 1:01:18 AM at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ``` I am running Jellyfin 10.7.6 on Docker on Ubuntu machine btw.
Author
Owner

@cvium commented on GitHub (Aug 28, 2021):

There's no update on this because no one has answered my question.

If I'm being completely honest I think it's a user error. A filenotfound error could easily be caused by poorly configured file permissions

@cvium commented on GitHub (Aug 28, 2021): There's no update on this because no one has answered my question. If I'm being completely honest I think it's a user error. A filenotfound error could easily be caused by poorly configured file permissions
Author
Owner

@Petitgnoll6 commented on GitHub (Sep 21, 2021):

Hi everyone,

I get a similar problem (jellyfin installed in docker with linuxserver image).

ERR] [71] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/video/Films/ExtraFanart/9ISArgiVBdNLASKmvflRDMOYYMj.jpg"
System.IO.FileNotFoundException: File not found
File name: '/data/video/Films/ExtraFanart/9ISArgiVBdNLASKmvflRDMOYYMj.jpg'
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)

And this error is spammed in the logs (with different image name)
And indeed, there is 0 image in the ExtraFanart folder.
@cvium About the permissions, the Jellyfin user has read/write access on /video and every subfolder.

At the end of the scan there is this error:

[2021-09-21 10:43:40.249 +02:00] [INF] [74] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scanner toutes les Bibliothèques" Completed after 13 minute(s) and 10 seconds
[2021-09-21 10:43:40.249 +02:00] [ERR] [53] Emby.Server.Implementations.IO.LibraryMonitor: Error in Directory watcher for: "/data/video/Films"
System.IO.IOException: The configured user limit (8192) on the number of inotify watches has been reached, or the operating system failed to allocate a required resource.

Jellyfin is working fine, I have my library working but the scheluded task "scan all library" takes 13 minutes and I though it could be slowed down by this error.
And some movies doesnt have a backdrop image and when I check "modify images" on this movies, i get a list of like 200 blank backdrops image (and if I search manually another backdrop image, I found like only 2 or 3, i download 1 and it goes at the end of the list of the 300 other blank backdrops)

Any idea ?
Should I just don't care ?

Thanks

@Petitgnoll6 commented on GitHub (Sep 21, 2021): Hi everyone, I get a similar problem (jellyfin installed in docker with linuxserver image). ``` ERR] [71] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/video/Films/ExtraFanart/9ISArgiVBdNLASKmvflRDMOYYMj.jpg" System.IO.FileNotFoundException: File not found File name: '/data/video/Films/ExtraFanart/9ISArgiVBdNLASKmvflRDMOYYMj.jpg' at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) ``` And this error is spammed in the logs (with different image name) And indeed, there is 0 image in the ExtraFanart folder. @cvium About the permissions, the Jellyfin user has read/write access on /video and every subfolder. At the end of the scan there is this error: ``` [2021-09-21 10:43:40.249 +02:00] [INF] [74] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scanner toutes les Bibliothèques" Completed after 13 minute(s) and 10 seconds [2021-09-21 10:43:40.249 +02:00] [ERR] [53] Emby.Server.Implementations.IO.LibraryMonitor: Error in Directory watcher for: "/data/video/Films" System.IO.IOException: The configured user limit (8192) on the number of inotify watches has been reached, or the operating system failed to allocate a required resource. ``` Jellyfin is working fine, I have my library working but the scheluded task "scan all library" takes 13 minutes and I though it could be slowed down by this error. And some movies doesnt have a backdrop image and when I check "modify images" on this movies, i get a list of like 200 blank backdrops image (and if I search manually another backdrop image, I found like only 2 or 3, i download 1 and it goes at the end of the list of the 300 other blank backdrops) Any idea ? Should I just don't care ? Thanks
Author
Owner

@Basrandir commented on GitHub (Oct 24, 2021):

Can confirm have the same error. All my new movie posters are broken now and the BlurHash error is the only possibly relevant error I see in the logs. Nothing has changed with the permissions of the Movies folder

[2021-10-24 04:50:25.130 +00:00] [ERR] Cannot compute blurhash for "/mnt/storage/media/Movies/The Green Knight (2021)/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)

For what it's worth. Don't have a single issue with any of my TV posters.

@Basrandir commented on GitHub (Oct 24, 2021): Can confirm have the same error. All my new movie posters are broken now and the BlurHash error is the only possibly relevant error I see in the logs. Nothing has changed with the permissions of the `Movies` folder ``` [2021-10-24 04:50:25.130 +00:00] [ERR] Cannot compute blurhash for "/mnt/storage/media/Movies/The Green Knight (2021)/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ``` For what it's worth. Don't have a single issue with any of my TV posters.
Author
Owner

@Dubwize commented on GitHub (Nov 1, 2021):

@Petitgnoll6 - For your inotify error take a look at
https://jellyfin.org/docs/general/administration/troubleshooting.html#real-time-monitoring

I believe the linuxserver,io docker is ubuntu base, so you should be able to increase the inotify watches with.
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

As a side note, i get the blurhash error, but only on files that don't exist, which i find strange that it would try to do something to an image file, without first grabbing the image file if it's not detected.

image

and it's no permissions issues, as you can see the .nfo was built today (by jellyfin), without issues.
image

@Dubwize commented on GitHub (Nov 1, 2021): @Petitgnoll6 - For your inotify error take a look at https://jellyfin.org/docs/general/administration/troubleshooting.html#real-time-monitoring I believe the linuxserver,io docker is ubuntu base, so you should be able to increase the inotify watches with. echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p As a side note, i get the blurhash error, but only on files that don't exist, which i find strange that it would try to do something to an image file, without first grabbing the image file if it's not detected. ![image](https://user-images.githubusercontent.com/16105140/139701849-a515ed52-e70a-467c-a457-920b7f383363.png) and it's no permissions issues, as you can see the .nfo was built today (by jellyfin), without issues. ![image](https://user-images.githubusercontent.com/16105140/139702057-cf56c453-bdad-49c7-a6e7-81c52dae7d91.png)
Author
Owner

@Petitgnoll6 commented on GitHub (Dec 3, 2021):

Yes it was indeed this inotify modification that fixed the error (but i don't know if it fixed my background problems or scan time, but i don't have any issue regarding those anymore).

And i had the blurhash error only on missing files. I think i fixed it by rescanning manually using "replace metadata + replace existing images". Then no more black background and no more blurhash error due to missing files.

@Petitgnoll6 commented on GitHub (Dec 3, 2021): Yes it was indeed this inotify modification that fixed the error (but i don't know if it fixed my background problems or scan time, but i don't have any issue regarding those anymore). And i had the blurhash error only on missing files. I think i fixed it by rescanning manually using "replace metadata + replace existing images". Then no more black background and no more blurhash error due to missing files.
Author
Owner

@rbkn commented on GitHub (Nov 18, 2022):

I found adding some additional RAM to the server after noticing that free -m was sometimes showing paging fixed this issue for me.

@rbkn commented on GitHub (Nov 18, 2022): I found adding some additional RAM to the server after noticing that `free -m` was sometimes showing paging fixed this issue for me.
Author
Owner

@MainServerSpace commented on GitHub (Dec 18, 2022):

I'm also affected by this issue
image_picker_388884D8-7093-480F-BA79-F01E6AFC3B3A-11269-0000019A2D3D7004

@MainServerSpace commented on GitHub (Dec 18, 2022): I'm also affected by this issue ![image_picker_388884D8-7093-480F-BA79-F01E6AFC3B3A-11269-0000019A2D3D7004](https://user-images.githubusercontent.com/86547540/208321647-64a91be7-21d3-486f-91c3-2768af3a9bf8.jpg)
Author
Owner

@gazhay commented on GitHub (Jan 1, 2023):

Just hitting this issue.

Had a drive fail and so lost some library content. Do I really have to delete my library and rescan everything because one or two files went awol?

@gazhay commented on GitHub (Jan 1, 2023): Just hitting this issue. Had a drive fail and so lost some library content. Do I really have to delete my library and rescan everything because one or two files went awol?
Author
Owner

@gazhay commented on GitHub (Jan 1, 2023):

Even worse, went to rescan the whole library and it is failing seconds after it starts.
Now cannot scan or update libraries at all. Even if I create a new one from scratch :-O

@gazhay commented on GitHub (Jan 1, 2023): Even worse, went to rescan the whole library and it is failing seconds after it starts. Now cannot scan or update libraries at all. Even if I create a new one from scratch :-O
Author
Owner

@daves00 commented on GitHub (Feb 23, 2023):

I have solved this issueon my server by moving my music library to a different disk folder, adding it to JF and removing the older folder.

@daves00 commented on GitHub (Feb 23, 2023): I have solved this issueon my server by moving my music library to a different disk folder, adding it to JF and removing the older folder.
Author
Owner

@redthing1 commented on GitHub (May 5, 2023):

I still have this issue.

@redthing1 commented on GitHub (May 5, 2023): I still have this issue.
Author
Owner

@edrock200 commented on GitHub (Jul 17, 2023):

I'm getting a ton of these errors too, but not file not found, but rather "Object reference not set to an instance of an object"

I've confirmed the file exists, has correct permissions and is a valid jpg image

System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2023-07-17 22:29:47.856 +03:00] [ERR] [22] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/redacted/path/to/poster.jpg"

@edrock200 commented on GitHub (Jul 17, 2023): I'm getting a ton of these errors too, but not file not found, but rather "Object reference not set to an instance of an object" I've confirmed the file exists, has correct permissions and is a valid jpg image `System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2023-07-17 22:29:47.856 +03:00] [ERR] [22] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/redacted/path/to/poster.jpg"`
Author
Owner

@nuttapillar commented on GitHub (Aug 30, 2023):

[2023-08-31 07:11:27.609 +09:30] [ERR] [47] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/Media/Photos/2023-01-16 - Mannum/DJI_0767-HDR-Enhanced.dng"
System.NullReferenceException: Object reference not set to an instance of an object.

@nuttapillar commented on GitHub (Aug 30, 2023): [2023-08-31 07:11:27.609 +09:30] [ERR] [47] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/Media/Photos/2023-01-16 - Mannum/DJI_0767-HDR-Enhanced.dng" System.NullReferenceException: Object reference not set to an instance of an object.
Author
Owner

@fermulator commented on GitHub (Sep 5, 2023):

Yes, "ditto" - stdout logs are spewing many errors like this during initial media scan. Using docker installation (https://jellyfin.org/docs/general/installation/container/#docker).

[23:39:40] [ERR] [19] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/L/Larry J. Franco/folder.jpg

System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[23:39:40] [ERR] [41] MediaBrowser.Providers.Manager.ProviderManager: IOException saving to /config/metadata/People/V/Volker Engel/folder.jpg. Will retry saving to /config/metadata/library/a4/a4a8d1445ed91d956f6b112e657943ec/folder.jpg

System.IO.IOException: The process cannot access the file '/config/metadata/People/V/Volker Engel/folder.jpg' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.FileStream..ctor(String path, FileStreamOptions options)
   at MediaBrowser.Providers.Manager.ImageSaver.SaveImageToLocation(Stream source, String path, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ImageSaver.SaveImageToLocation(Stream source, String path, String retryPath, CancellationToken cancellationToken)
@fermulator commented on GitHub (Sep 5, 2023): Yes, "ditto" - stdout logs are spewing many errors like this during initial media scan. Using docker installation (https://jellyfin.org/docs/general/installation/container/#docker). ``` [23:39:40] [ERR] [19] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/metadata/People/L/Larry J. Franco/folder.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [23:39:40] [ERR] [41] MediaBrowser.Providers.Manager.ProviderManager: IOException saving to /config/metadata/People/V/Volker Engel/folder.jpg. Will retry saving to /config/metadata/library/a4/a4a8d1445ed91d956f6b112e657943ec/folder.jpg System.IO.IOException: The process cannot access the file '/config/metadata/People/V/Volker Engel/folder.jpg' because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize) at System.IO.FileStream..ctor(String path, FileStreamOptions options) at MediaBrowser.Providers.Manager.ImageSaver.SaveImageToLocation(Stream source, String path, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ImageSaver.SaveImageToLocation(Stream source, String path, String retryPath, CancellationToken cancellationToken) ```
Author
Owner

@johnhamelink commented on GitHub (Sep 12, 2023):

I'm using NixOS, and I'm also seeing this. My music directory seems to be imported, but movies & TV show libraries are almost empty. My libraries, cache & metadata are all stored in ZFS datasets. It seems like the importing fails after just one import, yet it continues in a failed state, hence the errors related to blurhash?

[root@sun:/pool/Backup/jellyfin]# ls -al /pool/cache/jellyfin/metadata/library/**   
total 3
drwx------ 3 jellyfin media 3 Sep 12 23:04 .
drwx------ 3 jellyfin media 3 Sep 12 23:04 ..
drwx------ 2 jellyfin media 3 Sep 12 23:04 7e64e319657a9516ec78490da03edccb

[root@sun:/pool/Backup/jellyfin]# ls -al /pool/cache/jellyfin/cache/**           
-rw------- 1 jellyfin media 70377 Sep 12 23:09 /pool/cache/jellyfin/cache/ede8849c535340b98fc5ddad17a15ff2_channels

/pool/cache/jellyfin/cache/images:
total 14
drwx------ 3 jellyfin media 3 Sep 12 23:06 .
drwxr-xr-x 4 jellyfin media 5 Sep 12 23:09 ..
drwx------ 4 jellyfin media 4 Sep 12 23:10 resized-images

/pool/cache/jellyfin/cache/temp:
total 648
drwx------ 2 jellyfin media      3 Sep 12 23:04 .
drwxr-xr-x 4 jellyfin media      5 Sep 12 23:09 ..
-rw------- 1 jellyfin media 644742 Sep 12 23:04 7a9a183666da4cbc9d85f1523ce2a93b.png
@johnhamelink commented on GitHub (Sep 12, 2023): I'm using NixOS, and I'm also seeing this. My music directory seems to be imported, but movies & TV show libraries are *almost* empty. My libraries, cache & metadata are all stored in ZFS datasets. It seems like the importing fails after just one import, yet it continues in a failed state, hence the errors related to blurhash? ``` [root@sun:/pool/Backup/jellyfin]# ls -al /pool/cache/jellyfin/metadata/library/** total 3 drwx------ 3 jellyfin media 3 Sep 12 23:04 . drwx------ 3 jellyfin media 3 Sep 12 23:04 .. drwx------ 2 jellyfin media 3 Sep 12 23:04 7e64e319657a9516ec78490da03edccb [root@sun:/pool/Backup/jellyfin]# ls -al /pool/cache/jellyfin/cache/** -rw------- 1 jellyfin media 70377 Sep 12 23:09 /pool/cache/jellyfin/cache/ede8849c535340b98fc5ddad17a15ff2_channels /pool/cache/jellyfin/cache/images: total 14 drwx------ 3 jellyfin media 3 Sep 12 23:06 . drwxr-xr-x 4 jellyfin media 5 Sep 12 23:09 .. drwx------ 4 jellyfin media 4 Sep 12 23:10 resized-images /pool/cache/jellyfin/cache/temp: total 648 drwx------ 2 jellyfin media 3 Sep 12 23:04 . drwxr-xr-x 4 jellyfin media 5 Sep 12 23:09 .. -rw------- 1 jellyfin media 644742 Sep 12 23:04 7a9a183666da4cbc9d85f1523ce2a93b.png ```
Author
Owner

@Azmodeszer commented on GitHub (Nov 25, 2023):

I'm running Jellyfin natively on Ubuntu 22.04.3 and I am also getting thousands of these in my log:

[2023-11-25 09:52:18.632 +01:00] [ERR] Cannot compute blurhash for "/mnt/media5/jellyfin/metadata/library/c0/c0c7164f503ff54ff62065127666c9b0/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
@Azmodeszer commented on GitHub (Nov 25, 2023): I'm running Jellyfin natively on Ubuntu 22.04.3 and I am also getting thousands of these in my log: ``` [2023-11-25 09:52:18.632 +01:00] [ERR] Cannot compute blurhash for "/mnt/media5/jellyfin/metadata/library/c0/c0c7164f503ff54ff62065127666c9b0/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ```
Author
Owner

@prahal commented on GitHub (Dec 10, 2023):

Here is the failing image:

[06:03:07] [ERR] [21] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for Adafruit Learning System_files/tools_IBM_002.jpg
System.NullReferenceException: Object reference not set to an instance of an object.
at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)

tools_IBM_002

sudo -u docker_u file "/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg"
/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 72x72, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=13, description=MM, manufacturer=SONY, model=DSC-H1, orientation=upper-left, software=Microsoft Windows Photo Gallery 6.0.6001.18000, datetime=2011:10:27 10:42:09], baseline, precision 8, 160x120, components 3
ls -l "/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg"
-rw-rw-r-- 1 31103 users 22058  3 févr.  2015 '/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg'


ps -e -o pid,user,group,comm |grep jellyfin
3616551 docker_u users    jellyfin

PS: Please before adding your report to this issue, check you have BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode in the error (File not found is another issue).

@prahal commented on GitHub (Dec 10, 2023): Here is the failing image: [06:03:07] [ERR] [21] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for Adafruit Learning System_files/tools_IBM_002.jpg System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ![tools_IBM_002](https://github.com/jellyfin/jellyfin/assets/140865/ea978897-d8e6-4d72-bad6-82f1eb05b3a7) ``` sudo -u docker_u file "/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg" /srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 72x72, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=13, description=MM, manufacturer=SONY, model=DSC-H1, orientation=upper-left, software=Microsoft Windows Photo Gallery 6.0.6001.18000, datetime=2011:10:27 10:42:09], baseline, precision 8, 160x120, components 3 ``` ``` ls -l "/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg" -rw-rw-r-- 1 31103 users 22058 3 févr. 2015 '/srv/dev-disk-by-label-store/media/document/Formation/dd_Build/Soldering/Common Soldering Problems | Adafruit Guide To Excellent Soldering | Adafruit Learning System_files/tools_IBM_002.jpg' ps -e -o pid,user,group,comm |grep jellyfin 3616551 docker_u users jellyfin ``` PS: Please before adding your report to this issue, check you have `BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode` in the error (`File not found` is another issue).
Author
Owner

@zarlin commented on GitHub (Feb 14, 2024):

I'm running into this issue as well, here is one of the stack traces, the log is riddled with them.

[2024-02-14 23:31:56.853 +01:00] [ERR] [36] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/media/Anime/Mushibugyo/metadata/[HorribleSubs] Mushibugyo - 10 [1080p].jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
   at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)

I checked the file in question, and it looks like a 100% normal image file.

HorribleSubs  Mushibugyo - 10  1080p

The permissions look OK to me, but I'm not yet very experienced with linux permissions:

root@jellyfin:/media/Anime/Mushibugyo/metadata # ls -l \[HorribleSubs]\ Mushibugyo\ -\ 10\ \[1080p].jpg
-rwxrwxrwx+ 1 jellyfin  wheel  84899 Dec 18 22:37 [HorribleSubs] Mushibugyo - 10 [1080p].jpg

I do see a lot of characters getting escaped in the file path, maybe the Skia library doesn't handle those characters well?

Server info:

  • Version: 10.8.13
  • Operating System: BSD (Truenas Jail)
  • Architecture: X64
@zarlin commented on GitHub (Feb 14, 2024): I'm running into this issue as well, here is one of the stack traces, the log is riddled with them. ``` [2024-02-14 23:31:56.853 +01:00] [ERR] [36] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/media/Anime/Mushibugyo/metadata/[HorribleSubs] Mushibugyo - 10 [1080p].jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ``` I checked the file in question, and it looks like a 100% normal image file. ![HorribleSubs Mushibugyo - 10 1080p](https://github.com/jellyfin/jellyfin/assets/16149743/6107e6fb-3c92-4748-bc9e-847dad31b2fd) The permissions look OK to me, but I'm not yet very experienced with linux permissions: ``` root@jellyfin:/media/Anime/Mushibugyo/metadata # ls -l \[HorribleSubs]\ Mushibugyo\ -\ 10\ \[1080p].jpg -rwxrwxrwx+ 1 jellyfin wheel 84899 Dec 18 22:37 [HorribleSubs] Mushibugyo - 10 [1080p].jpg ``` I do see a lot of characters getting escaped in the file path, maybe the Skia library doesn't handle those characters well? Server info: - Version: 10.8.13 - Operating System: BSD (Truenas Jail) - Architecture: X64
Author
Owner

@zarlin commented on GitHub (Feb 17, 2024):

Interestingly enough this issue no longer occurs since I disabled "Enable real time monitoring" for all libraries. Maybe the files were not accessible because they got locked by the monitoring process, or something along those lines.

I made this change based on one of the FAQ entries of the FreeBSD Jellyfin port, while trying to solve (seemingly unrelated) "name not resolved" errors.

@zarlin commented on GitHub (Feb 17, 2024): Interestingly enough this issue no longer occurs since I disabled "Enable real time monitoring" for all libraries. Maybe the files were not accessible because they got locked by the monitoring process, or something along those lines. I made this change based on one of the [FAQ](https://github.com/Thefrank/jellyfin-server-freebsd/blob/main/FAQ.md) entries of the FreeBSD Jellyfin port, while trying to solve (seemingly unrelated) "name not resolved" errors.
Author
Owner

@prahal commented on GitHub (Feb 26, 2024):

Sadly by disabling real-time monitoring you also disable the scan of the library to check for files that failed to be processed.
Thus it did not fix the bug but only stopped the process that scanned the files and was failing on any files.
If you trigger a manual scan the error will resurface.

Also, without a manual scan or restoring this real-time monitor, new content will not be added to the library, or at least thumbnails and such won't be generated.

@prahal commented on GitHub (Feb 26, 2024): Sadly by disabling real-time monitoring you also disable the scan of the library to check for files that failed to be processed. Thus it did not fix the bug but only stopped the process that scanned the files and was failing on any files. If you trigger a manual scan the error will resurface. Also, without a manual scan or restoring this real-time monitor, new content will not be added to the library, or at least thumbnails and such won't be generated.
Author
Owner

@cvium commented on GitHub (Feb 26, 2024):

You can enable or increase the frequency of the scheduled library scan task

@cvium commented on GitHub (Feb 26, 2024): You can enable or increase the frequency of the scheduled library scan task
Author
Owner

@KodeToad commented on GitHub (Mar 12, 2024):

I see this problem frequently in jf 10.8.13 too
It has been upgraded several times.
All those images look normal

Mar 13 01:28:20 jellyfin jellyfin[218]: [01:28:20] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/6c/6cb66e23e1d53c0c5ee0017db125742a/poster.jpg
Mar 13 01:28:20 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object.
Mar 13 01:28:20 jellyfin jellyfin[218]:    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
Mar 13 01:28:20 jellyfin jellyfin[218]:    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
Mar 13 01:28:20 jellyfin jellyfin[218]:    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
Mar 13 01:28:20 jellyfin jellyfin[218]:    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
Mar 13 01:28:21 jellyfin jellyfin[218]: [01:28:21] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/97/9778795df193aca6b6c56bee0ab8f59c/poster.jpg
Mar 13 01:28:21 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object.
Mar 13 01:28:21 jellyfin jellyfin[218]:    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
Mar 13 01:28:21 jellyfin jellyfin[218]: [01:28:21] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/52/524e0e831c148be95a52b6567b0a49b0/poster.jpg
Mar 13 01:28:21 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object.
Mar 13 01:28:21 jellyfin jellyfin[218]:    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
Mar 13 01:28:21 jellyfin jellyfin[218]: [01:28:21] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/0b/0b31fcb749c5481e74b4c68c003eeace/poster.jpg
Mar 13 01:28:21 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object.
Mar 13 01:28:21 jellyfin jellyfin[218]:    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
Mar 13 01:28:21 jellyfin jellyfin[218]:    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
# apt-cache show jellyfin
Package: jellyfin
Version: 10.8.13-1
Architecture: all
Maintainer: Jellyfin Packaging Team <packaging@jellyfin.org>
Installed-Size: 9
Depends: jellyfin-server (>= 10.8.13-1), jellyfin-web (>= 10.8.13-1), jellyfin-ffmpeg5 (>= 5.0.0)
Multi-Arch: foreign
Homepage: https://jellyfin.org
Priority: optional
Section: misc
Filename: pool/main/j/jellyfin/jellyfin_10.8.13-1_all.deb
Size: 2284
SHA256: 6daf9cd9e7d903f8c19657394ee9860d0e104a3a484ac88bc8d905e81bbd5e69
SHA1: f4e9cf61105dd7c505a12962d41659a4bbf72ef7
MD5sum: 2f4daba908abe143d711c784c4331963
Description: Provides the Jellyfin Free Software Media System
 Provides the full Jellyfin experience, including both the server and web interface.
Description-md5: 0afaa9ef51f17b3e922126b94fc87480
@KodeToad commented on GitHub (Mar 12, 2024): I see this problem frequently in jf 10.8.13 too It has been upgraded several times. All those images look normal ``` Mar 13 01:28:20 jellyfin jellyfin[218]: [01:28:20] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/6c/6cb66e23e1d53c0c5ee0017db125742a/poster.jpg Mar 13 01:28:20 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object. Mar 13 01:28:20 jellyfin jellyfin[218]: at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) Mar 13 01:28:20 jellyfin jellyfin[218]: at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) Mar 13 01:28:20 jellyfin jellyfin[218]: at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) Mar 13 01:28:20 jellyfin jellyfin[218]: at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) Mar 13 01:28:21 jellyfin jellyfin[218]: [01:28:21] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/97/9778795df193aca6b6c56bee0ab8f59c/poster.jpg Mar 13 01:28:21 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object. Mar 13 01:28:21 jellyfin jellyfin[218]: at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) Mar 13 01:28:21 jellyfin jellyfin[218]: at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) Mar 13 01:28:21 jellyfin jellyfin[218]: at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) Mar 13 01:28:21 jellyfin jellyfin[218]: at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) Mar 13 01:28:21 jellyfin jellyfin[218]: [01:28:21] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/52/524e0e831c148be95a52b6567b0a49b0/poster.jpg Mar 13 01:28:21 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object. Mar 13 01:28:21 jellyfin jellyfin[218]: at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) Mar 13 01:28:21 jellyfin jellyfin[218]: at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) Mar 13 01:28:21 jellyfin jellyfin[218]: at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) Mar 13 01:28:21 jellyfin jellyfin[218]: at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) Mar 13 01:28:21 jellyfin jellyfin[218]: [01:28:21] [ERR] Cannot compute blurhash for /var/lib/jellyfin/metadata/library/0b/0b31fcb749c5481e74b4c68c003eeace/poster.jpg Mar 13 01:28:21 jellyfin jellyfin[218]: System.NullReferenceException: Object reference not set to an instance of an object. Mar 13 01:28:21 jellyfin jellyfin[218]: at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) Mar 13 01:28:21 jellyfin jellyfin[218]: at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) Mar 13 01:28:21 jellyfin jellyfin[218]: at Emby.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) Mar 13 01:28:21 jellyfin jellyfin[218]: at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ``` ``` # apt-cache show jellyfin Package: jellyfin Version: 10.8.13-1 Architecture: all Maintainer: Jellyfin Packaging Team <packaging@jellyfin.org> Installed-Size: 9 Depends: jellyfin-server (>= 10.8.13-1), jellyfin-web (>= 10.8.13-1), jellyfin-ffmpeg5 (>= 5.0.0) Multi-Arch: foreign Homepage: https://jellyfin.org Priority: optional Section: misc Filename: pool/main/j/jellyfin/jellyfin_10.8.13-1_all.deb Size: 2284 SHA256: 6daf9cd9e7d903f8c19657394ee9860d0e104a3a484ac88bc8d905e81bbd5e69 SHA1: f4e9cf61105dd7c505a12962d41659a4bbf72ef7 MD5sum: 2f4daba908abe143d711c784c4331963 Description: Provides the Jellyfin Free Software Media System Provides the full Jellyfin experience, including both the server and web interface. Description-md5: 0afaa9ef51f17b3e922126b94fc87480 ```
Author
Owner

@SkalCore commented on GitHub (Apr 14, 2024):

also have this error message in the logs with Version: 10.8.13, using docker

@SkalCore commented on GitHub (Apr 14, 2024): also have this error message in the logs with Version: 10.8.13, using docker
Author
Owner

@upuldi commented on GitHub (Apr 24, 2024):

Interestingly enough this issue no longer occurs since I disabled "Enable real time monitoring" for all libraries. Maybe the files were not accessible because they got locked by the monitoring process, or something along those lines.

I made this change based on one of the FAQ entries of the FreeBSD Jellyfin port, while trying to solve (seemingly unrelated) "name not resolved" errors.

This fixed it. Thank you.

@upuldi commented on GitHub (Apr 24, 2024): > Interestingly enough this issue no longer occurs since I disabled "Enable real time monitoring" for all libraries. Maybe the files were not accessible because they got locked by the monitoring process, or something along those lines. > > I made this change based on one of the [FAQ](https://github.com/Thefrank/jellyfin-server-freebsd/blob/main/FAQ.md) entries of the FreeBSD Jellyfin port, while trying to solve (seemingly unrelated) "name not resolved" errors. This fixed it. Thank you.
Author
Owner

@samumatic commented on GitHub (May 14, 2024):

In Version 10.9.1 the issue is still there, but crashes my jellyfin docker container. Im not sure if it is related, but this are the last errors that occured:

Logs
jellyfin  | [11:20:03] [INF] [154] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 93.240.188.163 request
jellyfin  | [11:20:06] [INF] [153] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 93.240.188.163 closed
jellyfin  | [11:40:33] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Räumt Log-Verzeichnis auf Completed after 0 minute(s) and 0 seconds
jellyfin  | [11:40:35] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Räume Transkodierungs-Verzeichnis auf Completed after 0 minute(s) and 0 seconds
jellyfin  | [11:40:36] [INF] [92] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db...
jellyfin  | [11:40:36] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Lade fehlende Untertitel herunter Completed after 0 minute(s) and 0 seconds
jellyfin  | [11:40:36] [INF] [93] Emby.Server.Implementations.ScheduledTasks.TaskManager: Leere Zwischenspeicher Completed after 0 minute(s) and 0 seconds
jellyfin  | [11:40:36] [INF] [92] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: jellyfin.db optimized successfully!
jellyfin  | [11:40:36] [INF] [92] Emby.Server.Implementations.ScheduledTasks.TaskManager: Datenbank optimieren Completed after 0 minute(s) and 0 seconds
jellyfin  | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/photos
jellyfin  | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/movies
jellyfin  | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/photos
jellyfin  | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/movies
jellyfin  | [11:43:22] [INF] [99] Emby.Server.Implementations.Library.LibraryManager: Validating media library
jellyfin  | [11:43:22] [WRN] [99] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/data/playlists is inaccessible or empty, skipping
jellyfin  | [11:43:22] [WRN] [126] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/data/playlists is inaccessible or empty, skipping
jellyfin  | [11:43:48] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/46/461b03b0fd84f3aeaa451f0cb3c905c4/poster.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:43:49] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/f3/f37767125176b98fbd35ae49f7ae9aaf/poster.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:43:49] [ERR] [100] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/26/26915bc221c47fd4e7f36d2d20f6af2a/folder.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:43:49] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_line.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:43:50] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_bg_gradient.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:44:56] [ERR] [102] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/46/461b03b0fd84f3aeaa451f0cb3c905c4/poster.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:44:56] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/f3/f37767125176b98fbd35ae49f7ae9aaf/poster.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:44:56] [ERR] [102] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/26/26915bc221c47fd4e7f36d2d20f6af2a/folder.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:44:57] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_line.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:44:57] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_bg_gradient.png
jellyfin  | System.NullReferenceException: Object reference not set to an instance of an object.
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap)
jellyfin  |    at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
jellyfin  |    at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
jellyfin  |    at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
jellyfin  |    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
jellyfin  | [11:46:29] [INF] [101] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scanne Medien-Bibliothek Completed after 3 minute(s) and 7 seconds
jellyfin  | [11:46:30] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/1/movies
jellyfin  | [11:46:30] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/2/movies
jellyfin  | [11:46:34] [INF] [101] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/2/photos
jellyfin  | [11:46:38] [INF] [102] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/1/photos
jellyfin  | [14:22:38] [INF] [146] Emby.Server.Implementations.Session.SessionManager: Sending shutdown notifications
jellyfin  | [14:22:38] [INF] [147] Jellyfin.Networking.PortForwardingHost: Stopping NAT discovery
jellyfin  | [14:22:38] [INF] [148] Main: Running query planner optimizations in the database... This might take a while
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/photos
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/movies
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/photos
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/movies
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzArtistProvider
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider
jellyfin  | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager
@samumatic commented on GitHub (May 14, 2024): In Version 10.9.1 the issue is still there, but crashes my jellyfin docker container. Im not sure if it is related, but this are the last errors that occured: <details> <summary>Logs</summary> <br> ``` jellyfin | [11:20:03] [INF] [154] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 93.240.188.163 request jellyfin | [11:20:06] [INF] [153] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 93.240.188.163 closed jellyfin | [11:40:33] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Räumt Log-Verzeichnis auf Completed after 0 minute(s) and 0 seconds jellyfin | [11:40:35] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Räume Transkodierungs-Verzeichnis auf Completed after 0 minute(s) and 0 seconds jellyfin | [11:40:36] [INF] [92] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db... jellyfin | [11:40:36] [INF] [94] Emby.Server.Implementations.ScheduledTasks.TaskManager: Lade fehlende Untertitel herunter Completed after 0 minute(s) and 0 seconds jellyfin | [11:40:36] [INF] [93] Emby.Server.Implementations.ScheduledTasks.TaskManager: Leere Zwischenspeicher Completed after 0 minute(s) and 0 seconds jellyfin | [11:40:36] [INF] [92] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: jellyfin.db optimized successfully! jellyfin | [11:40:36] [INF] [92] Emby.Server.Implementations.ScheduledTasks.TaskManager: Datenbank optimieren Completed after 0 minute(s) and 0 seconds jellyfin | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/photos jellyfin | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/movies jellyfin | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/photos jellyfin | [11:43:22] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/movies jellyfin | [11:43:22] [INF] [99] Emby.Server.Implementations.Library.LibraryManager: Validating media library jellyfin | [11:43:22] [WRN] [99] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/data/playlists is inaccessible or empty, skipping jellyfin | [11:43:22] [WRN] [126] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/data/playlists is inaccessible or empty, skipping jellyfin | [11:43:48] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/46/461b03b0fd84f3aeaa451f0cb3c905c4/poster.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:43:49] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/f3/f37767125176b98fbd35ae49f7ae9aaf/poster.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:43:49] [ERR] [100] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/26/26915bc221c47fd4e7f36d2d20f6af2a/folder.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:43:49] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_line.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:43:50] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_bg_gradient.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:44:56] [ERR] [102] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/46/461b03b0fd84f3aeaa451f0cb3c905c4/poster.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:44:56] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/f3/f37767125176b98fbd35ae49f7ae9aaf/poster.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:44:56] [ERR] [102] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /config/data/metadata/library/26/26915bc221c47fd4e7f36d2d20f6af2a/folder.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:44:57] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_line.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:44:57] [ERR] [101] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for /data/family/1/photos/Medion 32GB/openfeint/webui/images/blue_bg_gradient.png jellyfin | System.NullReferenceException: Object reference not set to an instance of an object. jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.EncodeInternal(Int32 xComponent, Int32 yComponent, SKBitmap bitmap) jellyfin | at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) jellyfin | at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) jellyfin | at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) jellyfin | at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) jellyfin | [11:46:29] [INF] [101] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scanne Medien-Bibliothek Completed after 3 minute(s) and 7 seconds jellyfin | [11:46:30] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/1/movies jellyfin | [11:46:30] [INF] [99] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/2/movies jellyfin | [11:46:34] [INF] [101] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/2/photos jellyfin | [11:46:38] [INF] [102] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/family/1/photos jellyfin | [14:22:38] [INF] [146] Emby.Server.Implementations.Session.SessionManager: Sending shutdown notifications jellyfin | [14:22:38] [INF] [147] Jellyfin.Networking.PortForwardingHost: Stopping NAT discovery jellyfin | [14:22:38] [INF] [148] Main: Running query planner optimizations in the database... This might take a while jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/photos jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/movies jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/2/photos jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /data/family/1/movies jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzArtistProvider jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider jellyfin | [14:22:38] [INF] [148] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager ``` </details>
Author
Owner

@felix920506 commented on GitHub (Sep 3, 2024):

Info copied from #12106 :

Please describe your bug

I get an error for some logos and after checking a few the images mentioned in the log, they all of them have something in common -> They are large raster images.

Some logos from the logs

    Sizes are 10601x1848, 9148x2250, 4319x481
    ".png" with webP inside

Maybe related to https://github.com/jellyfin/jellyfin/issues/3687 , but i found no mentioning of the image size
Reproduction Steps

    Add a large logo as webP or properly png as well. Attached a logo under screenshots
    Run the library scan and follow the logs
@felix920506 commented on GitHub (Sep 3, 2024): Info copied from #12106 : ``` Please describe your bug I get an error for some logos and after checking a few the images mentioned in the log, they all of them have something in common -> They are large raster images. Some logos from the logs Sizes are 10601x1848, 9148x2250, 4319x481 ".png" with webP inside Maybe related to https://github.com/jellyfin/jellyfin/issues/3687 , but i found no mentioning of the image size Reproduction Steps Add a large logo as webP or properly png as well. Attached a logo under screenshots Run the library scan and follow the logs ```
Author
Owner

@felix920506 commented on GitHub (Sep 3, 2024):

marking this as confirmed as info provided in duplicate issue #12106 was used to successfully reproduce the issue for more than one user.

@felix920506 commented on GitHub (Sep 3, 2024): marking this as confirmed as info provided in duplicate issue #12106 was used to successfully reproduce the issue for more than one user.
Author
Owner

@robotreto commented on GitHub (Oct 14, 2024):

Bug is still present in 10.10.0 :

[2024-10-14 10:06:02.198 +02:00] [ERR] [21] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "C:\Users\Reto\AppData\Local\jellyfin\metadata\People\M\Michael Fassbender\folder.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) in G:\Downloads\jellyfin-master\src\Jellyfin.Drawing.Skia\SkiaEncoder.cs:line 199 at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) in G:\Downloads\jellyfin-master\src\Jellyfin.Drawing\ImageProcessor.cs:line 403 at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) in G:\Downloads\jellyfin-master\Emby.Server.Implementations\Library\LibraryManager.cs:line 1933

@robotreto commented on GitHub (Oct 14, 2024): Bug is still present in 10.10.0 : `[2024-10-14 10:06:02.198 +02:00] [ERR] [21] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "C:\Users\Reto\AppData\Local\jellyfin\metadata\People\M\Michael Fassbender\folder.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) in G:\Downloads\jellyfin-master\src\Jellyfin.Drawing.Skia\SkiaEncoder.cs:line 199 at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) in G:\Downloads\jellyfin-master\src\Jellyfin.Drawing\ImageProcessor.cs:line 403 at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) in G:\Downloads\jellyfin-master\Emby.Server.Implementations\Library\LibraryManager.cs:line 1933 `
Author
Owner

@gnattu commented on GitHub (Oct 14, 2024):

Is this poster also a super huge picture? Can you upload it? Because I suspect it only happens to certain pictures.

@gnattu commented on GitHub (Oct 14, 2024): Is this poster also a super huge picture? Can you upload it? Because I suspect it only happens to certain pictures.
Author
Owner

@robotreto commented on GitHub (Oct 14, 2024):

Not really, just regular JPG, 1000*1500, here you can download them :
SkiaEncoderCrashingPics.zip

@robotreto commented on GitHub (Oct 14, 2024): Not really, just regular JPG, 1000*1500, here you can download them : [SkiaEncoderCrashingPics.zip](https://github.com/user-attachments/files/17363274/SkiaEncoderCrashingPics.zip)
Author
Owner

@gnattu commented on GitHub (Oct 20, 2024):

These files look fine to me and actually is passing the unit test for Blurhash. Maybe there is a small possibility that the compute blurhash was executed earlier than the files are actually fully written to the disk. But from the current code it really should not happen?

@gnattu commented on GitHub (Oct 20, 2024): These files look fine to me and actually is passing the unit test for Blurhash. Maybe there is a small possibility that the compute blurhash was executed earlier than the files are actually fully written to the disk. But from the current code it really should not happen?
Author
Owner

@gnattu commented on GitHub (Oct 20, 2024):

If my theory is correct, adding a new line changing the async write option to WriteThrough could workaround this issue:

b3da2ff8f4/MediaBrowser.Providers/Manager/ImageSaver.cs (L292-L293)

fileStreamOptions.Options = FileOptions.WriteThrough;

But I'm unable to reproduce this myself so I need someone else to test this.

@gnattu commented on GitHub (Oct 20, 2024): If my theory is correct, adding a new line changing the async write option to `WriteThrough` could workaround this issue: https://github.com/jellyfin/jellyfin/blob/b3da2ff8f494c91fb19779d64db47fff521a155e/MediaBrowser.Providers/Manager/ImageSaver.cs#L292-L293 ```cs fileStreamOptions.Options = FileOptions.WriteThrough; ``` But I'm unable to reproduce this myself so I need someone else to test this.
Author
Owner

@robotreto commented on GitHub (Oct 22, 2024):

Maybe I should add skia by source instead of the dll, and then catch the exception with the debugger.

@robotreto commented on GitHub (Oct 22, 2024): Maybe I should add skia by source instead of the dll, and then catch the exception with the debugger.
Author
Owner

@AlexGustafsson commented on GitHub (Nov 6, 2024):

Here's a 2048x1152 (421KB) png that also causes this issue. It fails when the file is added to disk and a metadata update from Jellyfin is requested. It does not fail when adding the image via the UI.

backdrop.png.zip

@AlexGustafsson commented on GitHub (Nov 6, 2024): Here's a 2048x1152 (421KB) png that also causes this issue. It fails when the file is added to disk and a metadata update from Jellyfin is requested. It does not fail when adding the image via the UI. [backdrop.png.zip](https://github.com/user-attachments/files/17651764/backdrop.png.zip)
Author
Owner

@mickyt71 commented on GitHub (Nov 26, 2024):

I have this all the time. Slow imports, constant errors in the logs. Running 10.10.3 docker instance on a Linux CentOS 7.6 host.

System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2024-11-26 11:46:34.600 +11:00] [ERR] [32] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/KidsMovies/Lilo & Stitch 2- Stitch has a Glitch (2005)/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2024-11-26 11:47:34.510 +11:00] [ERR] [26] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Fast & Furious 6 (2013) [DVD]/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2024-11-26 11:47:34.512 +11:00] [ERR] [35] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/KidsMovies/How to Train Your Dragon (2010)/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2024-11-26 11:49:24.908 +11:00] [ERR] [22] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Fast Five (2011) [720p]/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2024-11-26 11:56:40.725 +11:00] [ERR] [6] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Back to the Future Part 3 (1990) [1080p]/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2024-11-26 12:00:40.992 +11:00] [ERR] [6] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Back to the Future Part 3 (1990) [1080p]/poster.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)```
@mickyt71 commented on GitHub (Nov 26, 2024): I have this all the time. Slow imports, constant errors in the logs. Running 10.10.3 docker instance on a Linux CentOS 7.6 host. ```[2024-11-26 11:46:34.397 +11:00] [ERR] [35] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/KidsMovies/How to Train Your Dragon (2010)/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2024-11-26 11:46:34.600 +11:00] [ERR] [32] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/KidsMovies/Lilo & Stitch 2- Stitch has a Glitch (2005)/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2024-11-26 11:47:34.510 +11:00] [ERR] [26] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Fast & Furious 6 (2013) [DVD]/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2024-11-26 11:47:34.512 +11:00] [ERR] [35] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/KidsMovies/How to Train Your Dragon (2010)/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2024-11-26 11:49:24.908 +11:00] [ERR] [22] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Fast Five (2011) [720p]/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2024-11-26 11:56:40.725 +11:00] [ERR] [6] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Back to the Future Part 3 (1990) [1080p]/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2024-11-26 12:00:40.992 +11:00] [ERR] [6] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/data/Movies/Back to the Future Part 3 (1990) [1080p]/poster.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)```
Author
Owner

@h0tw1r3 commented on GitHub (Jan 17, 2025):

These files look fine to me and actually is passing the unit test for Blurhash. Maybe there is a small possibility that the compute blurhash was executed earlier than the files are actually fully written to the disk. But from the current code it really should not happen?

In my case, the files have not changed (permissions or otherwise) in a very long time.

200k+ of these messages (80mb) over the last two days:

[2025-01-17 09:48:30.898 +00:00] [ERR] Cannot compute blurhash for "/mnt/Movies/Bourne Legacy, The (2012)/fanart.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
@h0tw1r3 commented on GitHub (Jan 17, 2025): > These files look fine to me and actually is passing the unit test for Blurhash. Maybe there is a small possibility that the compute blurhash was executed earlier than the files are actually fully written to the disk. But from the current code it really should not happen? In my case, the files have not changed (permissions or otherwise) in a very long time. 200k+ of these messages (80mb) over the last two days: ``` [2025-01-17 09:48:30.898 +00:00] [ERR] Cannot compute blurhash for "/mnt/Movies/Bourne Legacy, The (2012)/fanart.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, String filename, Int32 maxWidth, Int32 maxHeight) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ```
Author
Owner

@robotreto commented on GitHub (Jan 22, 2025):

Here is what happens : sometimes SKCodec.Create(filename) returns null for a perfectly normal jpg :
Image

however, the Encode function does not check for null, therefore triggering the Exception.

So I suggest to fix the SKCodec.Create() and also check the result for null.

@robotreto commented on GitHub (Jan 22, 2025): Here is what happens : sometimes SKCodec.Create(filename) returns null for a perfectly normal jpg : ![Image](https://github.com/user-attachments/assets/ad4cee74-41b0-46ce-b5c2-6b5824129242) however, the Encode function does not check for null, therefore triggering the Exception. So I suggest to fix the SKCodec.Create() and also check the result for null.
Author
Owner

@gnattu commented on GitHub (Jan 22, 2025):

Here is what happens : sometimes SKCodec.Create(filename) returns null for a perfectly normal jpg :

We all know this but the reason is why?

If that file is perfectly normal this method should not return null, and if it returns null it does mean cannot compute blurhash. We are just ignoring this file. And no, we cannot fix SKCodec.Create() because this is SkiaSharp internal method.

By looking at the libskia source code it looks like the only reason this is null is that skia cannot open the file handle pointed and that path. If that is not permission and you are sure the files are perfectly fine, does that mean jellyfin already hit the maximum open file limit on your system so that it cannot open more files?

@gnattu commented on GitHub (Jan 22, 2025): > Here is what happens : sometimes SKCodec.Create(filename) returns null for a perfectly normal jpg : We all know this but the reason is why? If that file is perfectly normal this method should not return null, and if it returns null it does mean cannot compute blurhash. We are just ignoring this file. And no, we cannot fix SKCodec.Create() because this is SkiaSharp internal method. By looking at the libskia source code it looks like the only reason this is null is that skia cannot open the file handle pointed and that path. If that is not permission and you are sure the files are perfectly fine, does that mean jellyfin already hit the maximum open file limit on your system so that it cannot open more files?
Author
Owner

@robotreto commented on GitHub (Jan 22, 2025):

the only reason this is null is that skia cannot open the file handle pointed and that path <

Now I remember : when I was debuging with the above screenshot and the server was halted at that exception, I wanted to open the jpg in question with MS Photos, it was denied with the error that the jpg was open in another application. So I resumed the thread and after that, MS photos could open the jpg. That means that SkiaSharp opens the jpg not in a shared-readonly way. I also noticed that the Encode function is called by multiple threads at the same time. So what if 2 threads would like to encode the same jpg at the same time ? This would also trigger the null pointer, right ? On the other hand, the probability for this scenario is near zero.

@robotreto commented on GitHub (Jan 22, 2025): > the only reason this is null is that skia cannot open the file handle pointed and that path < Now I remember : when I was debuging with the above screenshot and the server was halted at that exception, I wanted to open the jpg in question with MS Photos, it was denied with the error that the jpg was open in another application. So I resumed the thread and after that, MS photos could open the jpg. That means that SkiaSharp opens the jpg not in a shared-readonly way. I also noticed that the Encode function is called by multiple threads at the same time. So what if 2 threads would like to encode the same jpg at the same time ? This would also trigger the null pointer, right ? On the other hand, the probability for this scenario is near zero.
Author
Owner

@gnattu commented on GitHub (Jan 22, 2025):

On the other hand, the probability for this scenario is near zero.

It is not near zero if it is what caused the issue here. The compute process could take a few seconds and race condition could occur.

That means that SkiaSharp opens the jpg not in a shared-readonly way.

This should be changed anyway. There is no reason to block other applications from reading the same file when the blurhash compute is a readonly operation.

@gnattu commented on GitHub (Jan 22, 2025): > On the other hand, the probability for this scenario is near zero. It is not near zero if it is what caused the issue here. The compute process could take a few seconds and race condition could occur. > That means that SkiaSharp opens the jpg not in a shared-readonly way. This should be changed anyway. There is no reason to block other applications from reading the same file when the blurhash compute is a readonly operation.
Author
Owner

@robotreto commented on GitHub (Jan 23, 2025):

I built my own blurhash DLL's with the code from your commit, and it fixed that race condition problem. Thanks for your quick action!

However I found a new System.ObjectDisposedException, when JPG's are invalid (in my case the JPG had a length of 0)
Image
It happened when I manually triggered a rescan with the option "Replace all Metadata" together with "Replace existing images".
Can it be that one thread is busy creating fresh Metadata JPG's and another thread tries to blurhash them at the same time, before they are finished ?
Because after another scan the JPG in question had no more 0 bytes, but 21kb and was perfectly valid....
Does a shared read-only fileopen work on a file which is being written to by another thread at the same time ?

@robotreto commented on GitHub (Jan 23, 2025): I built my own blurhash DLL's with the code from your commit, and it fixed that race condition problem. Thanks for your quick action! However I found a new System.ObjectDisposedException, when JPG's are invalid (in my case the JPG had a length of 0) ![Image](https://github.com/user-attachments/assets/2836cf2a-4409-4d83-abf9-9c7c0e5a70cd) It happened when I manually triggered a rescan with the option "Replace all Metadata" together with "Replace existing images". Can it be that one thread is busy creating fresh Metadata JPG's and another thread tries to blurhash them at the same time, before they are finished ? Because after another scan the JPG in question had no more 0 bytes, but 21kb and was perfectly valid.... Does a shared read-only fileopen work on a file which is being written to by another thread at the same time ?
Author
Owner

@gnattu commented on GitHub (Jan 23, 2025):

Can it be that one thread is busy creating fresh Metadata JPG's and another thread tries to blurhash them at the same time, before they are finished ?

This is exactly what I speculated before:

Maybe there is a small possibility that the compute blurhash was executed earlier than the files are actually fully written to the disk.

Does a shared read-only fileopen work on a file which is being written to by another thread at the same time ?

The writer thread of our own image saver does not allow sharing at all which means the file cannot be opened before the write has completed. Did you try the cache mode change I mentioned earlier to see if that makes things better?

https://github.com/jellyfin/jellyfin/issues/3687#issuecomment-2424569073

@gnattu commented on GitHub (Jan 23, 2025): > Can it be that one thread is busy creating fresh Metadata JPG's and another thread tries to blurhash them at the same time, before they are finished ? This is exactly what I speculated before: > Maybe there is a small possibility that the compute blurhash was executed earlier than the files are actually fully written to the disk. > Does a shared read-only fileopen work on a file which is being written to by another thread at the same time ? The writer thread of our own image saver does not allow sharing at all which means the file cannot be opened before the write has completed. Did you try the cache mode change I mentioned earlier to see if that makes things better? https://github.com/jellyfin/jellyfin/issues/3687#issuecomment-2424569073
Author
Owner

@robotreto commented on GitHub (Jan 23, 2025):

okay, I added this one line you mentioned on October 20 : in ImageSaver.cs
fileStreamOptions.Options = FileOptions.WriteThrough;

After that the above exception also vanished, meaning you were right all along!

Then I reverted to the old version of Encode, (without the shared-readonly fileopen), but then the NullReference exception came back.

So It seems we need both modifications. It is not just a concurrent metadata jpg creation and blurhash computation on the same file.

@robotreto commented on GitHub (Jan 23, 2025): okay, I added this one line you mentioned on October 20 : in ImageSaver.cs `fileStreamOptions.Options = FileOptions.WriteThrough;` After that the above exception also vanished, meaning you were right all along! Then I reverted to the old version of Encode, (without the shared-readonly fileopen), but then the NullReference exception came back. So It seems we need both modifications. It is not just a concurrent metadata jpg creation and blurhash computation on the same file.
Author
Owner

@ryannathans commented on GitHub (Mar 11, 2025):

Bug still exists, 10.10.6

Hundreds and hundreds of these in my logs

[2025-03-11 00:00:00.216 +11:00] [ERR] [29] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/var/db/jellyfin/metadata/library/ca/ca726b9b6c98f107564cec0766c24c36/backdrop2.jpg"
System.NullReferenceException: Object reference not set to an instance of an object.
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, SKCodec codec, Int32 maxWidth, Int32 maxHeight)
   at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, Stream stream, Int32 maxWidth, Int32 maxHeight)
   at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path)
   at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
@ryannathans commented on GitHub (Mar 11, 2025): Bug still exists, 10.10.6 Hundreds and hundreds of these in my logs ``` [2025-03-11 00:00:00.216 +11:00] [ERR] [29] Emby.Server.Implementations.Library.LibraryManager: Cannot compute blurhash for "/var/db/jellyfin/metadata/library/ca/ca726b9b6c98f107564cec0766c24c36/backdrop2.jpg" System.NullReferenceException: Object reference not set to an instance of an object. at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, SKCodec codec, Int32 maxWidth, Int32 maxHeight) at BlurHashSharp.SkiaSharp.BlurHashEncoder.Encode(Int32 xComponent, Int32 yComponent, Stream stream, Int32 maxWidth, Int32 maxHeight) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageBlurHash(Int32 xComp, Int32 yComp, String path) at Jellyfin.Drawing.ImageProcessor.GetImageBlurHash(String path, ImageDimensions imageDimensions) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) ```
Author
Owner

@konsumer commented on GitHub (Apr 1, 2025):

yep, me too. is it something specific to docker?

I am using this in my docker-compose, on linux host:

    jellyfin:
        image: jellyfin/jellyfin
        user: ${PUID}:${PGID}
        network_mode: host
        restart: unless-stopped
        volumes:
            - ${CONFIG}/jellyfin/db:/config
            - ${ROOT}/transcode:/cache
            - ${ROOT}:/media
        extra_hosts:
            - "host.docker.internal:host-gateway"
        deploy:
            resources:
                reservations:
                    devices:
                        - count: 1
                          driver: nvidia
                          capabilities: [gpu]
@konsumer commented on GitHub (Apr 1, 2025): yep, me too. is it something specific to docker? I am using this in my docker-compose, on linux host: ```yml jellyfin: image: jellyfin/jellyfin user: ${PUID}:${PGID} network_mode: host restart: unless-stopped volumes: - ${CONFIG}/jellyfin/db:/config - ${ROOT}/transcode:/cache - ${ROOT}:/media extra_hosts: - "host.docker.internal:host-gateway" deploy: resources: reservations: devices: - count: 1 driver: nvidia capabilities: [gpu] ```
Author
Owner

@ryannathans commented on GitHub (Apr 1, 2025):

I'm not even on linux, so no docker. I'm on FreeBSD

@ryannathans commented on GitHub (Apr 1, 2025): I'm not even on linux, so no docker. I'm on FreeBSD
Author
Owner

@prahal commented on GitHub (Apr 6, 2025):

@ryannathans @konsumer could you open a new bug report. The symptom is the same, but the cause is different.
Easier to split bug thread by root cause.

@prahal commented on GitHub (Apr 6, 2025): @ryannathans @konsumer could you open a new bug report. The symptom is the same, but the cause is different. Easier to split bug thread by root cause.
Author
Owner

@enter-a-random-username commented on GitHub (Apr 9, 2025):

@theguymadmax my issue was closed in favor of this, and it isn't fixed!

@enter-a-random-username commented on GitHub (Apr 9, 2025): @theguymadmax my issue was closed in favor of this, and it **isn't** fixed!
Author
Owner

@ryannathans commented on GitHub (Apr 10, 2025):

Please continue discussion here if not fixed: #13886

@ryannathans commented on GitHub (Apr 10, 2025): Please continue discussion here if not fixed: #13886
Author
Owner

@enter-a-random-username commented on GitHub (Apr 10, 2025):

Please continue discussion here if not fixed: #13886

No

@enter-a-random-username commented on GitHub (Apr 10, 2025): > Please continue discussion here if not fixed: [#13886](https://github.com/jellyfin/jellyfin/issues/13886) No
Author
Owner

@theolaa commented on GitHub (Nov 17, 2025):

I'm also experiencing this issue. The image in question has rather extreme dimensions which I suspect is the cause. It's 436x19594, so you know, I get it. But still.

@theolaa commented on GitHub (Nov 17, 2025): I'm also experiencing this issue. The image in question has rather extreme dimensions which I suspect is the cause. It's 436x19594, so you know, I get it. But still.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#1937
No description provided.