Sonar Crashing Windows 10

Sonarr version (exact version): 2.0.0.5228
OS: Windows 10
Debug logs:
Description of issue: Sonar keeps crashing - this is my first time setting it up. I apologize in advance in the novice questions. I have tried to search for a solution but no luck. Every time I launch Sonarr the app crashes after a few seconds. I checked event viewer and found this crash log -

Faulting application name: NzbDrone.exe, version: 2.0.0.5228, time stamp: 0x5b2e4a5d
Faulting module name: MediaInfo.dll, version: 17.10.0.0, time stamp: 0x59fb476c
Exception code: 0xc0000005
Fault offset: 0x00109e3a
Faulting process id: 0x2620
Faulting application start time: 0x01d45471776d5c6d
Faulting application path: C:\ProgramData\NzbDrone\bin\NzbDrone.exe
Faulting module path: C:\ProgramData\NzbDrone\bin\MediaInfo.dll
Report Id: 4ee063b0-f199-4a7f-8c5b-984f9d1e4fb4
Faulting package full name: 
Faulting package-relative application ID:
Application: NzbDrone.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo.MediaInfo_Open_Buffer_Continue(IntPtr, Byte[], IntPtr)
   at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo.Open(System.IO.Stream)
   at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo(System.String)
   at NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.AugmentingService.Augment(NzbDrone.Core.Parser.Model.LocalEpisode, Boolean)
   at NzbDrone.Core.Extras.Others.ExistingOtherExtraImporter.ProcessFiles(NzbDrone.Core.Tv.Series, System.Collections.Generic.List`1<System.String>, System.Collections.Generic.List`1<System.String>)
   at NzbDrone.Core.Extras.ExistingExtraFileService.Handle(NzbDrone.Core.MediaFiles.Events.SeriesScannedEvent)
   at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=]](System.__Canon)
   at NzbDrone.Core.MediaFiles.DiskScanService.CompletedScanning(NzbDrone.Core.Tv.Series)
   at NzbDrone.Core.MediaFiles.DiskScanService.Scan(NzbDrone.Core.Tv.Series)
   at NzbDrone.Core.Tv.RefreshSeriesService.RescanSeries(NzbDrone.Core.Tv.Series)
   at NzbDrone.Core.Tv.RefreshSeriesService.Execute(NzbDrone.Core.Tv.Commands.RefreshSeriesCommand)
   at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=]](System.__Canon, NzbDrone.Core.Messaging.Commands.CommandModel)
   at DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, NzbDrone.Core.Messaging.Commands.CommandExecutor, System.Object, NzbDrone.Core.Messaging.Commands.CommandModel)
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=]](System.Runtime.CompilerServices.CallSite, System.__Canon, System.__Canon, System.__Canon)
   at DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, NzbDrone.Core.Messaging.Commands.CommandExecutor, System.Object, NzbDrone.Core.Messaging.Commands.CommandModel)
   at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands()
   at System.Threading.ThreadHelper.ThreadStart_Context(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.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

I have the same issue and have not found a fix.

Just switched from another service and while I like much of what this does, crashing a few times a day isn’t practical.

Could be a virus scanner or a file that media info can’t properly handle and causes it to crash, with the limited logs here it’s hard to say. Trace logs to see if it’s crashing in the same file would help narrow it down.

thanks for the reply, sonnar itself doesn’t log anything of note even with trace or debug level turned on.

the only Warn I get is related to " Unable to open media info from file: J:$DIR$show\Season 02\metadata$showname.SD.TV.FLEET.1.xml
Close"

in windows I get

Faulting application name: NzbDrone.exe, version: 2.0.0.5252, time stamp: 0x5bba913e
Faulting module name: MediaInfo.dll, version: 17.10.0.0, time stamp: 0x59fb476c
Exception code: 0xc0000005
Fault offset: 0x00109e3a
Faulting process id: 0x68d4
Faulting application start time: 0x01d472aa5e0afa17
Faulting application path: C:\ProgramData\NzbDrone\bin\NzbDrone.exe
Faulting module path: C:\ProgramData\NzbDrone\bin\MediaInfo.dll
Report Id: 2870bfe1-9538-47eb-8714-04b1c48b83d9
Faulting package full name: 
Faulting package-relative application ID: 

and

Application: NzbDrone.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo.MediaInfo_Open_Buffer_Continue(IntPtr, Byte[], IntPtr)
   at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo.Open(System.IO.Stream)
   at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo(System.String)
   at NzbDrone.Core.MediaFiles.EpisodeImport.Aggregation.AugmentingService.Augment(NzbDrone.Core.Parser.Model.LocalEpisode, Boolean)
   at NzbDrone.Core.Extras.Others.ExistingOtherExtraImporter.ProcessFiles(NzbDrone.Core.Tv.Series, System.Collections.Generic.List`1<System.String>, System.Collections.Generic.List`1<System.String>)
   at NzbDrone.Core.Extras.ExistingExtraFileService.Handle(NzbDrone.Core.MediaFiles.Events.SeriesScannedEvent)
   at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon)
   at NzbDrone.Core.MediaFiles.DiskScanService.CompletedScanning(NzbDrone.Core.Tv.Series)
   at NzbDrone.Core.MediaFiles.DiskScanService.Scan(NzbDrone.Core.Tv.Series)
   at NzbDrone.Core.Tv.RefreshSeriesService.RescanSeries(NzbDrone.Core.Tv.Series)
   at NzbDrone.Core.Tv.RefreshSeriesService.Execute(NzbDrone.Core.Tv.Commands.RefreshSeriesCommand)
   at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon, NzbDrone.Core.Messaging.Commands.CommandModel)
   at DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, NzbDrone.Core.Messaging.Commands.CommandExecutor, System.Object, NzbDrone.Core.Messaging.Commands.CommandModel)
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Runtime.CompilerServices.CallSite, System.__Canon, System.__Canon, System.__Canon)
   at DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, NzbDrone.Core.Messaging.Commands.CommandExecutor, System.Object, NzbDrone.Core.Messaging.Commands.CommandModel)
   at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands()
   at System.Threading.ThreadHelper.ThreadStart_Context(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.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

I downloaded the latest .net framework, but windows says I am up to date. (.NET Framework 4.7.2 or a later update is already installed on this computer.)

Any guidance would be appreciated (I do have windows defender and malwarebytes active but neither have anything quarantined)

It’ll log the file Sonarr is processing with media info.

If it’s constantly failing on non-media files then this is something that is fixed in the develop releases recently.

Thanks, so I should switch to the “develop” branch and see if that helps?

Yeah, it’d be good to rule out that issue.

Thanks, I will make the change and keep an eye on it.

Will report back within a day or so.

been working much better, havent seen a crash since switching to the develop branch.

1 Like

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