Jump to content

Getting the CoverArt Plugin Working


solabc16

Recommended Posts

I captured what happens on screen. At first coverart seems to be applied and all goes well. When hopping from one folder to another the web app becomes unresponsive: https://onedrive.live.com/redir?resid=18A252CC9E5A2E52!74013&authkey=!AF2zBoE4HivJl3c&ithint=video%2cmp4

 

Probably because the server is being worked very hard to produce the cover art images. Cover Art does consume additional resources so it's not for everyone, but results get saved for re-use to avoid re-creating the same images repeatedly.

Link to comment
Share on other sites

solabc16

Evening

 

Thanks for the video, that helps with understanding what you are experiencing/seeing.

 

This appears similiar to an issue I discussed earlier in this thread, where the UI would 'hang'. (http://emby.media/community/index.php?/topic/32321-getting-the-coverart-plugin-working/?p=309853)

 

As Luke mentioned it will consume additional resources, but I wouldn't expect the quad core atom in the DS1815+ to struggle with this; especially once the images have been initially created.

 

I suspect that something with your CoverArt configuration and/or images is causing the processing to hang, which ultimately ties up all of the http workers.

 

A few next steps...

 

 1) When the UI has reached the stage where it is 'hung', if you close all browsers sessions with Emby and start a new one, does it start responding again (without restarting the server)?

 

 2) Can you restart the server, then navigate around the UI until it 'hangs', at which point shut the browser window and grab the server log and post it here.

 

 3) Are you familiar with Firebug, the web developemnt tool for Firefox (or an equivalent)? By using the request monitor we should be able to identify the problem request, we can then start looking at a solution; this is how we identified and resolved the previous instance of this type of problem.

 

4) Finally, to rule out any unexpected resource demands on the DS1815+, can you load the resource monitor in the DSM UI whilst moving around the Emby WebUI (as per your video) and post a screenshot of the overview tab.

 

If you need any assistance with any of the above, just shout.

 

- James

Link to comment
Share on other sites

Pirlo1966

@ Luke: Yes, it looks like the server is being worked very hard but when I look at CPU and memory usage: MEM stays around 40%, CPU spikes in the beginning to 45-65% range and when emby web app becomes unresponsive  it drops to 1 or 2%... Is that logical?

 

@James: 

1. yes, it starts responding again but just for a minute or two

2. will do

3. will try

4. resources are okay: mem usage is stable around 40% and cpu spikes up to 60/70%

server-63598003887.txt

Edited by ehgeahrev
Link to comment
Share on other sites

solabc16

Yes, it looks like the server is being worked very hard but when I look at CPU and memory usage: MEM stays around 40%, CPU spikes in the beginning to 45-65% range and when emby web app becomes unresponsive  it drops to 1 or 2%... Is that logical?

 

Thanks for confirming that detail. Yes, it is logical - in that it supports my theory that some of the requests (as we've seen before) are causing the http request handler to hang, which ultimately results in the 'spinning wheel'; so CPU drops to zero as nothing is happening as a result.

 

Are you able to work through (1), (2) and (3)?

 

- James

Link to comment
Share on other sites

Pirlo1966

1. Was answere I believe or do you need more?

 

2. I attached server log to my previous post.

 

3. will do the firething tomorrow as I am a chrome user and I should go to bed right now :-)

Link to comment
Share on other sites

solabc16

No problem, for some reason half of the details from your post were missing on my screen, I see them now.

 

I'll have a look at the log in the morning.

 

All of the information so far indicates it's a similiar issue to one I've seen before; the tests above demonstrate the server isn't actually failing irrecoverably nor is resource utilation the underlying cause.

 

You can do something similiar in Chrome, if that's your preferred browser.

 

Hit F12 once you have the WebUI loaded and select the network tab. When it starts to slow down/hang, look at the requests that aren't completing (these will be grey horizontal bars), you can then right click on these and grab the request headers. Try to move as slowly through the UI as possible or find a single navigation that causes the slow down/hang, this will reduce the number of requests we need to work through.

 

Select the Img filter, that will make it easier to see the wood from the trees:-

 

572b12f3b4276_chrome_devtools.png

 

It will take a bit of iteration, but we will find the one.

 

- James

Edited by solabc16
Link to comment
Share on other sites

Pirlo1966

Do not know of this will help. Images treated by coverart started to load and than web app hangs. But all images until then were loaded. Just no new ones.

 

572bb1b32b678_Knipsel.jpg

Link to comment
Share on other sites

solabc16

Evening

 

If you hit the [X] next to [Headers], you should be able to see the view with the Status and Timeline present.

 

For now leave the filter on [All], look for the first request that gets stuck with the status [pending].

 

e.g.

 

572bb4190e467_chrome_devtools2.png

 

Right click on the request and select 'copy link address' and then try pasting the URL into another tab and see what happens.

 

If it is a problem request, you will see no image returned and the request will also hang indefinitely (like you see in the WebUI).

 

To give you a reference, pick another one [png] that has a status of 200 and do the same, and you will see the image returned.

 

- James

Link to comment
Share on other sites

Pirlo1966

That's cool stuff James! Learning a lot of new things.

 

So okay, I see requests pending. What do you want me to do with these?

 

Right click and copy? As cURL/HAR?

Link to comment
Share on other sites

solabc16

That's good progress, there should be an option at the bottom of the list 'copy link address' - that would be the most useful format for what we're doing here.

 

572bc0d86cd85_chrome_devtools3.png

 

- James

Link to comment
Share on other sites

Pirlo1966
solabc16

Ok, our next step is to identify one that is the cause, rather than being caught up as a result of the problem.

 

To start with make sure you close any previous browser sessions with Emby.

 

Then with the image requests that you've captured in the pending state, work through them by pasting them into the browsers address bar and see if an image is returned. You can do this with the dev-tools (F12) open on the network tab to help see what's going on.

 

A problem request will never return an image and you'll see the request sat pending indefinitely; this should be 100% repeatable.

 

As mentioned above, it would be worth picking one that responds correctly as well, just to get a feel for what you're expecting and to orient yourself.

 

- James

Link to comment
Share on other sites

  • 2 weeks later...

Good day,

 

Imagemagic at build 7*, do we get that instead of what post here?

 

My best

Link to comment
Share on other sites

solabc16

Evening

 

For now, I would stick with the build from the v6 release train, as there is nothing in particular that would warrant the effort required to move to v7.

 

I will refresh the v6 release in light of the recently disclosed vulnerabilities in ImageMagick; more out of good hygiene that any specific threat at this time.

 

I've starated work on a package for Synology (http://emby.media/community/index.php?/topic/34866-synology-package-in-development/?p=329452). One of the goals is to address the depencies and as far as is practical make Emby install and run as a self contained unit.

 

- James

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...