Jump to content

Emby crashing on Inotify


Recommended Posts

night199uk
Posted

My Emby dies semi-regularly - seems like something inotify related:

2017-06-04 19:50:59.2252 Error Main: UnhandledException

*** Error Report ***

Version: 3.2.17.0

Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh

Operating system: Unix 4.8.0.52

64-Bit OS: True

64-Bit Process: True

Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Tue May  2 22:26:35 UTC 2017)

Processor count: 8

Program data path: /var/lib/emby-server

Application directory: /usr/lib/emby-server/bin

System.NullReferenceException: Object reference not set to an instance of an object

  at System.IO.InotifyWatcher.ProcessEvents (System.Byte[] buffer, System.Int32 length) [0x000ac] in <5641e4edad4f4464ba58c620a7b8ea48>:0 

  at System.IO.InotifyWatcher.Monitor () [0x0003c] in <5641e4edad4f4464ba58c620a7b8ea48>:0 

  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

System.NullReferenceException

  at System.IO.InotifyWatcher.ProcessEvents (System.Byte[] buffer, System.Int32 length) [0x000ac] in <5641e4edad4f4464ba58c620a7b8ea48>:0 

  at System.IO.InotifyWatcher.Monitor () [0x0003c] in <5641e4edad4f4464ba58c620a7b8ea48>:0 

  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

  at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 

 
Posted

Hi, try turning off the realtime monitor for your Emby libraries and this should go away. Thanks.

night199uk
Posted (edited)

Thanks Luke for the rapid reply. Of course, I could disable RTM and inotify. But, Ideally I'd like to keep it enabled as I'd like to just be able to drop files into the filesystem and have them scanned. Any fix planned or anything I can do to help debug?

Edited by night199uk
Posted

It is a crash coming from the mono runtime. We're going to try a couple workarounds for the next release of the server. thanks.

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