Emby Mono only running single threaded

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks Josh. So I should install this rather than the 5781.4 update I see in the FreeNAS GUI under plugins?

If so, what is the process for loading the .pbi directly?
If you want to just test in a separate jail you can upload the PBI on the Plugins > Available tab.

But, if you want to upgrade your current install I suggest you do the following
  1. stop emby
  2. snapshot your emby jail
  3. upload a PBI for sabnzbd from http://download.freenas.org/plugins/9/x64/ to the emby jail on the Jails tab
  4. delete the emby plugin on the Plugins > Installed tab
  5. upload the emby PBI I linked to the emby jail on the Jails tab
  6. start emby
 

pclausen

Patron
Joined
Apr 19, 2015
Messages
267
So I opted for option 1. I did go ahead an update my "production" Emby install to 5781.4 which went smoothly but of course did nothing to fix the problem.

I then downloaded the PBI you linked to and uploaded it as a new jail in Emby as can be seen here:

embytest06.PNG


Next I assigned it the same storage as my production plugin and fired it up and imported just my DVD media folder and let is scan it. But then, when I started poking around, this is when things got wonky.

Here's a screenshot of when I went into Movies for the first time:

embytest01.PNG


Notice the missing thumbs and the one that is interlaced or something?

Next I clicked on the Movies tab, and all I got was the following empty screen:

embytest02.PNG


I then clicked the little gear icon in the upper right to get back to the dashboard. But here I just had the spinning wheel:

embytest03.PNG


The only way I was able to recover was by closing that particular browser tab and go back to the same url again.

When I did, I got the following, this time with a different "interlaced" image and a bunch of empty ones:

embytest04.PNG


I then shut down the plugin and restarted it. When I went back in, I got a little further on the Movies tab as it now at least gave me a count of how many movies were in my DVD folder, but no thumbs.

embytest05.PNG


So something definitely appears to be "off".

Again, my production Emby instance is running just fine (except for the slowness when running the CoverArt Plugin).
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
So I opted for option 1. I did go ahead an update my "production" Emby install to 5781.4 which went smoothly but of course did nothing to fix the problem.

I then downloaded the PBI you linked to and uploaded it as a new jail in Emby as can be seen here:

embytest06.PNG


Next I assigned it the same storage as my production plugin and fired it up and imported just my DVD media folder and let is scan it. But then, when I started poking around, this is when things got wonky.

Here's a screenshot of when I went into Movies for the first time:

embytest01.PNG


Notice the missing thumbs and the one that is interlaced or something?

Next I clicked on the Movies tab, and all I got was the following empty screen:

embytest02.PNG


I then clicked the little gear icon in the upper right to get back to the dashboard. But here I just had the spinning wheel:

embytest03.PNG


The only way I was able to recover was by closing that particular browser tab and go back to the same url again.

When I did, I got the following, this time with a different "interlaced" image and a bunch of empty ones:

embytest04.PNG


I then shut down the plugin and restarted it. When I went back in, I got a little further on the Movies tab as it now at least gave me a count of how many movies were in my DVD folder, but no thumbs.

embytest05.PNG


So something definitely appears to be "off".

Again, my production Emby instance is running just fine (except for the slowness when running the CoverArt Plugin).
Just a guess but maybe Emby is still pulling down posters (and if you come back to the page after a while they will be there).
Another possibility is I need to link an additional library because of enabling the OPENMP setting.
 

pclausen

Patron
Joined
Apr 19, 2015
Messages
267
I just checked again (5 hours later) and the behavior is still wonky. Scanning the media folder completes in about 10 seconds.

It looks a bit more complete on the initial page:

embytest07.PNG


And when I go into the Movies tab I know have most of the thumbs:

embytest08.PNG


But I'm unable to fix the missing covers. When I hover over the blank spaces, I don't get the usual option to Edit. Going to page 2 of the Movies, I get the following:

embytest09.PNG


I'm going to install a 3rd instance of Emby using the official current plugin, and add just the same DVD media folder and compare the results. But I definitely feel the OPENMP is causing some odd issues.
 

pclausen

