Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SameFileSpecification & UpgradeSpecification: Object reference not set to an instance of an object #3243

Closed
0x0054 opened this issue Aug 5, 2019 · 2 comments
Labels

Comments

@0x0054
Copy link

0x0054 commented Aug 5, 2019

Describe the bug
When trying to either automatically or manually import one episode of one series I get the following error.
When trying to manually import the toast says "Manually Import completed" after less than a second.

Logs

19-8-5 13:29:07.3|Debug|Parser|Parsing string 'Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1'
19-8-5 13:29:07.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?(?!\\)
19-8-5 13:29:07.3|Debug|Parser|Episode Parsed. Warrior 2019 - S01E06 
19-8-5 13:29:07.3|Debug|Parser|Language parsed: English
19-8-5 13:29:07.3|Debug|QualityParser|Trying to parse quality for Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1
19-8-5 13:29:07.3|Debug|Parser|Quality parsed: WEBDL-1080p v1
19-8-5 13:29:07.3|Debug|Parser|Release Group parsed: NTb
19-8-5 13:29:07.3|Debug|Parser|Parsing string 'Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1'
19-8-5 13:29:07.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?(?!\\)
19-8-5 13:29:07.3|Debug|Parser|Episode Parsed. Warrior 2019 - S01E06 
19-8-5 13:29:07.3|Debug|Parser|Language parsed: English
19-8-5 13:29:07.3|Debug|QualityParser|Trying to parse quality for Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1
19-8-5 13:29:07.3|Debug|Parser|Quality parsed: WEBDL-1080p v1
19-8-5 13:29:07.3|Debug|Parser|Release Group parsed: NTb
19-8-5 13:29:07.3|Debug|DiskScanService|Scanning '/media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/' for video files
19-8-5 13:29:07.3|Trace|DiskScanService|2 files were found in /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/
19-8-5 13:29:07.3|Debug|DiskScanService|1 video files were found in /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/
19-8-5 13:29:07.3|Debug|ImportDecisionMaker|Analyzing 1/1 files.
19-8-5 13:29:07.3|Debug|VideoFileInfoReader|Getting media info from /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/fFqTJqoAktcV.mkv
19-8-5 13:29:07.4|Trace|MediaInfo|Read file offset 0-81920 (81920 bytes)
19-8-5 13:29:07.5|Trace|MediaInfo|Read file offset 1979934357-1979984877 (50520 bytes)
19-8-5 13:29:07.5|Trace|MediaInfo|Read a total of 132440 bytes (0.0%)
19-8-5 13:29:07.5|Debug|DetectSample|Runtime is over 90 seconds
19-8-5 13:29:07.5|Debug|Parser|Parsing string 'fFqTJqoAktcV.mkv'
19-8-5 13:29:07.5|Debug|Parser|Unable to parse fFqTJqoAktcV.mkv
19-8-5 13:29:07.5|Debug|Parser|Attempting to parse episode info using directory and file names. Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1
19-8-5 13:29:07.5|Debug|Parser|Parsing string 'Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1 fFqTJqoAktcV.mkv'
19-8-5 13:29:07.5|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?(?!\\)
19-8-5 13:29:07.5|Debug|Parser|Episode Parsed. Warrior 2019 - S01E06 
19-8-5 13:29:07.5|Debug|Parser|Language parsed: English
19-8-5 13:29:07.5|Debug|QualityParser|Trying to parse quality for Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1 fFqTJqoAktcV.mkv
19-8-5 13:29:07.5|Debug|Parser|Quality parsed: WEBDL-1080p v1
19-8-5 13:29:07.5|Debug|Parser|Release Group parsed: NTb
19-8-5 13:29:07.5|Debug|VideoFileInfoReader|Getting media info from /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/fFqTJqoAktcV.mkv
19-8-5 13:29:07.5|Trace|MediaInfo|Read file offset 0-81920 (81920 bytes)
19-8-5 13:29:07.5|Trace|MediaInfo|Read file offset 1979934357-1979984877 (50520 bytes)
19-8-5 13:29:07.5|Trace|MediaInfo|Read a total of 132440 bytes (0.0%)
19-8-5 13:29:07.5|Debug|AggregateQuality|Using quality: WEBDL-1080p v1
19-8-5 13:29:07.5|Debug|EpisodeTitleSpecification|File name format does not require episode title, skipping check
19-8-5 13:29:07.5|Trace|ConfigService|Using default config value for 'skipfreespacecheckwhenimporting' defaultValue:'False'
19-8-5 13:29:07.5|Debug|DiskProvider|Unable to get free space for '/media/tv', unable to find suitable drive
19-8-5 13:29:07.5|Debug|FreeSpaceSpecification|Free space check returned an invalid result for: /media/tv
19-8-5 13:29:07.5|Error|ImportDecisionMaker|Couldn't evaluate decision on /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/fFqTJqoAktcV.mkv

