Jump to content

Server(3.2.28.0)/CoverArt (4.0.44.0): Null reference exception when trying to use treatment override?


Revenent

Recommended Posts

Revenent

Trying to use the new tag-based overrides, and I'm getting a lot of places where applying an override removes all treatment from the image.

 

Looking at the server logs, I'm seeing the following:

2017-08-22 08:25:49.852 Info HttpResultFactory: Transmit file D:\Videos\Movies\Laputa꞉ Castle in the Sky\poster.jpg2017-08-22 08:25:49.852 Info HttpServer: HTTP Response 200 to 10.1.1.1. Time: 31ms. http://server:8096/emby/Items/2c50b5b011564dc5bd29da43a8881182/Images/Primary?maxHeight=633&maxWidth=422&tag=591dd254ed0e15a8c512edc2085c672b&quality=90 2017-08-22 08:25:49.852 Error ImageProcessor: Error enhancing image2017-08-22 08:25:49.852 Error ImageProcessor: Error encoding image	*** Error Report ***	Version: 3.2.28.0	Command line: C:\Users\mb\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service	Operating system: Microsoft Windows NT 6.2.9200.0	64-Bit OS: True	64-Bit Process: True	Processor count: 8	Program data path: C:\Users\mb\AppData\Roaming\MediaBrowser-Server	Application directory: C:\Users\mb\AppData\Roaming\MediaBrowser-Server\system	System.NullReferenceException: Object reference not set to an instance of an object.	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.GetBitmap(String path, Boolean cropWhitespace, Boolean autoOrient, Nullable`1 orientation)	   at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, DateTime dateModified, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)	   at Emby.Drawing.ImageProcessor.<ProcessImage>d__29.MoveNext()	System.NullReferenceException	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.GetBitmap(String path, Boolean cropWhitespace, Boolean autoOrient, Nullable`1 orientation)	   at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, DateTime dateModified, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)	   at Emby.Drawing.ImageProcessor.<ProcessImage>d__29.MoveNext()

It doesn't matter what override I use (I've tried ca-dvd, ca-blu-ray), it just ends up with no treatment.

 

I've attached the poster image that it is using.  It was downloaded from the image service.

 

Thanks!

post-6318-0-02619800-1503415989_thumb.jpg

Link to comment
Share on other sites

Hmmm.... What kind of characters are in this filename?

2017-08-22 08:25:49.852 Info HttpResultFactory: Transmit file D:\Videos\Movies\Laputa꞉ Castle in the Sky\poster.jpg

Only happening on files with such characters?

Link to comment
Share on other sites

Revenent

Hmmm.... What kind of characters are in this filename?

2017-08-22 08:25:49.852 Info HttpResultFactory: Transmit file D:\Videos\Movies\Laputa꞉ Castle in the Sky\poster.jpg

Only happening on files with such characters?

 

The character is Unicode character A789 "꞉"

 

No, it happens to many others:

2017-08-22 08:25:49.837 Info HttpResultFactory: Transmit file D:\Videos\Movies\Howl's Moving Castle\poster.jpg2017-08-22 08:25:49.837 Info HttpServer: HTTP Response 200 to 10.1.1.1. Time: 16ms. http://server:8096/emby/Items/5a5094948770a9d536981697331a5f53/Images/Primary?maxHeight=633&maxWidth=422&tag=b2eed21e57f24c0da8de02aa9bcd6d25&quality=90 2017-08-22 08:25:49.837 Info HttpServer: HTTP GET http://server:8096/emby/Items/2652a1a9c3d4e69049b2a66946034266/Images/Primary?maxHeight=633&maxWidth=422&tag=5fb79ceea52bd06fea77b6c69246fa61&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.02017-08-22 08:25:49.837 Info HttpResultFactory: Transmit file D:\MediaBrowser\cache\cache\images\resized-images\8\8e2e40f3-b2d1-4ede-a062-c12caeee7971.png2017-08-22 08:25:49.852 Info HttpServer: HTTP Response 200 to 10.1.1.1. Time: 16ms. http://server:8096/emby/Items/2652a1a9c3d4e69049b2a66946034266/Images/Primary?maxHeight=633&maxWidth=422&tag=5fb79ceea52bd06fea77b6c69246fa61&quality=90 2017-08-22 08:25:49.852 Info HttpServer: HTTP GET http://server:8096/emby/Items/9a296e90fca40ac0f998f622df7a9f9f/Images/Primary?maxHeight=633&maxWidth=422&tag=9db8cec3f7441cfce03fc343d3356422&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.02017-08-22 08:25:49.852 Error ImageProcessor: Error enhancing image2017-08-22 08:25:49.852 Error ImageProcessor: Error encoding image	*** Error Report ***	Version: 3.2.28.0	Command line: C:\Users\mb\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service	Operating system: Microsoft Windows NT 6.2.9200.0	64-Bit OS: True	64-Bit Process: True	Processor count: 8	Program data path: C:\Users\mb\AppData\Roaming\MediaBrowser-Server	Application directory: C:\Users\mb\AppData\Roaming\MediaBrowser-Server\system	System.NullReferenceException: Object reference not set to an instance of an object.	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.GetBitmap(String path, Boolean cropWhitespace, Boolean autoOrient, Nullable`1 orientation)	   at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, DateTime dateModified, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)	   at Emby.Drawing.ImageProcessor.<ProcessImage>d__29.MoveNext()	System.NullReferenceException	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.Decode(String path, Boolean forceCleanBitmap, SKCodecOrigin& origin)	   at Emby.Drawing.Skia.SkiaEncoder.GetBitmap(String path, Boolean cropWhitespace, Boolean autoOrient, Nullable`1 orientation)	   at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, DateTime dateModified, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)	   at Emby.Drawing.ImageProcessor.<ProcessImage>d__29.MoveNext()
Link to comment
Share on other sites

Revenent

And what if you remove the tag that you added?

 

For that specific one, nothing - it still doesn't have any treatment.

 

For others, the default treatment (e.g. H-264) would come back.  The "Howl's Moving Castle" one, in the second log post, reverted back to H-264 once I removed and forced-refresh the image.

Link to comment
Share on other sites

Can you zip up a test image and attach it here? I just tried using ca-dvd and it seems to work fine. thanks.

Link to comment
Share on other sites

Revenent

Can you zip up a test image and attach it here? I just tried using ca-dvd and it seems to work fine. thanks.

 

Attaching.  I'm using ca-blu-ray, but I've tried ca-dvd and it doesn't work either.

poster.zip

Link to comment
Share on other sites

Seems ok here.

 

599cf93676dcd_Untitled.png

 

Right now I am not sure what's going on so what I would suggest is waiting for the next release of Emby Server. We already have a cover art .45 update but that only applies to the beta server. Let's re-evaluate then. Thanks.

Link to comment
Share on other sites

Revenent

Seems ok here.

 

599cf93676dcd_Untitled.png

 

Right now I am not sure what's going on so what I would suggest is waiting for the next release of Emby Server. We already have a cover art .45 update but that only applies to the beta server. Let's re-evaluate then. Thanks.

 

Will do.  One last thing - would enabling debug output give more information, or would it end up being the same?

Link to comment
Share on other sites

In this case no, it originally looked like a failure on the part of the image processing library to decode your image. When that happens there's usually not much we can do which is why I was surprised to see it work on my machine.

Link to comment
Share on other sites

I'm still suspecting the folder names as related to the issue.  The first one has a colon in it which is obviously illegal in Windows file names.  The second one had a single quote in it.  Something in the tag processing may not be able to handle these characters properly...  but, I am guessing at this point.

Link to comment
Share on other sites

Revenent

I'm still suspecting the folder names as related to the issue.  The first one has a colon in it which is obviously illegal in Windows file names.  The second one had a single quote in it.  Something in the tag processing may not be able to handle these characters properly...  but, I am guessing at this point.

 

The colon in the name is a "fake" colon, or specifically, it is Unicode character A789 (Modifier Letter Colon).  The normal colon, the one that Windows won't allow, is Unicode character 003A.

Link to comment
Share on other sites

  • 1 month later...

Just as a follow-up...

 

I renamed all files that had the A789 colon to something in the ANSI/ASCII range and CoverArt is modifying the images properly.

 

So it does seem like either Emby or CoverArt isn't happy with special Unicode characters.

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...