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

Interactive Search: No search results showing if parsing a malformed release title fails #3851

Closed
jwoodhouse opened this issue Jul 3, 2020 · 6 comments
Labels

Comments

@jwoodhouse
Copy link

jwoodhouse commented Jul 3, 2020

Describe the bug
When performing an interactive search on certain seasons of certain TV shows, the following error is displayed instead of presenting downloadable episodes:

Search failed because its object reference not set to an instance of an object.. Try refreshing the series info and verify the necessary information is present before searching again

This can happen on both newly added and old TV shows, uncertain what is linking them at the moment.

Happens with both Anime and Standard types.

Episodes that are unsearchable are still grabbed when they Air.

Automatic Search is able to successfully grab a release and send it to the download client on affected episodes.

Screenshots
https://imgur.com/a/H3PDg5a

Logs
Trace Logs when trying to search for Orphan Black S01E01: https://pastebin.com/angdFeny
Trace Logs when trying to search for Kaguya-sama: Love is War S02E12: https://pastebin.com/JVb0znPR

System Information

  • Sonarr Version: [3.0.3.896]
  • Operating System: [Windows Server 2016 (Virtualised)]
  • .net Framework (Windows) or mono (macOS/Linux) Version: [.NET Framework 4.8]

UI Bugs:
No UI Bugs

Additional context
This is likely to be something introduced somewhat recently, as I was previously able to search for eg. Orphan Black S01E01

Let me know if you need any more information - I will try to cooperate as best as I can.

Thanks.

@ArsamS
Copy link

ArsamS commented Jul 5, 2020

Having the same issue as well but I've only noticed it for Season Packs only so far. Individual episodes can be searched for but season packs for some shows such as Atlanta fail

@WindedDragon
Copy link

Also having the same issue however it's only certain episodes, it's also rejecting releasing because of a similar error. When you hover over why a release was rejected you get this error:
"AnimeVersionUpgradeSpecification: Object reference not set to an instance of an object"

There was also two similar errors preventing the episode from being imported:
"SameFileSpecification: Object reference not set to an instance of an object"
"UpgradeSpecification: Object reference not set to an instance of an object"

I'm running Sonarr in a docker container, not sure if that's somehow part of the issue.

@Taloth
Copy link
Member

Taloth commented Jul 5, 2020

@jwoodhouse

Orphan.Black.1x01.Selezione.Naturale.ITA.720p.BDMux.x264-NovaRip [01/54] - "orphan.black.1x01.ita.720p.bdmux.x264-novarip.nfo"

That's not a release title, it's an usenet article name. Check which indexer it comes from and report it to them.
I suspect the other error is because of that release. I'll look into guarding against it in a future version, but you should deal with a bad indexer like that.

at everybody else... "me too" does not contribute, please investigate and provide logs.

@jwoodhouse
Copy link
Author

@Taloth Thanks for the heads up, I'll have a dig around nzbhydra to see where that release is coming from.

Happy to have this closed off if you're fairly confident thats the issue.

Thanks.

@jwoodhouse
Copy link
Author

jwoodhouse commented Jul 5, 2020

Just for clarity, I'd like to confirm that the above is accurate,
After temporarily disabling the indexer where that specific release is coming from, the Interactive search is working as intended.

I'd also like to note that this is likely not the fault of the indexer - that does indeed seem to be the name of the release in this case, maybe the fault of the poster? Not sure if I'm allowed to name drop indexers on github, but this is coming from a fairly popular one that has a pint of beer as their logo.

@Taloth Taloth added the bug label Jul 5, 2020
@Taloth Taloth changed the title Interactive Search: Search failed because its object reference not set to an instance of an object Interactive Search: No search results showing if parsing a malformed release title fails Jul 5, 2020
@Taloth
Copy link
Member

Taloth commented Jul 5, 2020

Thanks for confirming. Leave it open, I've renamed it.
We should be able to detect the problem and at least show the other releases.

The below information is just from the pastebin so it doesn't get lost.

20-7-3 19:55:50.9|Error|Parser|An error has occurred while trying to parse Orphan.Black.1x01.Selezione.Naturale.ITA.720p.BDMux.x264-NovaRip [01/54] - "orphan.black.1x01.ita.720p.bdmux.x264-novarip.nfo"
 
[v3.0.3.896] System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.GetExtension(String path)
   at NzbDrone.Core.Parser.QualityParser.ParseQualityName(String name) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Parser\QualityParser.cs:line 344
   at NzbDrone.Core.Parser.QualityParser.ParseQuality(String name) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Parser\QualityParser.cs:line 68
   at NzbDrone.Core.Parser.Parser.ParseTitle(String title) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Parser\Parser.cs:line 507

leads to:

[v3.0.3.896] System.NullReferenceException: Object reference not set to an instance of an object.
   at Sonarr.Api.V3.Indexers.ReleaseResourceMapper.ToResource(DownloadDecision model) in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\Indexers\ReleaseResource.cs:line 84
   at Sonarr.Api.V3.Indexers.ReleaseModuleBase.MapDecision(DownloadDecision decision, Int32 initialWeight) in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\Indexers\ReleaseModuleBase.cs:line 25
   at Sonarr.Api.V3.Indexers.ReleaseModule.MapDecision(DownloadDecision decision, Int32 initialWeight) in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\Indexers\ReleaseModule.cs:line 201
   at Sonarr.Api.V3.Indexers.ReleaseModuleBase.MapDecisions(IEnumerable`1 decisions) in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\Indexers\ReleaseModuleBase.cs:line 13
   at Sonarr.Api.V3.Indexers.ReleaseModule.GetEpisodeReleases(Int32 episodeId) in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\Indexers\ReleaseModule.cs:line 157

and bubbles out to the UI

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 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

4 participants