Jump to content

NullReferenceException in CoverArt


alekdavis

Recommended Posts

alekdavis

Trying to process a bunch of MP3 files with Unicode (Russian) names and metatags and get a bunch of exceptions in the log that look like these (do not mind Старые ПеÑни о Главном in the name of the file, it's a web display log bug, it must look normal in the actual log file):

 

2018-01-05 18:32:36.508 Info CoverArt: image enhance of Старые ПеÑни о Главном - 1 took 0.011 seconds.
2018-01-05 18:32:36.509 Error ImageProcessor: Error enhancing image
*** Error Report ***
Version: 3.2.60.0
Command line: C:\Users\XYZ\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\XYZ\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\XYZ\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\XYZ\AppData\Roaming\Emby-Server\system\EmbyServer.dll C:\Users\XYZ\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows NT 6.2.9200.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 8
Program data path: C:\Users\XYZ\AppData\Roaming\Emby-Server\programdata
Application directory: C:\Users\XYZ\AppData\Roaming\Emby-Server\system
System.NullReferenceException: Object reference not set to an instance of an object.
   at CoverArt.Skia.CoverArtBaseEnhancer.EnhanceImage(SKBitmap originalImage, ProfileDefinition profile, String itemType, String frameType, IHasMetadata item, List`1 childImages)
   at CoverArt.Skia.CoverArtAlbumEnhancer.EnhanceImageAsyncInternal(IHasMetadata item, SKBitmap originalImage, ImageType imageType, Int32 imageIndex)
   at CoverArt.Skia.CoverArtBaseEnhancer.EnhanceImageAsync(IHasMetadata item, String inputPath, String outputPath, ImageType imageType, Int32 imageIndex)
   at Emby.Drawing.ImageProcessor.<ExecuteImageEnhancers>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Drawing.ImageProcessor.<GetEnhancedImageInternal>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Drawing.ImageProcessor.<GetEnhancedImage>d__44.MoveNext()
System.NullReferenceException
   at CoverArt.Skia.CoverArtBaseEnhancer.EnhanceImage(SKBitmap originalImage, ProfileDefinition profile, String itemType, String frameType, IHasMetadata item, List`1 childImages)
   at CoverArt.Skia.CoverArtAlbumEnhancer.EnhanceImageAsyncInternal(IHasMetadata item, SKBitmap originalImage, ImageType imageType, Int32 imageIndex)
   at CoverArt.Skia.CoverArtBaseEnhancer.EnhanceImageAsync(IHasMetadata item, String inputPath, String outputPath, ImageType imageType, Int32 imageIndex)
   at Emby.Drawing.ImageProcessor.<ExecuteImageEnhancers>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Drawing.ImageProcessor.<GetEnhancedImageInternal>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Emby.Drawing.ImageProcessor.<GetEnhancedImage>d__44.MoveNext()

 

Edited by alekdavis
Link to comment
Share on other sites

alekdavis
2018-01-05 18:32:36.508 Info CoverArt: image enhance of Старые Песни о Главном - 1 took 0.011 seconds.

2018-01-05 18:32:36.509 Error ImageProcessor: Error enhancing image

*** Error Report ***

Version: 3.2.60.0

Link to comment
Share on other sites

alekdavis

Btw, I do not have any files (or folders) with the name Старые Песни о Главном - 1. The series folder is called Старые Песни о Главном (1996), under which there is Season 01 folder, under which there are episodes with standard naming convention, such as Старые песни о главном - s01e01 - 1 серия (1996).mkv. I also checked the .nfo files and I do not see this exact name.

Edited by alekdavis
Link to comment
Share on other sites

Btw, I do not have any files (or folders) with the name Старые Песни о Главном - 1. The series folder is called Старые Песни о Главном (1996), under which there is Season 01 folder, under which there are episodes with standard naming convention, such as Старые песни о главном - s01e01 - 1 серия (1996).mkv. I also checked the .nfo files and I do not see this exact name.

 

The log message is showing the name of the item from metadata - not the file or folder name.

Link to comment
Share on other sites

alekdavis

Oh, okay. I'd suspect that file name would be more useful in the log file for troubleshooting (metadata can be totally wrong, but file name would always point to the correct file), but regardless, do you need any additional info? Anything else I can help with to troubleshoot this 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...