[v2.0.0.5322] System.NullReferenceException: Object reference not set to an instance of an object
  at NzbDrone.Core.MediaFiles.EpisodeImport.Specifications.SameFileSpecification.IsSatisfiedBy (NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x00091] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\Specifications\SameFileSpecification.cs:33 
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker.EvaluateSpec (NzbDrone.Core.MediaFiles.EpisodeImport.IImportDecisionEngineSpecification spec, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportDecisionMaker.cs:160 

19-8-5 13:29:07.5|Debug|VideoFileInfoReader|Getting media info from /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/fFqTJqoAktcV.mkv
19-8-5 13:29:07.5|Trace|MediaInfo|Read file offset 0-81920 (81920 bytes)
19-8-5 13:29:07.5|Trace|MediaInfo|Read file offset 1979934357-1979984877 (50520 bytes)
19-8-5 13:29:07.5|Trace|MediaInfo|Read a total of 132440 bytes (0.0%)
19-8-5 13:29:07.5|Debug|DetectSample|Runtime is over 90 seconds
19-8-5 13:29:07.5|Trace|ConfigService|Using default config value for 'downloadclientworkingfolders' defaultValue:'_UNPACK_|_FAILED_'
19-8-5 13:29:07.5|Error|ImportDecisionMaker|Couldn't evaluate decision on /media/downloads/tv/Warrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1/fFqTJqoAktcV.mkv

[v2.0.0.5322] System.NullReferenceException: Object reference not set to an instance of an object
  at NzbDrone.Core.MediaFiles.EpisodeImport.Specifications.UpgradeSpecification+<>c__DisplayClass2_0.<IsSatisfiedBy>b__0 (NzbDrone.Core.Tv.Episode e) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\Specifications\UpgradeSpecification.cs:22 
  at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-5.2.0.215/external/corefx/src/System.Linq/src/System/Linq/AnyAll.cs:38 
  at NzbDrone.Core.MediaFiles.EpisodeImport.Specifications.UpgradeSpecification.IsSatisfiedBy (NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x0002d] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\Specifications\UpgradeSpecification.cs:22 
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker.EvaluateSpec (NzbDrone.Core.MediaFiles.EpisodeImport.IImportDecisionEngineSpecification spec, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportDecisionMaker.cs:160 

19-8-5 13:29:07.5|Debug|ImportDecisionMaker|File rejected for the following reasons: [Permanent] SameFileSpecification: Object reference not set to an instance of an object, [Permanent] UpgradeSpecification: Object reference not set to an instance of an object
19-8-5 13:29:07.5|Trace|Http|Res: 64 [GET] /api/manualimport?folder=%2Fmedia%2Fdownloads%2Ftv%2FWarrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1%2F&sort_by=qualityWeight&order=desc: 200.OK (186 ms)
19-8-5 13:29:07.5|Debug|Api|[GET] /api/manualimport?folder=%2Fmedia%2Fdownloads%2Ftv%2FWarrior.2019.S01E06.Chewed.Up.Spit.Out.and.Stepped.on.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.1%2F&sort_by=qualityWeight&order=desc: 200.OK (186 ms)
19-8-5 13:29:08.6|Trace|Scheduler|Pending Tasks: 0

System Information

  • Sonarr Version: 2.0.0.5322
  • Operating System: Freenas/FreeBSD
  • mono Version: 5.2.0

Additional context
I tried searching for this error but the only similar instance I found was #2640 and there the advice was either manually import the file or renaming the file. I tried both (renaming the file to test.mkv and the folder name.mkv) and didn't succeed. I can of course manually move the file into the appropriate folder but would like to know why the bug is occurring, in hopes of avoiding this in the future.

If you need more from the trace logs please let me know but as far as I can see that is the only relevant part.

@markus101
Copy link
Member

Fixed for v3, refreshing the affected series should fix it if you run into it again.

@0x0054
Copy link
Author

0x0054 commented Aug 5, 2019

Refreshing the series worked perfectly, thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants