Solved Live DVD Cases taking over a minute to appear :(
#1
Hey all,...

I'm setting up a IntelNUC box for my brother, and on his box, I'm just using Openelec, w/ Nox 4.1.9
As for his media,.. I've got a Probox w/ 3 Hds (10TB) feeding the USB port.

Anyway, when I turn on the box,.. it boots into XBMC,... the HDs get mounted ,... then all of the menus work, movie details work, movie plays,..
yet on my main menu screen ... the Live DVD cases remain empty for over a minute, before getting populated, slowly, one by one with the cover ..

I'm using smartplaylists, .. for movies up to 1970, over 1970, Top250, best picture,... etc.. for the cases.

On my Win8 NUC, .. the DVD cases, display almost immediately on boot.

Even if I reboot, leaving the HDs up and connected, .. it still takes over a minute to see the background cases appear...

Anyone have any ideas on how to speed this up?

thanks
Legion
Reply
#2
Same NUC with same CPU ? If you have various smart playlists to populate your custom menu, the skin need to run a lot of script (one for each smart playlist). Are you showing latest items or random items ? May be enabling debug mode then reboot your pc and look in your log file to see how long did the scripts take to complete.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#3
same Nuc, etc ... I'll try the Debug mode,... and check it out.
and yep, I'm running all random.

thanks for the tip

Legion
Reply
#4
Maybe some cache problem.

For each new movie, artwork (poster and fanart) have to be copied localy in XBMC cache from internet or disc.

If you browse your library and return to main menu, it's OK ?

SSD or HDD in NUC ?
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#5
Running SSD (64M) 4G Ram, Intel i3

These aren't new additions.

If I browse a catagory and come back out, still no Live DVD Cases ...
Note: When I'm browsing, I have the layout type set to 4 thumbs (nox Showcase) and the thumbs are there instantly,...
If you have time, here's the log file:

http://www.treasure-cove.net/xbmclog.zip

I'm not quite up to knowing what's going on in the log files yet,... had more than my share of problems with YAMJ logs Sad

thanks again for the help
Legion

Ps I also tried having the smart playlist just point to a folder, random,... to see if that might be the problem,... nope... still took the same time.
Reply
#6
Just have a quick look in your log file.

First, you have define 6 smart playlists :

Code:
14:48:33 T:140035336083264   DEBUG: ExecuteXBMCAction : To RunScript(script.randomandlastitems, type=Movie, playlist="special://profile/playlists/video/Movies to 1970.xsp", method=Random, limit=10, unwatched=False, resume=False, property=SmartPlaylist1)
14:48:33 T:140035336083264   DEBUG: ExecuteXBMCAction : To RunScript(script.randomandlastitems, type=Movie, playlist="special://profile/playlists/video/Movies 1970 up.xsp", method=Random, limit=10, unwatched=False, resume=False, property=SmartPlaylist2)
14:48:33 T:140035336083264   DEBUG: ExecuteXBMCAction : To RunScript(script.randomandlastitems, type=Movie, playlist="special://profile/playlists/video/BestPicture.xsp", method=Random, limit=10, unwatched=False, resume=False, property=SmartPlaylist3)
14:48:33 T:140035336083264   DEBUG: ExecuteXBMCAction : To RunScript(script.randomandlastitems, type=Movie, playlist="special://profile/playlists/video/IMDbTop250.xsp", method=Random, limit=10, unwatched=False, resume=False, property=SmartPlaylist4)
14:48:33 T:140035336083264   DEBUG: ExecuteXBMCAction : To RunScript(script.randomandlastitems, type=Movie, playlist="special://profile/playlists/video/2011 up.xsp", method=Random, limit=10, unwatched=False, resume=False, property=SmartPlaylist5)
14:48:33 T:140035336083264   DEBUG: ExecuteXBMCAction : To RunScript(script.randomandlastitems, type=Episode, playlist="special://profile/playlists/video/TV playlist.xsp", method=Random, limit=10, unwatched=False, resume=False, property=SmartPlaylist6)

Two of them are empty :

Code:
14:48:35 T:140034581718784   DEBUG: Random and Last items script: [RandomAndLastItems] ## PLAYLIST special://profile/playlists/video/Movies to 1970.xsp COULD NOT BE LOADED ##
14:48:35 T:140034581718784   DEBUG: Random and Last items script: [RandomAndLastItems] JSON RESULT {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'files': None, u'limits': {u'start': 0, u'total': 0, u'end': 0}}}
14:49:55 T:140034573326080   DEBUG: Random and Last items script: [RandomAndLastItems] ## PLAYLIST special://profile/playlists/video/Movies 1970 up.xsp COULD NOT BE LOADED ##
14:49:55 T:140034573326080   DEBUG: Random and Last items script: [RandomAndLastItems] JSON RESULT {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'files': None, u'limits': {u'start': 0, u'total': 0, u'end': 0}}}

Didn't find debug message for other smart playlists.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#7
sorry, I was changing the playlists to see if I could find out what was causing the problem,.. and 2 of the playlists had errors.. sorry.

did you see anything else that looked suspicious?

thanks
Legion
Reply
#8
Anyone know is this is an error or not? 17 seconds?, and I have 3 or 4 of these Sad

PHP Code:
DEBUGRandom and Last items scriptLoading PlaylistRandomEpisode started at 2013-09-19 20:29:12 and take 17.744s 

thanks
Legion

PS ... I've also noticed that if I go to "Programs" a soon as the main menu appears,.. and try to Click on Openelec Configuration ,... nothing happens Sad
but if I keep pressing the Enter on the Remote,... after about a minute, ... the configuration menu will open..
This also happens with all other Programs that you may have loaded,.. ie, none will work for over a minute...
Reply
#9
If you switch to Confluence default skin, your issue with Openelec program disappear ?

If your MyVideo75.db file is not to big (access it with \\openelec\UserData\Database), can you share it on dl.free.fr or rapidshare or other sharing site ?

And put your XSP files (\\openelec\UserData\playlists\video) in a ZIP and share it the same way.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#10
(2013-09-20, 14:18)mikebzh44 Wrote: If you switch to Confluence default skin, your issue with Openelec program disappear ?

If your MyVideo75.db file is not to big (access it with \\openelec\UserData\Database), can you share it on dl.free.fr or rapidshare or other sharing site ?

And put your XSP files (\\openelec\UserData\playlists\video) in a ZIP and share it the same way.

thanks fro the replay.

When I switch over to Confluence, I have the same problems running openelec Configuration under "Programs" .. Click on it, nothing happens for over a minute. then you can click and it will open.

I'll try and upload the files..

thanks
Legion


EDIT:

Here's the files:
http://www.treasure-cove.net/db_files.zip
Reply
#11
Thanks.

Can you send me your guisettings.xml ?
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#12
Here ya go ....
http://www.treasure-cove.net/guisettings.zip

(2013-09-20, 15:53)mikebzh44 Wrote: Thanks.
Can you send me your guisettings.xml ?
Reply
#13
When running 6 scripts at the same time, I can reproduce your delay :

Code:
16:21:50 T:7292   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist3 started at 2013-09-20 16:21:44 and take 6.477s
16:21:52 T:7640   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist4 started at 2013-09-20 16:21:43 and take 8.381s
16:21:52 T:1148   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist5 started at 2013-09-20 16:21:43 and take 8.669s
16:21:56 T:4712   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist1 started at 2013-09-20 16:21:43 and take 12.631s
16:22:00 T:8120   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist2 started at 2013-09-20 16:21:43 and take 16.167s

But If I only run 1 script to populated Playlist 1 (Movies to 1970), script is OK :

Code:
16:25:06 T:6624   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist1 started at 2013-09-20 16:25:02 and take 3.885s

You have a big library (more than 2,000 movies), may be running this script 6 times for 6 differents smart playlist is not a good thing. And your smart playlists are not attached to custom menu so why did you declare those smart playlists in Aeon Nox Playlist Manager ?

You said that on your NUC, every thing is OK, you have the same library (over 2,000 movies) with the same smart playlists ?

Running smart playlists 1 and 2 increase time :

Code:
16:33:46 T:8072   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist1 started at 2013-09-20 16:33:41 and take 5.317s
16:33:47 T:4772   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist2 started at 2013-09-20 16:33:41 and take 5.898s
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#14
I have put some extra debug info on the script and, with 2 smart playlists, you can see that the most expensive part is JSON query :

Code:
16:40:48 T:6632   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist1 entering _getMovies method, take 0.319s
16:40:51 T:6632   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist1 JSON query take 5.158s
16:40:51 T:6632   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist1 reading JSON query take 5.163s
16:40:51 T:6632   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist1 populating properties take 5.369s
16:40:51 T:6632   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist1 started at 2013-09-20 16:40:46 and take 5.376s

16:40:46 T:3008   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist2 entering _getMovies method, take 0.370s
16:40:52 T:3008   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist2 JSON query take 5.739s
16:40:52 T:3008   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist2 reading JSON query take 5.744s
16:40:52 T:3008   DEBUG: Random and Last items script: ##### PlaylistRandomMovieSmartPlaylist2 populating properties take 5.940s
16:40:52 T:3008   DEBUG: Random and Last items script: Loading PlaylistRandomMovieSmartPlaylist2 started at 2013-09-20 16:40:46 and take 5.952s

Times are cumulative, so for smart playlist 1, it took 0.319 sec for script start to enter _getMovie method and 5.158 sec from script start to retrieve result from JSON query :

Code:
_json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "video", "properties": ["title", "originaltitle", "playcount", "year", "genre", "studio", "country", "tagline", "plot", "runtime", "file", "plotoutline", "lastplayed", "trailer", "rating", "resume", "art", "streamdetails", "mpaa", "director", "dateadded"]}, "id": 1}' %(PLAYLIST))

So I think that you will have to deal with it. So reduce smart playlists number declared in Aeon Nox playlist manager to reduce number of time script is called.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#15
thanks for the help.

I thought if I had the main menu buttons disabled, and thought that the playlists wouldn't run.
I have playlists for
1. Movies up to 1970
2. Movies 1970 and up
3. Movies
4. Best Picture
5 Oscar

so maybe I'll try to get rid of the first two, .. .and see what happens..

thanks again man!
Legion


PS ...
OK I took out most of the playlists ,... left in Top250 only ...
rebooted,... still took over a minute to run Programs / Openelec Configuration., and show live dvd cases.

here's the new log file, if you have the time ,... thanks again, much appreciated!
http://www.treasure-cove.net/xbmclognew.zip

Legion
Reply

Logout Mark Read Team Forum Stats Members Help
Live DVD Cases taking over a minute to appear :(0