Jump to content

Crashes


Go to solution Solved by Luke,

Recommended Posts

Posted

I've used Emby server on windows for a while and has been pretty stable.  Recently I set up a VM server and thought to use Ubuntu Server as the OS for emby server.  I have it setup but it keeps becoming unresponsive every 10-15 minutes.  The error messages that I get in the logs every time it becomes unresponsive is :

 

Value cannot be null.
Parameter name: source
System.ArgumentNullException
  at System.Linq.Enumerable.ToList[TSource] (IEnumerable`1 source) <0x40af9690 + 0x0009f> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Devices.DeviceRepository.GetDevices () <0x41dad310 + 0x00103> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Devices.DeviceRepository.GetDevice (System.String id) <0x41dad160 + 0x00093> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Devices.DeviceManager.GetDevice (System.String id) <0x41dbca00 + 0x0002a> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Session.SessionManager.GetSessionByAuthenticationToken (MediaBrowser.Controller.Security.AuthenticationInfo info, System.String deviceId, System.String remoteEndpoint, System.String appVersion) <0x41dbc790 + 0x000e1> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Session.SessionManager.GetSessionByAuthenticationToken (System.String token, System.String deviceId, System.String remoteEndpoint) <0x41dbc670 + 0x000eb> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Session.SessionWebSocketListener.GetSession (System.Collections.Specialized.NameValueCollection queryString, System.String remoteEndpoint) <0x41dbc580 + 0x000a9> in <filename unknown>:0
  at MediaBrowser.Server.Implementations.Session.SessionWebSocketListener+<_serverManager_WebSocketConnected>c__async0.MoveNext () <0x41dbbfc0 + 0x000d7> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f16691cc6d0 + 0x00029> in <filename unknown>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__1 (System.Object state) <0x7f16691c9ee0 + 0x00041> in <filename unknown>:0
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) <0x7f1669280720 + 0x00048> in <filename unknown>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7f166927a850 + 0x0016e> in <filename unknown>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Boolean preserveSyncCtx) <0x7f166927a820 + 0x00020> in <filename unknown>:0
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x7f16692806b0 + 0x00053> in <filename unknown>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () <0x7f166927ecc0 + 0x001d6> in <filename unknown>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () <0x7f1669280530 + 0x00008> in <filename unknown>:0

 

Any ideas?
 

thefirstofthe300
Posted (edited)

Please attach the full server log from when the system becomes unresponsive.

Edited by thefirstofthe300
  • Solution
Posted

as a test, is it possible for you to allocate an additional cpu to the VM? I wonder if there is a threading bug in the mono runtime when run in a single core environement.

  • Like 1
Posted

I can do that.  I will post back with any changes.  Thanks.

Posted

Good call...  I increased the CPU from 1 to 4 (because I plan on running a few other things on this at the same time anyway) and it has been up for 20 hours now.  Thanks!

Posted

Great, thanks. I'm adjusting that anyway so that it will be fine on single core.

Posted

Great, thanks. I'm adjusting that anyway so that it will be fine on single core.

Does this mean Emby will be also running smoother on a Rpi? I still have frequently crashes (out of memory) of the Emby server service on my pi even with an additional swap file on USB stick and memory tweaking. Especially library scans eating memory...

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