Mono Crashing/Error On Ubuntu 14.04.2 LTS

Sonarr has been working just fine for me until now when I get this:

[Info] Bootstrap: Starting NzbDrone - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0                                                                                                                                                             .2850
[Info] MigrationLogger: *** Migrating data source=/root/.config/NzbDrone/nzbdron                                                                                                                                                             e.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version                                                                                                                                                             =3 ***
[Info] MigrationLogger: *** Migrating data source=/root/.config/NzbDrone/logs.db                                                                                                                                                             ;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 *                                                                                                                                                             **
[Info] Router: Application mode: Interactive
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController:   http://*:8989/
[Info] NancyBootstrapper: Starting NzbDrone API
[Info] SceneMappingService: Updating Scene mappings
[Info] HousekeepingService: Running housecleaning tasks
[Info] Database: Vacuuming database
[Info] Database: Database Compressed
[Warn] GlobalExceptionHandlers: SignalR Heartbeat error.
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) MediaInfoLib.MediaInfo.MediaInfoA_Open (intptr,                                                                                                                                                             intptr) <0xffffffff>
  at MediaInfoLib.MediaInfo.Open (string) <0x0004b>
  at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (string                                                                                                                                                             ) <0x00177>
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker/<GetDecisions>d_                                                                                                                                                             _0.MoveNext () <0x0044a>
  at System.Collections.Generic.List`1.AddEnumerable (System.Collections.Generic                                                                                                                                                             .IEnumerable`1<T>) <0x0008a>
  at System.Collections.Generic.List`1..ctor (System.Collections.Generic.IEnumer                                                                                                                                                             able`1<T>) <0x000c7>
  at System.Linq.Enumerable.ToList<TSource> (System.Collections.Generic.IEnumera                                                                                                                                                             ble`1<TSource>) <0x0003b>
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker.GetImportDecisio                                                                                                                                                             ns (System.Collections.Generic.List`1<string>,NzbDrone.Core.Tv.Series,bool,NzbDr                                                                                                                                                             one.Core.Qualities.QualityModel) <0x000d7>
  at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService.ProcessFile (Syste                                                                                                                                                             m.IO.FileInfo,NzbDrone.Core.Tv.Series,NzbDrone.Core.Download.DownloadClientItem)                                                                                                                                                              <0x001bd>
  at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService.ProcessPath (strin                                                                                                                                                             g,NzbDrone.Core.Tv.Series,NzbDrone.Core.Download.DownloadClientItem) <0x00127>
  at NzbDrone.Core.Download.CompletedDownloadService.Import (NzbDrone.Core.Downl                                                                                                                                                             oad.TrackedDownloads.TrackedDownload) <0x0008e>
  at NzbDrone.Core.Download.CompletedDownloadService.Process (NzbDrone.Core.Down                                                                                                                                                             load.TrackedDownloads.TrackedDownload,bool) <0x0022b>
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessCl                                                                                                                                                             ientItems (NzbDrone.Core.Download.IDownloadClient,NzbDrone.Core.Download.Downloa                                                                                                                                                             dClientItem) <0x00155>
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessCl                                                                                                                                                             ientDownloads (NzbDrone.Core.Download.IDownloadClient) <0x00263>
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.Refresh (                                                                                                                                                             ) <0x000f3>
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.Execute (                                                                                                                                                             NzbDrone.Core.Download.CheckForFinishedDownloadCommand) <0x0000f>
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand<TCommand> (                                                                                                                                                             NzbDrone.Core.Messaging.Commands.Command) <0x00207>
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.PublishCommand<TCommand> (                                                                                                                                                             TCommand) <0x0026b>
  at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerSer                                                                                                                                                             vices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.C                                                                                                                                                             ommands.CommandExecutor,object) <0x000cd>
  at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2<T0, T1> (System.Runtim                                                                                                                                                             e.CompilerServices.CallSite,T0,T1) <0x00500>
  at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerSer                                                                                                                                                             vices.Closure,System.Runtime.CompilerServices.CallSite,NzbDrone.Core.Messaging.C                                                                                                                                                             ommands.CommandExecutor,object) <0x0012d>
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.PublishCommand (string,Sys                                                                                                                                                             tem.Nullable`1<System.DateTime>) <0x00212>
  at NzbDrone.Core.Jobs.Scheduler.ExecuteCommands () <0x00207>
  at System.Threading.Tasks.TaskActionInvoker/ActionInvoke.Invoke (System.Thread                                                                                                                                                             ing.Tasks.Task,object,System.Threading.Tasks.Task) <0x00019>
  at System.Threading.Tasks.Task.InnerInvoke () <0x0006c>
  at System.Threading.Tasks.Task.ThreadStart () <0x0033b>
  at System.Threading.Tasks.Task.Execute () <0x0000f>
  at System.Threading.Tasks.TpScheduler.TaskExecuterCallback (object) <0x00047>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (objec                                                                                                                                                             t,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono() [0x4b3f7c]
        mono() [0x50c30f]
        mono() [0x423637]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fcb29ac7340]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3c3a72) [0x7fcb1738ca72]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3be7c6) [0x7fcb173877c6]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3bf408) [0x7fcb17388408]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3c3cf5) [0x7fcb1738ccf5]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3fca7) [0x7fcb17008ca7]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x40f58) [0x7fcb17009f58]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x410e0) [0x7fcb1700a0e0]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x419a0) [0x7fcb1700a9a0]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x42b2e) [0x7fcb1700bb2e]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x2318a7) [0x7fcb171fa8a7]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x2366c3) [0x7fcb171ff6c3]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3fca7) [0x7fcb17008ca7]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x40f58) [0x7fcb17009f58]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x410e0) [0x7fcb1700a0e0]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x419a0) [0x7fcb1700a9a0]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0xbe006) [0x7fcb17087006]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x356dd6) [0x7fcb1731fdd6]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x3575a2) [0x7fcb173205a2]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0x357d11) [0x7fcb17320d11]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0xc402f) [0x7fcb1708d02f]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(+0xc7c3b) [0x7fcb17090c3b]
        /usr/lib/x86_64-linux-gnu/libmediainfo.so.0(MediaInfo_Open+0x7e) [0x7fcb                                                                                                                                                             173bac9e]
        [0x4106a0f6]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Without mono running with the --debug switch and Sonarr running trace/debug logs there isn’t a lot of information we can extract, but it looks like it crashed trying to use MediaInfo to get the runtime of the file. Does it continue to crash in the same spot?

Yes, every time. The site will be usable for a little bit and then it will crash.

I suspect its crashing when trying to import, please pastebin some trace logs so we can see what episode its processing before it crashes.

I just started it up to enable that. But now it’s working just fine. I have no idea why.