Sonarr version (exact version): 3.0.9.1549-4.7 (Home:Junknot OBS repository)
Mono version (if Sonarr is not running on Windows): 6.12.0.122
OS: OpenSuse Tumbleweed
Debug logs: (See below)
Description of issue:
Hi all, Sonarr has been crashing on me relatively constantly since upgrading to the latest version - initially this was happening on initial import of the library after upgrade, but I moved some files out of the way and managed to stop that, now its happening on downloading new releases.
I have recovered the stack trace from the journal:
Native Crash Reporting
=================================================================
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.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x55e480b77cd0 - /usr/bin/mono :
0x55e480b78079 - /usr/bin/mono :
0x55e480b26e71 - /usr/bin/mono :
0x55e480b7189d - /usr/bin/mono :
0x7ff21af68476 - /lib64/libmediainfo.so.0 :
=================================================================
at <unknown> <0xffffffff>
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo:MediaInfo_Open_Buffer_Continue <0x000b8>
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo:Open <0x000ff>
at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader:GetMediaInfo <0x00293>
at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader:GetRunTime <0x0004f>
at NzbDrone.Core.MediaFiles.EpisodeImport.DetectSample:IsSample <0x0016d>
at <>c__DisplayClass14_0:<GetNonSampleVideoFileCount>b__0 <0x00050>
at System.Linq.Enumerable:Count <0x000c8>
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker:GetNonSampleVideoFileCount <0x001af>
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker:GetImportDecisions <0x001c3>
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker:GetImportDecisions <0x0005f>
at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService:ProcessFolder <0x0044c>
at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService:ProcessPath <0x000ef>
at NzbDrone.Core.Download.CompletedDownloadService:Import <0x0010e>
at NzbDrone.Core.Download.DownloadProcessingService:Execute <0x002b0>
at NzbDrone.Core.Messaging.Commands.CommandExecutor:ExecuteCommand <0x00210>
at System.Object:CallSite.Target <0x00122>
at System.Dynamic.UpdateDelegates:UpdateAndExecuteVoid3 <0x001bc>
at System.Object:CallSite.Target <0x00191>
at NzbDrone.Core.Messaging.Commands.CommandExecutor:ExecuteCommands <0x0032f>
at System.Threading.ThreadHelper:ThreadStart_Context <0x000aa>
at System.Threading.ExecutionContext:RunInternal <0x00191>
at System.Threading.ExecutionContext:Run <0x00042>
at System.Threading.ExecutionContext:Run <0x00063>
at System.Threading.ThreadHelper:ThreadStart <0x00042>
at System.Object:runtime_invoke_void__this__ <0x00091>
The crashed thread is the libmediainfo.so one.
The trace logs contain literally nothing unusual, however the last entry in the log is usually something along the form of :
2023-04-14 02:26:20.3|Debug|ImportDecisionMaker|Analyzing 1/1 files.
2023-04-14 02:26:20.3|Debug|Parser|Parsing string 'Station.19.S06E14.720p.HDTV.x264-SYNCOPY'
2023-04-14 02:26:20.3|Trace|Parser|^(?<title>.+?)(?:(?:[-_\W](?<![()\[!]))+S?(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))(?:[ex]|\W[ex]){1,2}(?<episode>\d{2,3}(?!\d+))(?:(?:\-|[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+)))*)\W?(?!\\)
2023-04-14 02:26:20.3|Debug|Parser|Episode Parsed. Station 19 - S06E14
2023-04-14 02:26:20.3|Debug|Parser|Language parsed: English
2023-04-14 02:26:20.3|Debug|QualityParser|Trying to parse quality for Station.19.S06E14.720p.HDTV.x264-SYNCOPY
2023-04-14 02:26:20.3|Debug|Parser|Quality parsed: HDTV-720p v1
2023-04-14 02:26:20.3|Debug|Parser|Release Group parsed: SYNCOPY
2023-04-14 02:26:20.3|Debug|VideoFileInfoReader|Getting media info from /home/(removed)/.sabnzbd/downloads/complete/Station.19.S06E14.720p.HDTV.x264-SYNCOPY/b8ef54b3cda8455bbb65814bb94a2e13.mkv
is it possible my libmediainfo.so is somehow incompatible? Its quite difficult to tell, as its not versioned on my system:
file /usr/lib64/libmediainfo.so.0.0.0
/usr/lib64/libmediainfo.so.0.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=61a5cf2fde04f271fbe2bd2e0473f98b11b2f2fd, stripped
Any help would be gratefully received. I can post full logs if necessary, but there is literally nothing in even the trace logs that shows anything wrong, they just … stop after “getting media info”