Patron
Joined
Apr 19, 2015
Messages
267
Did a clean install of a 3rd Emby jail and all the issues went away. So definitely something related to OPENMP. I'm going to proceed with installing the CoverArt plugin to see if the slowness returns, even with only ~500 titles.
 

pclausen

Patron
Joined
Apr 19, 2015
Messages
267
No, after the initial browse through the 500 titles, it is nice and fast. Scanning in my main Blu-Ray media folder now to see if that is what bogs it down.
 

pclausen

Patron
Joined
Apr 19, 2015
Messages
267
Posted the following over on the Emby forum just now:

--- cut ---
I added my main Blu-Ray media folder back in, which brought the movie count to 2,000. And the slowness issue is back.

So CoverArt with 500 titles is nice and snappy, but with 2,000 titles it bogs down to the point of it taking 10-15 seconds to pull up the first page of 100 thumbs and sorting causes a similar delay. Again, with 500 titles, these actions complete within 1 second. So it's not like it went from 1 second with 500 titles to 4 seconds with 2,000 titles. Some limit is reached it appears, which causes a non linear increase in the time it takes to "paint" the thumbs.
--- cut ---
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm getting weird behaviour with the OpenMP enabled plugin as well. I'm guessing either FreeBSD+ImageMagick+OpenMP doesn't work well or I need to link an additional library. But I can't figure out what.

If you want to explore this further you could compile the port for ImageMagick-noX11 and enable OpenMP in a jail install of Emby to see if that works as expected.
 

pclausen

Patron
Joined
Apr 19, 2015
Messages
267
ebr over on the Emby forum is looking at it as well. I just provided him the following emby log from when the delay occurs:

