You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing the logs I noticed two distinct errors stemming from Emby.Server.Implementations.Library.LibraryManager#UpdateImagesAsync(), repeated several times (presumably every time the task runs). Both errors happen when attempting to process an .svg file. I've attached the full logs below.
The first error should be reproducible with this image:
2023-04-08 18:36:08.280 +00:00] [ERR] [18] Emby.Server.Implementations.Library.LibraryManager: Cannot get image dimensions for "/config/data/metadata/library/b1/b1468ca5910e2b4f8633becdaccea026/logo.svg"
System.FormatException: Input string was not in a correct format.
The second error should be reproducible with this image.
[2023-04-08 08:58:16.199 +00:00] [ERR] [3] Emby.Server.Implementations.Library.LibraryManager: Cannot get image dimensions for "/config/data/metadata/library/fb/fb52416928944f9abecfeeaec282ab83/logo.svg"
System.Xml.XmlException: Reference to undeclared entity 'ns_extend'. Line 13, position 16.
The issue with the second image is quite straightforward; I am not sure what the error is with the first image.
I only recently started using Jellyfin and I am not familiar with the code base, but the cause seems to be Jellyfin.Drawing.Skia.SkiaEncoder#GetImageSize and is most likely an issue with the upstream SkiaSharp.Svg library (e.g. similar issue described in luberda-molinet/FFImageLoading#1183). Regardless, I am opening the issue here to track it as these are images downloaded by Jellyfin.
Edit: Skia.Svg is apparently deprecated so this is unlikely to be resolved. The solution might be to migrate to Svg.Skia which would obviously take some effort (unless Jellyfin is already using it, but I don't think so.)
[2023-04-08 18:35:57.920 +00:00] [INF] [18] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "RefreshMediaLibraryTask"
[2023-04-08 18:35:57.922 +00:00] [INF] [18] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Scan Media Library"
[2023-04-08 18:35:57.922 +00:00] [INF] [18] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2023-04-08 18:36:05.307 +00:00] [ERR] [18] Emby.Server.Implementations.Library.LibraryManager: Cannot get image dimensions for"/config/data/metadata/library/fb/fb52416928944f9abecfeeaec282ab83/logo.svg"
System.Xml.XmlException: Reference to undeclared entity 'ns_extend'. Line 13, position 16.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.HandleGeneralEntityReference(String name, Boolean isInAttributeValue, Boolean pushFakeEntityIfNullResolver, Int32 entityStartLinePos)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at SkiaSharp.Extended.Svg.SKSvg.Load(Stream stream)
at SkiaSharp.Extended.Svg.SKSvg.Load(String filename)
at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path)
at Emby.Drawing.ImageProcessor.GetImageDimensions(BaseItem item, ItemImageInfo info)
at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2023-04-08 18:36:08.280 +00:00] [ERR] [18] Emby.Server.Implementations.Library.LibraryManager: Cannot get image dimensions for"/config/data/metadata/library/b1/b1468ca5910e2b4f8633becdaccea026/logo.svg"
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at SkiaSharp.Extended.Svg.ColorHelper.TryParse(String str, SKColor& color)
at SkiaSharp.Extended.Svg.SKSvg.ReadPaints(Dictionary`2 style, SKPaint& strokePaint, SKPaint& fillPaint, Boolean isGroup) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.LoadElements(IEnumerable`1 elements, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.Load(XDocument xdoc) at SkiaSharp.Extended.Svg.SKSvg.Load(Stream stream) at SkiaSharp.Extended.Svg.SKSvg.Load(String filename) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) at Emby.Drawing.ImageProcessor.GetImageDimensions(BaseItem item, ItemImageInfo info) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)[2023-04-08 18:36:08.759 +00:00] [ERR] [18] Emby.Server.Implementations.Library.LibraryManager: Cannot get image dimensions for"/config/data/metadata/library/76/769996284b493e6c813c7e44a1a5a8d7/logo.svg"System.FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) at SkiaSharp.Extended.Svg.ColorHelper.TryParse(String str, SKColor& color) at SkiaSharp.Extended.Svg.SKSvg.ReadPaints(Dictionary`2 style, SKPaint& strokePaint, SKPaint& fillPaint, Boolean isGroup) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.LoadElements(IEnumerable`1 elements, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.Load(XDocument xdoc) at SkiaSharp.Extended.Svg.SKSvg.Load(Stream stream) at SkiaSharp.Extended.Svg.SKSvg.Load(String filename) at Jellyfin.Drawing.Skia.SkiaEncoder.GetImageSize(String path) at Emby.Drawing.ImageProcessor.GetImageDimensions(BaseItem item, ItemImageInfo info) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Please describe your bug
While reviewing the logs I noticed two distinct errors stemming from
Emby.Server.Implementations.Library.LibraryManager#UpdateImagesAsync()
, repeated several times (presumably every time the task runs). Both errors happen when attempting to process an.svg
file. I've attached the full logs below.The first error should be reproducible with this image:
The second error should be reproducible with this image.
The issue with the second image is quite straightforward; I am not sure what the error is with the first image.
I only recently started using Jellyfin and I am not familiar with the code base, but the cause seems to be
Jellyfin.Drawing.Skia.SkiaEncoder#GetImageSize
and is most likely an issue with the upstream SkiaSharp.Svg library (e.g. similar issue described in luberda-molinet/FFImageLoading#1183). Regardless, I am opening the issue here to track it as these are images downloaded by Jellyfin.Edit: Skia.Svg is apparently deprecated so this is unlikely to be resolved. The solution might be to migrate to
Svg.Skia
which would obviously take some effort (unless Jellyfin is already using it, but I don't think so.)Jellyfin Version
10.8.0
if other:
10.8.9
Environment
Jellyfin logs
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: