Sonarr v3 crashing daily since April 28th update


#1

Sonarr version (exact version): 3.0.1.467
Mono version (if Sonarr is not running on Windows):
OS: win 7
Debug logs: https://pastebin.com/PdV65EPb
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here. Post in .txt not .doc, .rtf or some other formatted document)
Description of issue:
System just stops. Two entries in the event log are listed below.

This started after the update on April 28th. have one other crash that started 29th at !pm local time.

What did you change?

questions:

Event log:
Application: Sonarr.Console.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at System.Net.UnsafeNclNativeMethods+HttpApi.GetChunks(Byte[], IntPtr, Int32 ByRef, UInt32 ByRef, Byte[], Int32, Int32)
   at System.Net.HttpRequestStream.BeginRead(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
   at System.IO.Stream+<>c.<BeginEndReadAsync>b__43_0(System.IO.Stream, ReadWriteParameters, System.AsyncCallback, System.Object)
   at System.Threading.Tasks.TaskFactory`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncTrim[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.IO.Stream+ReadWriteParameters, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon, ReadWriteParameters, System.Func`5<System.__Canon,ReadWriteParameters,System.AsyncCallback,System.Object,System.IAsyncResult>, System.Func`3<System.__Canon,System.IAsyncResult,Int32>)
   at System.IO.Stream.BeginEndReadAsync(Byte[], Int32, Int32)
   at System.IO.Stream.ReadAsync(Byte[], Int32, Int32, System.Threading.CancellationToken)
   at Microsoft.Owin.Host.HttpListener.RequestProcessing.ExceptionFilterStream+<ReadAsync>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.Owin.Host.HttpListener.RequestProcessing.ExceptionFilterStream+<ReadAsync>d__3, Microsoft.Owin.Host.HttpListener, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ReadAsync>d__3 ByRef)
   at Microsoft.Owin.Host.HttpListener.RequestProcessing.ExceptionFilterStream.ReadAsync(Byte[], Int32, Int32, System.Threading.CancellationToken)
   at System.IO.Stream.ReadAsync(Byte[], Int32, Int32)
   at System.IO.StreamReader+<ReadBufferAsync>d__97.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[System.IO.StreamReader+<ReadBufferAsync>d__97, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](<ReadBufferAsync>d__97 ByRef)
   at System.IO.StreamReader.ReadBufferAsync()
   at System.IO.StreamReader+<ReadToEndAsyncInternal>d__62.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[System.IO.StreamReader+<ReadToEndAsyncInternal>d__62, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](<ReadToEndAsyncInternal>d__62 ByRef)
   at System.IO.StreamReader.ReadToEndAsyncInternal()
   at System.IO.StreamReader.ReadToEndAsync()
   at Microsoft.Owin.OwinRequest+<ReadFormAsync>d__0.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.Owin.OwinRequest+<ReadFormAsync>d__0, Microsoft.Owin, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ReadFormAsync>d__0 ByRef)
   at Microsoft.Owin.OwinRequest.ReadFormAsync()
   at Microsoft.AspNet.SignalR.Owin.ServerRequest+<ReadForm>d__20.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.AspNet.SignalR.Owin.ServerRequest+<ReadForm>d__20, Microsoft.AspNet.SignalR.Core, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ReadForm>d__20 ByRef)
   at Microsoft.AspNet.SignalR.Owin.ServerRequest.ReadForm()
   at Microsoft.AspNet.SignalR.Transports.LongPollingTransport.GetGroupsToken()
   at Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(Microsoft.AspNet.SignalR.Hosting.HostContext)
   at Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(System.Collections.Generic.IDictionary`2<System.String,System.Object>)
   at Microsoft.AspNet.SignalR.Owin.Middleware.PersistentConnectionMiddleware.Invoke(Microsoft.Owin.IOwinContext)
   at Microsoft.Owin.Infrastructure.OwinMiddlewareTransition.Invoke(System.Collections.Generic.IDictionary`2<System.String,System.Object>)
   at Microsoft.Owin.Mapping.MapMiddleware+<Invoke>d__0.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Owin.Mapping.MapMiddleware+<Invoke>d__0, Microsoft.Owin, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<Invoke>d__0 ByRef)
   at Microsoft.Owin.Mapping.MapMiddleware.Invoke(System.Collections.Generic.IDictionary`2<System.String,System.Object>)
   at Microsoft.Owin.Infrastructure.AppFuncTransition.Invoke(Microsoft.Owin.IOwinContext)
   at NzbDrone.Host.Owin.MiddleWare.AddApplicationVersionHeader+<Invoke>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[NzbDrone.Host.Owin.MiddleWare.AddApplicationVersionHeader+<Invoke>d__3, Sonarr.Host, Version=3.0.1.467, Culture=neutral, PublicKeyToken=null]](<Invoke>d__3 ByRef)
   at NzbDrone.Host.Owin.MiddleWare.AddApplicationVersionHeader.Invoke(Microsoft.Owin.IOwinContext)
   at Microsoft.Owin.Infrastructure.OwinMiddlewareTransition.Invoke(System.Collections.Generic.IDictionary`2<System.String,System.Object>)
   at Microsoft.Owin.Hosting.Utilities.Encapsulate.Invoke(System.Collections.Generic.IDictionary`2<System.String,System.Object>)
   at Microsoft.Owin.Host.HttpListener.OwinHttpListener+<ProcessRequestAsync>d__5.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Owin.Host.HttpListener.OwinHttpListener+<ProcessRequestAsync>d__5, Microsoft.Owin.Host.HttpListener, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ProcessRequestAsync>d__5 ByRef)
   at Microsoft.Owin.Host.HttpListener.OwinHttpListener.ProcessRequestAsync(System.Net.HttpListenerContext)
   at Microsoft.Owin.Host.HttpListener.OwinHttpListener+<ProcessRequestsAsync>d__0.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.FinishContinuations()
   at System.Threading.Tasks.Task.FinishStageThree()
   at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetResult(System.__Canon)
   at System.Threading.Tasks.TaskFactory`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].FromAsyncCoreLogic(System.IAsyncResult, System.Func`2<System.IAsyncResult,System.__Canon>, System.Action`1<System.IAsyncResult>, System.Threading.Tasks.Task`1<System.__Canon>, Boolean)
   at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_0[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<FromAsyncImpl>b__0(System.IAsyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
   at System.Net.ListenerAsyncResult.IOCompleted(System.Net.ListenerAsyncResult, UInt32, UInt32)
   at System.Net.ListenerAsyncResult.WaitCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
event #2
Faulting application name: Sonarr.Console.exe, version: 3.0.1.467, time stamp: 0x5cc6630d
Faulting module name: System.ni.dll, version: 4.7.3353.0, time stamp: 0x5c1ab603
Exception code: 0xc0000005
Fault offset: 0x0067f82c
Faulting process id: 0xa34
Faulting application start time: 0x01d50072dab92098
Faulting application path: C:\ProgramData\Sonarr\bin\Sonarr.Console.exe
Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_32\System\61f348ceef57c0d703d2bd52f7a33f92\System.ni.dll
Report Id: 15c5e97c-6c74-11e9-a5c6-00155d01ab02

#2

hopefully new build will fix…
just thought you might want to know


#3

We didn’t change anything around the first error and the second doesn’t really tell us much.

If you still see issues trace logs leading up to the failure may be useful.


#4

Thanks Markus101; I edited the service’s recovery so it will alert me via MSG.exe and restart the service so I don’t have the system stop but I can also grab log files and upload them if this happens again.


closed #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.