Code:
root@emby_2:/var/db/emby-server/logs # more server-63584918978.txt
2015-12-05 18:01:09.1191 Info - App: ActivityLogWebSocketListener stop transmitting over websocket to 10.0.1.53:55115
2015-12-05 18:01:09.1191 Info - App: ActivityLogWebSocketListener Begin transmitting over websocket to 10.0.1.53:55115
2015-12-05 18:01:09.1191 Info - App: SessionInfoWebSocketListener stop transmitting over websocket to 10.0.1.53:55115
2015-12-05 18:01:09.1191 Info - App: ScheduledTasksWebSocketListener stop transmitting over websocket to 10.0.1.53:55115
2015-12-05 18:01:09.4363 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/DisplayPreferences/home?userId=1586a15fe4284314b7f32cce512baed1&client=webclient. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/                                                                                                                                                                               46.0.2490.86 Safari/537.36
2015-12-05 18:01:09.4381 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 2ms. http://10.0.1.105:8096/emby/DisplayPreferences/home?userId=1586a15fe4284314b7f32cce512baed1&client=webclient
2015-12-05 18:01:09.4396 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Views. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:09.4412 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items?SortBy=DatePlayed&SortOrder=Descending&MediaTypes=Video&Filters=IsResumable&Limit=10&Recursive=true&Fields=PrimaryImageAspectRatio%2CSyn                                                                                                                                                                               cInfo&CollapseBoxSetItems=false&ExcludeLocationTypes=Virtual&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:09.4412 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/Latest?Limit=20&Fields=PrimaryImageAspectRatio%2CSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb. UserAgent: Mozil                                                                                                                                                                               la/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:09.4416 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/LiveTv/Recordings?userId=1586a15fe4284314b7f32cce512baed1&limit=5&IsInProgress=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chr                                                                                                                                                                               ome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:09.4416 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 3ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Views
2015-12-05 18:01:09.4533 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 12ms. http://10.0.1.105:8096/emby/LiveTv/Recordings?userId=1586a15fe4284314b7f32cce512baed1&limit=5&IsInProgress=false
2015-12-05 18:01:09.4900 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 49ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items?SortBy=DatePlayed&SortOrder=Descending&MediaTypes=Video&Filters=IsResumable&Limit=10&Recursive=true&F                                                                                                                                                                               ields=PrimaryImageAspectRatio%2CSyncInfo&CollapseBoxSetItems=false&ExcludeLocationTypes=Virtual&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb
2015-12-05 18:01:09.5001 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 59ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/Latest?Limit=20&Fields=PrimaryImageAspectRatio%2CSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2                                                                                                                                                                               CBackdrop%2CThumb
2015-12-05 18:01:11.1783 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/d417db23f477b3573331d2ef22d0935c. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.                                                                                                                                                                               0.2490.86 Safari/537.36
2015-12-05 18:01:11.1809 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 2ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/d417db23f477b3573331d2ef22d0935c
2015-12-05 18:01:11.4893 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/Latest?IncludeItemTypes=Movie&Limit=18&Fields=PrimaryImageAspectRatio%2CMediaSourceCount%2CSyncInfo&ParentId=d417db23f477b3573331d2ef22d                                                                                                                                                                               0935c&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:11.4947 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items?SortBy=DatePlayed&SortOrder=Descending&IncludeItemTypes=Movie&Filters=IsResumable&Limit=6&Recursive=true&Fields=PrimaryImageAspectRatio%                                                                                                                                                                               2CMediaSourceCount%2CSyncInfo&CollapseBoxSetItems=false&ParentId=d417db23f477b3573331d2ef22d0935c&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) C                                                                                                                                                                               hrome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:11.4947 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Movies/Recommendations?userId=1586a15fe4284314b7f32cce512baed1&categoryLimit=4&ItemLimit=9&Fields=PrimaryImageAspectRatio%2CMediaSourceCount%2CSyncInfo&ImageTypeLimit=1&EnableImageT                                                                                                                                                                               ypes=Primary%2CBackdrop%2CBanner%2CThumb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
2015-12-05 18:01:11.5713 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/d417db23f477b3573331d2ef22d0935c. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.                                                                                                                                                                               0.2490.86 Safari/537.36
2015-12-05 18:01:11.5739 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 2ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/d417db23f477b3573331d2ef22d0935c
2015-12-05 18:01:11.5907 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 96ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items?SortBy=DatePlayed&SortOrder=Descending&IncludeItemTypes=Movie&Filters=IsResumable&Limit=6&Recursive=t                                                                                                                                                                               rue&Fields=PrimaryImageAspectRatio%2CMediaSourceCount%2CSyncInfo&CollapseBoxSetItems=false&ParentId=d417db23f477b3573331d2ef22d0935c&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb
2015-12-05 18:01:11.7510 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 256ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/Latest?IncludeItemTypes=Movie&Limit=18&Fields=PrimaryImageAspectRatio%2CMediaSourceCount%2CSyncInfo&                                                                                                                                                                               ParentId=d417db23f477b3573331d2ef22d0935c&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb
2015-12-05 18:01:13.3246 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/d417db23f477b3573331d2ef22d0935c. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.                                                                                                                                                                               0.2490.86 Safari/537.36
2015-12-05 18:01:13.3271 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 2ms. http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items/d417db23f477b3573331d2ef22d0935c
2015-12-05 18:01:13.6382 Info - HttpServer: HTTP GET http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items?SortBy=SortName&SortOrder=Descending&IncludeItemTypes=Movie&Recursive=true&Fields=PrimaryImageAspectRatio%2CSortName%2CMediaSourceCount%                                                                                                                                                                               2CSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb&StartIndex=0&Limit=100&ParentId=d417db23f477b3573331d2ef22d0935c. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Saf                                                                                                                                                                               ari/537.36
2015-12-05 18:01:22.9069 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 9268ms (slow). http://10.0.1.105:8096/emby/Users/1586a15fe4284314b7f32cce512baed1/Items?SortBy=SortName&SortOrder=Descending&IncludeItemTypes=Movie&Recursive=true&Fields=PrimaryIma                                                                                                                                                                               geAspectRatio%2CSortName%2CMediaSourceCount%2CSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb&StartIndex=0&Limit=100&ParentId=d417db23f477b3573331d2ef22d0935c
2015-12-05 18:01:37.2719 Info - HttpServer: HTTP Response 200 to 10.0.1.53. Time: 25777ms (slow). http://10.0.1.105:8096/emby/Movies/Recommendations?userId=1586a15fe4284314b7f32cce512baed1&categoryLimit=4&ItemLimit=9&Fields=PrimaryImageAspectRatio%2CMediaSourceC                                                                                                                                                                               ount%2CSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb


Note the response time on those last 2 entries.
 
Status
Not open for further replies.
Top