Jump to content

ImageMagickSharp.WandException: unable to load module png.la


BurntTech

Recommended Posts

BurntTech

I'm guessing this started after I enabled cover art plugin? I'm assuming this might be related to FreeBSD and less about the plugin?

2017-10-20 11:21:37.311 Error DtoService: Error in image enhancer: CoverArtVideoEnhancer
	*** Error Report ***
	Version: 3.2.32.0
	Command line: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe -ffmpeg /usr/pbi/emby-amd64/bin/ffmpeg -ffprobe /usr/pbi/emby-amd64/bin/ffprobe -programdata /var/db/emby-server
	Operating system: Unix 11.0.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 4.6.1 (Stable 4.6.1.5/ef43c15 Mon Jun 12 05:53:22 UTC 2017)
	Processor count: 2
	Program data path: /var/db/emby-server
	Application directory: /usr/pbi/emby-amd64/lib/emby-server
	ImageMagickSharp.WandException: unable to load module `/usr/pbi/emby-amd64/lib/ImageMagick-6.9.0//modules-Q8/coders/png.la': file not found @ error/module.c/OpenModule/1282
	  at ImageMagickSharp.WandCore`1[T].CheckErrorBool (System.Int32 status) [0x00009] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand.OpenImage (System.String path) [0x0000d] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand..ctor (System.String path) [0x0003e] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at CoverArt.ImageMagick.ImageSet.GetCachedResource (System.String name) [0x0000b] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetFrame (System.String name, CoverArt.ColorShift colorShift) [0x00035] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.CreateCase (System.String root, CoverArt.ColorShift colorShift, System.String logo) [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet+<>c__DisplayClass6_0.<GetCase>b__0 () [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetSavedWand (System.String path, System.Func`1[TResult] factory) [0x00060] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetCase (System.String baseCase) [0x00022] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet+<>c.<get_InternalMetroCase>b__15_0 () [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetFrameFile (System.String frameType) [0x00046] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.Enhancers.CoverArtBaseEnhancer.GetFrameSize (CoverArt.Entities.BaseImageSet imageSet, System.String frame) [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.Enhancers.CoverArtBaseEnhancer.GetEnhancedImageSize (MediaBrowser.Controller.Entities.IHasMetadata item, MediaBrowser.Model.Entities.ImageType imageType, System.Int32 imageIndex, MediaBrowser.Model.Drawing.ImageSize originalImageSize) [0x0007d] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at Emby.Server.Implementations.Dto.DtoService.GetPrimaryImageAspectRatio (MediaBrowser.Controller.Entities.IHasMetadata item) [0x000c8] in <084b0c6ff50247d4bcf368af1d7e0375>:0 
	ImageMagickSharp.WandException
	  at ImageMagickSharp.WandCore`1[T].CheckErrorBool (System.Int32 status) [0x00009] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand.OpenImage (System.String path) [0x0000d] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand..ctor (System.String path) [0x0003e] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at CoverArt.ImageMagick.ImageSet.GetCachedResource (System.String name) [0x0000b] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetFrame (System.String name, CoverArt.ColorShift colorShift) [0x00035] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.CreateCase (System.String root, CoverArt.ColorShift colorShift, System.String logo) [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet+<>c__DisplayClass6_0.<GetCase>b__0 () [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetSavedWand (System.String path, System.Func`1[TResult] factory) [0x00060] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetCase (System.String baseCase) [0x00022] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet+<>c.<get_InternalMetroCase>b__15_0 () [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.ImageMagick.ImageSet.GetFrameFile (System.String frameType) [0x00046] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.Enhancers.CoverArtBaseEnhancer.GetFrameSize (CoverArt.Entities.BaseImageSet imageSet, System.String frame) [0x00000] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at CoverArt.Enhancers.CoverArtBaseEnhancer.GetEnhancedImageSize (MediaBrowser.Controller.Entities.IHasMetadata item, MediaBrowser.Model.Entities.ImageType imageType, System.Int32 imageIndex, MediaBrowser.Model.Drawing.ImageSize originalImageSize) [0x0007d] in <d04ce2decef746d7a5462e05f791beb4>:0 
	  at Emby.Server.Implementations.Dto.DtoService.GetPrimaryImageAspectRatio (MediaBrowser.Controller.Entities.IHasMetadata item) [0x000c8] in <084b0c6ff50247d4bcf368af1d7e0375>:0 
  • Like 1
Link to comment
Share on other sites

woodsb02

The options enabled and disabled in the default ImageMagick library on FreeBSD can be seen here:

https://www.freshports.org/graphics/ImageMagick

 

We have instructions on the emby page for FreeBSD to recompile ImageMagick with the 16BIT_PIXEL option disabled. Are there any other things we need that we should also recommend?

Edited by woodsb02
  • Like 1
Link to comment
Share on other sites

woodsb02

Ok, and do the list of ImageMagick 6 options we have available by default on FreeBSD?

 

===> The following configuration options are available for ImageMagick-6.9.9.15,1:

16BIT_PIXEL=on: 16bit pixel support

BZIP2=on: bzip2 compression support

DJVU=off: DJVU format support (needs THREADS)

DOCS=on: Build and/or install documentation

FFTW=on: Discrete Fourier Transform support

FONTCONFIG=on: X11 font configuration support

FPX=off: FlashPix image format support

FREETYPE=on: TrueType font rendering support

GRAPHVIZ=off: Graphviz graph drawing support

GSLIB=off: libgs (Postscript SHLIB) support

HDRI=off: High dynamic range images support

JBIG=on: JBIG image format support

JPEG=on: JPEG image format support

JPEG2000=on: OpenJPEG 2000 support via openjpeg

LCMS2=on: Little CMS 2.x support

LQR=on: Liquid Rescale support

LZMA=on: LZMA compression support

MODULES=on: Modules support

OPENEXR=off: HDR image format support via OpenEXR

OPENMP=off: Parallel processing support via OpenMP

PANGO=off: Pango rendering library support

PDF=on: PDF document support

PERL=on: Perl scripting language support

PNG=on: PNG image format support

RAW=on: RAW format support

SVG=on: SVG vector image format support (via librsvg)

TESTS=off: Run bundled self-tests after build

THREADS=on: Threading support

TIFF=on: TIFF image format support

WEBP=on: WebP image format support

WMF=on: Windows Metafile image format support

X11=on: X11 (graphics) support

Link to comment
Share on other sites

BurntTech

Doing 'pkg install ImageMagick-6.9.9.15,1' worked great. I think the errors are gone but getting the error below about too many files open. Not sure if there is an issue with throttling? CPU is running warm for 60% for last 3 days but shouldn't be causing too many files open. I may look at restarting

2017-10-23 09:20:24.606 Error ImageProcessor: Error encoding image
	*** Error Report ***
	Version: 3.2.32.0
	Command line: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe -ffmpeg /usr/pbi/emby-amd64/bin/ffmpeg -ffprobe /usr/pbi/emby-amd64/bin/ffprobe -programdata /var/db/emby-server
	Operating system: Unix 11.0.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 4.6.1 (Stable 4.6.1.5/ef43c15 Mon Jun 12 05:53:22 UTC 2017)
	Processor count: 2
	Program data path: /var/db/emby-server
	Application directory: /usr/pbi/emby-amd64/lib/emby-server
	ImageMagickSharp.WandException: unable to open image `/var/db/emby-server/metadata/library/8f/8f3e04c1bc361191c16f63a5c8f9c190/poster.png': Too many open files @ error/blob.c/OpenBlob/2675
	  at ImageMagickSharp.WandCore`1[T].CheckErrorBool (System.Int32 status) [0x00009] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand.OpenImage (System.String path) [0x0000d] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand..ctor (System.String path) [0x0003e] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at Emby.Drawing.ImageMagick.ImageMagickEncoder.EncodeImage (System.String inputPath, System.DateTime dateModified, System.String outputPath, System.Boolean autoOrient, System.Nullable`1[T] orientation, System.Int32 quality, MediaBrowser.Controller.Drawing.ImageProcessingOptions options, MediaBrowser.Model.Drawing.ImageFormat selectedOutputFormat) [0x00028] in <2efafaccd8b5421e94415577a4c08b66>:0 
	  at Emby.Drawing.ImageProcessor+<ProcessImage>c__async1.MoveNext () [0x00648] in <96a39096258c4c9fbd5786007d1a758e>:0 
	ImageMagickSharp.WandException
	  at ImageMagickSharp.WandCore`1[T].CheckErrorBool (System.Int32 status) [0x00009] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand.OpenImage (System.String path) [0x0000d] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at ImageMagickSharp.MagickWand..ctor (System.String path) [0x0003e] in <953a0750dcf04671b3542271d1ee6221>:0 
	  at Emby.Drawing.ImageMagick.ImageMagickEncoder.EncodeImage (System.String inputPath, System.DateTime dateModified, System.String outputPath, System.Boolean autoOrient, System.Nullable`1[T] orientation, System.Int32 quality, MediaBrowser.Controller.Drawing.ImageProcessingOptions options, MediaBrowser.Model.Drawing.ImageFormat selectedOutputFormat) [0x00028] in <2efafaccd8b5421e94415577a4c08b66>:0 
	  at Emby.Drawing.ImageProcessor+<ProcessImage>c__async1.MoveNext () [0x00648] in <96a39096258c4c9fbd5786007d1a758e>:0 
Link to comment
Share on other sites

Try to restart and see if it persists. Please be advised the cover art plugin is not for everyone. It will cause the server to consume additional resources and for some systems it could be too much to handle.

Link to comment
Share on other sites

No because the core server requires image processing functions, just not to the degree of the cover art plugin. Are you having an issue?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...