Jump to content

Emby crashes when processing unavailable media


m33e
Go to solution Solved by solabc16,

Recommended Posts

Version: Emby 3.2.70.0-1

 

I have libraries with paths to media that is unavailable most of the time (a pc that is configured to sleep during daytime and wake up when I get home). In the case of Emby trying to run a scan while that machine is sleeping, or trying to save a new thumbnail to an offline folder triggered by the web UI b/c of missing images (see log examples), Emby crashes:

2018-02-14 06:47:58.092 Error ImageProcessor: Error encoding image
	*** Error Report ***
	Version: 3.2.70.0
	Command line: /var/packages/EmbyServer/target/server/MediaBrowser.Server.Mono.exe -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -restartpath /var/packages/EmbyServer/scripts/restart
	Operating system: Unix 3.10.35.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.2.0.224 (tarball Thu Sep 21 19:12:25 CST 2017)
	Processor count: 2
	Program data path: /var/packages/EmbyServer/target/var
	Application directory: /volume1/@appstore/EmbyServer/releases/v3.2.70.0
	System.IO.FileNotFoundException: File not found
	File name: '/volume2/media/Movies/Title XYZ/landscape.jpg'
at Emby.Drawing.Skia.SkiaEncoder.Decode (System.String path, System.Boolean forceCleanBitmap, MediaBrowser.Model.IO.IFileSystem fileSystem, SkiaSharp.SKCodecOrigin& origin) [0x00009] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.Skia.SkiaEncoder.GetBitmap (System.String path, System.Boolean cropWhitespace, System.Boolean forceAnalyzeBitmap, SkiaSharp.SKCodecOrigin& origin) [0x00027] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.Skia.SkiaEncoder.GetBitmap (System.String path, System.Boolean cropWhitespace, System.Boolean autoOrient) [0x0002f] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.Skia.SkiaEncoder.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) [0x000b0] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.ImageProcessor+<ProcessImage>d__29.MoveNext () [0x005c4] in <c91c8fbd920743cb9658057be7c82b71>:0 
System.IO.FileNotFoundException
  at Emby.Drawing.Skia.SkiaEncoder.Decode (System.String path, System.Boolean forceCleanBitmap, MediaBrowser.Model.IO.IFileSystem fileSystem, SkiaSharp.SKCodecOrigin& origin) [0x00009] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.Skia.SkiaEncoder.GetBitmap (System.String path, System.Boolean cropWhitespace, System.Boolean forceAnalyzeBitmap, SkiaSharp.SKCodecOrigin& origin) [0x00027] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.Skia.SkiaEncoder.GetBitmap (System.String path, System.Boolean cropWhitespace, System.Boolean autoOrient) [0x0002f] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.Skia.SkiaEncoder.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) [0x000b0] in <2f81b8836746406598891e6e3d59bdc5>:0 
  at Emby.Drawing.ImageProcessor+<ProcessImage>d__29.MoveNext () [0x005c4] in <c91c8fbd920743cb9658057be7c82b71>:0 
2018-02-14 06:48:46.329 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.2.70.0
	Command line: /var/packages/EmbyServer/target/server/MediaBrowser.Server.Mono.exe -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -restartpath /var/packages/EmbyServer/scripts/restart
	Operating system: Unix 3.10.35.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.2.0.224 (tarball Thu Sep 21 19:12:25 CST 2017)
	Processor count: 2
	Program data path: /var/packages/EmbyServer/target/var
	Application directory: /volume1/@appstore/EmbyServer/releases/v3.2.70.0
	System.IO.DirectoryNotFoundException: Could not find a part of the path "/volume2/media/Movies/Title XYZ/landscape.jpg".
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
	  at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream (System.String path, MediaBrowser.Model.IO.FileOpenMode mode, MediaBrowser.Model.IO.FileAccessMode access, MediaBrowser.Model.IO.FileShareMode share, MediaBrowser.Model.IO.FileOpenOptions fileOpenOptions) [0x00045] in <27d78f338d664069b682d55d7fd43e8b>:0 
	  at SocketHttpListener.Net.HttpResponseStream+<TransmitFileManaged>d__51.MoveNext () [0x00048] in <df535f4d858e4171a9f1b8a7c80b7047>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.HttpServer.FileWriter+<WriteToAsync>d__58.MoveNext () [0x00149] in <27d78f338d664069b682d55d7fd43e8b>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.Services.ResponseHelper+<WriteToResponse>d__0.MoveNext () [0x00385] in <27d78f338d664069b682d55d7fd43e8b>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__15.MoveNext () [0x00203] in <27d78f338d664069b682d55d7fd43e8b>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__73.MoveNext () [0x0070b] in <27d78f338d664069b682d55d7fd43e8b>:0 
	System.IO.DirectoryNotFoundException
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
	  at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream (System.String path, MediaBrowser.Model.IO.FileOpenMode mode, MediaBrowser.Model.IO.FileAccessMode access, MediaBrowser.Model.IO.FileShareMode share, MediaBrowser.Model.IO.FileOpenOptions fileOpenOptions) [0x00045] in <27d78f338d664069b682d55d7fd43e8b>:0 
	  at SocketHttpListener.Net.HttpResponseStream+<TransmitFileManaged>d__51.MoveNext () [0x00048] in <df535f4d858e4171a9f1b8a7c80b7047>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.HttpServer.FileWriter+<WriteToAsync>d__58.MoveNext () [0x00149] in <27d78f338d664069b682d55d7fd43e8b>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.Services.ResponseHelper+<WriteToResponse>d__0.MoveNext () [0x00385] in <27d78f338d664069b682d55d7fd43e8b>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__15.MoveNext () [0x00203] in <27d78f338d664069b682d55d7fd43e8b>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <d31cad56a57f4677b3b2262d472abcad>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__73.MoveNext () [0x0070b] in <27d78f338d664069b682d55d7fd43e8b>:0 

Now I totally get what's happening or what cannot happen because of the path being unavailable at the time of processing the media, but isn't there any fallback to prevent the server from shutting down?
The path Emby is trying to access is a mounted NFS share on the synology NAS if that makes any difference.

 

Also, this kind of leads me to another, more general question: How can I prevent scanning/processing offline library paths at all, without having to disable library scanning? When a scan occurs during the offline hours of one of my media machines, Emby then removes all the media it can't access at the time, which is what I'd like to prevent.

Edited by m33e
Link to comment
Share on other sites

Everbrave

Hi this shouldn't cause the server to shutdown. Please attach the complete emby server log. Thanks.

I can also confirm this issue with 3.2.70-1.

Link to comment
Share on other sites

still getting errors with 3.3.0.0, although now it is ​Error App: Error in FFProbeProvider.HasChanged.

 

should I upload another log, or could this be related to the plugin compatibility issue? currently using the kodi sync plugin, although I stopped the addon, tried again & the error mentioned above kept crashing emby.

Link to comment
Share on other sites

  • 2 weeks later...
  • Solution
solabc16

Hello @@m33e

 

With the latest releases, any image processing related issues should have been addressed, see https://emby.media/community/index.php?/topic/54381-emby-app-on-synology-keeps-stopping/?p=553425.

 

Regarding the FFProbe related application error, I've picked that up on the other thread here : https://emby.media/community/index.php?/topic/56773-crashes-with-3310-1-error-in-ffprobeproviderhaschanged/?p=553385

 

Best

- James

  • Like 1
Link to comment
Share on other sites

Thanks! I indeed do Not experience the Image processing errors any more, so this topic can be closed I guess. :)

Link to comment
Share on other sites

  • 2 weeks later...

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