OFark / Compressarr

39 stars 0 forks source link

Sonarr issue - Season - Episode Files - Media Info - Video Codec #3

Closed OrangeJas closed 3 years ago

OrangeJas commented 3 years ago

The application give the error: An error has occurred. This application may no longer respond until reloaded. Reload When I select the option: Season - Episode Files - Media Info - Video Codec

Here is a log file with Trace Debuging enabled. log-20211101.txt

OFark commented 3 years ago

This USED to be an issue but I squashed that a while back, what version are you running? (Options page, at the bottom, send me all of the info)

OrangeJas commented 3 years ago

Application: 1.2.7926.14953

Runtime: 5.0.9

FFmpeg: N-101934-g7e241a1

Docker: Yes

OS: Unix 5.10.28.0 - Nvidia HW Support

OS 64bit: True

App 64bit: True

OFark commented 3 years ago

You said in the initial post that the Trace Debugging was enabled, there should be more in the logs, if that's the case. Can you restart the app, reproduce the error and send me the log again, it should output the "Property Name" which is causing this issue, just before it crashes.

If you're not seeing any more in the log can you send me the "Logging" part of the appsettings.json please?

OrangeJas commented 3 years ago

log-20211101.txt appsettings.txt

Here are the 2 files since the log seemed the same had to change the JSON to TXT to add it in the comment. Also I blanked some info the API keys and such.

OFark commented 3 years ago

Can you change the Logging File Section to this: "File": { "PathFormat": "/config/logs/log-{Date}.txt", "LogLevel": { "Default": "Warning", "Compressarr": "Debug" } }

Restart the app, recreate the issue and send me the log file again please.

OrangeJas commented 3 years ago

log-20211101.txt Here you go

OFark commented 3 years ago

Somethings not right, with debug logging enabled that log file should be a lot bigger than that. Looks like your running this on Unraid. Can you restart the app repeat the crash and send me the Docker Log, please?

Looks like your 3 hours behind UTC, according to the log files, is that correct?

OrangeJas commented 3 years ago

Yes that is correct currently I'm in UTC -3 It's also running on Unraid 6.9.2

Hopefully this one helps you 64cd51cdbb7cdf12acc08607e012e9bdcb18d323de840ac9a9db138660e42aa0-json.txt

OFark commented 3 years ago

That log makes much more sense. Was that the Docker Log?

I have just pushed a new version, (may take a minute to build & show up) This won't fix the problem but I have added code to, hopefully, make it fail a bit more gracefully and also log in more detail what is missing.

What's odd id it looks like, from the original error message that the problem is you don't have any series information from Sonarr, but you couldn't get to that part of the code if you didn't. Then the remaining option is the filter is somehow returning no results, but then again the filters a built from the data, so that should also be impossible.

Just out of curiosity:

OrangeJas commented 3 years ago

New version info:

Application: 1.2.7976.16488 Runtime: 5.0.11 FFmpeg: N-101934-g7e241a1 Docker: Yes OS: Unix 5.10.28.0 - Nvidia HW Support OS 64bit: True App 64bit: True

Here is a copy of the current app settings appsettings.txt

Here is a copy of the log file for the app. But it seems still lacking. log-20211102.txt

Here is a copy of the docker log file. 653e1487b6cb6268585090412b574a6796d0f068abcc15d8226dd973983b2b8c-json.txt

OFark commented 3 years ago

I have just pushed another update. I'm hoping what will happen is the page will no longer throw an error, but the drop down you get may (probably will) be empty. Let me know.

On the left hand side of the Sonarr page, are you seeing the codex against the series? image

OrangeJas commented 3 years ago

If I hit refresh I can see the codecs. Also it still gives me the error on the page when I select either codecs filter options.

Could the number of files be a potential issues.

Here are copies of the new logs: log-20211102.txt a59587a433963b9adf52f74750d733f196c971f6bd1aa9124a3c9775c1a41d96-json.txt

The app settings didn't change.

Version:

Application: 1.2.7976.41956 Runtime: 5.0.11 FFmpeg: N-101934-g7e241a1 Docker: Yes OS: Unix 5.10.28.0 - Nvidia HW Support OS 64bit: True App 64bit: True

OFark commented 3 years ago

Version number should definitely have changed, it's based on date and time of build. No the number of files would not be the issue here, unless maybe there are no files. The problem is somewhere between taking the list of all your files, and then creating a distinct list of the codecs used something is returning an empty (null) response, that's what the "Object reference not set to an instance of an object" means.

You said "If I hit refresh I can see the codecs." Does this mean that when the page first loads there are no codecs listed next to your series?

OrangeJas commented 3 years ago

When I initially load the Sonarr page I don't see anything on the left till I click the refresh button at the top right.

Before I clicked refreshed: image

After I clicked refreshed: image

OFark commented 3 years ago

The green refresh button?

OrangeJas commented 3 years ago

Yes

OFark commented 3 years ago

Ok, that's weird, has it always done that?

OrangeJas commented 3 years ago

Yes since I started using it's been doing that.

OFark commented 3 years ago

What version of Sonarr are you using?

OrangeJas commented 3 years ago

Version 3.0.4.1126 Package Version 3.0.4.1126-1 by sonarr-phantom Mono Version 6.12.0 AppData directory /config Startup directory /usr/lib/sonarr/bin Mode Console

OFark commented 3 years ago

I guess it still crashes after you've refreshed?

OrangeJas commented 3 years ago

yes that is correct.

OFark commented 3 years ago

Ok, I'll have a look at the way it fetches data tomorrow. It's a weird one.

OrangeJas commented 3 years ago

Alright let me know if you want me to test anything

OFark commented 3 years ago

Might have just fixed it with the latest update. Try it in a few minutes.

OrangeJas commented 3 years ago

So it's better now. I can select a codec. But it crashes when I click add.

image

Version:

Application: 1.2.7977.42314 Runtime: 5.0.11 FFmpeg: N-101934-g7e241a1 Docker: Yes OS: Unix 5.10.28.0 - Nvidia HW Support OS 64bit: True App 64bit: True

Here are the log files: 13129d481425edd0bfac78295d2793ef7c2abdaec377fe373e7e6f754f7dde07-json.txt log-20211103.txt

OFark commented 3 years ago

I think I've figured out what the problem is, somewhere along the line one or more of your files is missing information from Sonarr, or Sonarr is providing incomplete info. I've added a work around for this, but I have a feeling even if this works we've not seen the end if it.

OrangeJas commented 3 years ago

Well I was able to create the list and then the job also.

The list of shows is populated without me clicking the green refresh button now.

OFark commented 3 years ago

Wonderful, re-open if you run into any more issues with it. :)