Cannot compute blurhash System.NullReferenceException: Object reference not set to an instance of an object #6895

Closed
opened 2025-12-22 04:57:00 +01:00 by backuprepo · 3 comments
Owner

Originally created by @ryannathans on GitHub (Apr 9, 2025).

Description of the bug

Continuation of discussion on #3687

There appears to be multiple causes of the same exception, only one was fixed

Reproduction steps

Perform a library scan
?

What is the current bug behavior?

[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)

What is the expected correct behavior?

No exceptions in log

Jellyfin Server version

10.10.0+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

Relaese

Environment

- OS: FreeBSD 14
- Linux Kernel: N/a
- Virtualization: FreeBSD Jail
- Clients: N/a
- Browser: N/a
- FFmpeg Version: 6.1.2
- Playback Method: N/a
- Hardware Acceleration: No
- GPU Model: N/a
- Plugins: Stock
- Reverse Proxy: N/a
- Base URL: none
- Networking: bridge
- Storage: ZFS, local

Same exception has also been reported on linux using docker

Jellyfin 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)

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @ryannathans on GitHub (Apr 9, 2025). ### Description of the bug Continuation of discussion on #3687 There appears to be multiple causes of the same exception, only one was fixed ### Reproduction steps Perform a library scan ? ### What is the current _bug_ behavior? ``` [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) ``` ### What is the expected _correct_ behavior? No exceptions in log ### Jellyfin Server version 10.10.0+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version Relaese ### Environment ```markdown - OS: FreeBSD 14 - Linux Kernel: N/a - Virtualization: FreeBSD Jail - Clients: N/a - Browser: N/a - FFmpeg Version: 6.1.2 - Playback Method: N/a - Hardware Acceleration: No - GPU Model: N/a - Plugins: Stock - Reverse Proxy: N/a - Base URL: none - Networking: bridge - Storage: ZFS, local Same exception has also been reported on linux using docker ``` ### Jellyfin logs ```shell [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) ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
backuprepo 2025-12-22 04:57:00 +01:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

FreeBSD is not supported.

@felix920506 commented on GitHub (Apr 10, 2025): FreeBSD is not supported.
Author
Owner

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

As mentioned in the previous thread, the same issue is occuring on linux

@ryannathans commented on GitHub (Apr 10, 2025): As mentioned in the previous thread, the same issue is occuring on linux
Author
Owner

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

I reopened an older thread that had previously documented this issue. Please continue any discussions about the issue in that thread.

https://github.com/jellyfin/jellyfin/issues/12106

@theguymadmax commented on GitHub (Apr 10, 2025): I reopened an older thread that had previously documented this issue. Please continue any discussions about the issue in that thread. https://github.com/jellyfin/jellyfin/issues/12106
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#6895
No description provided.