NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 … 39 40 41 42 43 Next »
NPVR addon slow startup?

 
  • 0 Vote(s) - 0 Average
NPVR addon slow startup?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2012-10-08, 10:20 PM
sorry if this has been mentioned, did a quick search for "slow" but didnt find anything.

ive tried on several clients/platforms
- raspberrypi with raspbmc rc5
- normal pc running openelec
- windows 7

on all of these clients it takes a long time for the PVR addon to start, it has that loading message in the top right corner. seems to take about 30 seconds or more.

when using 4tr this takes a couple of seconds.

can something be done to improve this? when you need to reboot your computer because of experimental xbmc releases, and you're in the middle of a show, you tend to miss quite a bit with this extra delay.

thought it might be IIS compiling/loading the DLLs into memory... sometimes that can take a while...
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#2
2012-10-08, 10:31 PM
I have certainly noticed xbmc being slow to load. I'm not sure it's related to the nextpvr addon though. XBMC seems to be less than optimized, and queries all sorts of group and channel info at startup, and its pretty slow. It probably doesn't help that NextPVR delivers that info as xml, which will mean some extra parsing time on the client, but this wont add up to anything too significant.

What messages are taking the most time in the top right?

Quote:thought it might be IIS compiling/loading the DLLs into memory... sometimes that can take a while...
No, I dont think it's in there anywhere. NextPVR responds to requests from the xbmc addon usually within milliseconds.

I do remember seeing a couple of posts on the xbmc forums recently suggesting changes to xbmc developer to speed up the channel loading at startup, so I dont think it's solely a nextpvr addon issue.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#3
2012-10-08, 10:31 PM
Can you post your xbmc.log? I'll check how long the channel loading stage is taking.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2012-10-08, 10:35 PM
its during the initial loading pvr addon message, once it gets to the loading channels its fairly quick.

sorry i cant remember off the top of my head ill investigate further tonight and post some logs.

all up nextpvr takes about 1 minute or so to have live tv completely loaded for me, whereas 4tr was ready in about 10 seconds.

just been reading xbmc forums, this may be a problem inside xbmc itself, seems some changes to the API might be the cause, ill try 4tr on the same build and share results.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2012-10-08, 10:37 PM
out of curiosity what are you using to open up the api requests? wcf? iis? another webserver? and could you change that to respond in json? (would make the epg data a lot smaller and help on low end clients like the pis with limited memory)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#6
2012-10-08, 10:47 PM
reven Wrote:out of curiosity what are you using to open up the api requests? wcf? iis? another webserver?
It's using the built in web server. That web server uses the .NET hosting classes for processing ASP.NET for the build in ASP.NET based NEWA. This stuff doesn't going into those classes though, and is handled directly by classes that hook certain URL requests.

Quote:and could you change that to respond in json?
To be honest, I probably wont. The interface that I'm using from the addon (which returns xml) already exists for another purpose, and needs to stay xml. I could create a json set of interfaces that lives alongside it, but I dont think it'd worth the effort. It'd be marginally faster, and marginally less memory, but would mean double maintainence for me.

I dont think this significant factor in how long it's taking to load for you. If you post the xbmc.log then I should be able to check where the time is going.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2012-10-08, 10:51 PM
ok, thought it might be as simple as adding a method attribute or endpoint for json, .net stuff usually makes supporting xml and json pretty easy together.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#8
2012-10-08, 10:51 PM
reven Wrote:its during the initial loading pvr addon message, once it gets to the loading channels its fairly quick.

sorry i cant remember off the top of my head ill investigate further tonight and post some logs.
You'll need to check. I dont remember seeing any message about loading the addon. Mine goes straight to 'loading channels from clients' then wastes a fair bit of time querying channel groups and memberships for each group, and deleting and recreating the channel groups in the xbmc database, then after that is very quick to load the EPG (after the the first run which needs to pull in everything).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#9
2012-10-08, 10:52 PM
reven Wrote:ok, thought it might be as simple as adding a method attribute or endpoint for json, .net stuff usually makes supporting xml and json pretty easy together.
Nope.
JP23
Offline

Senior Member

Posts: 405
Threads: 98
Joined: Oct 2007
#10
2012-10-09, 08:00 AM
Not sure if this is of any help, but I've also been using the VU+ addon with my Dreambox, and it has the following optional feature, which could potentially speed things up:

Quote:Folder for channeldata: Retrieving the channel data from the backend can take quite long. To avoid that the user has to wait a long time before the addon starts it stores the information about the available channels in a separate XML file. Instead of quering the backend the addon then tries to load the channels from this XML file during addon startup. This property defines into which directory this XML file will be put. The filename is "channeldata.xml"
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automated Updates of IPTV Channels in NPVR and Kodi via APIs taylormia 1 871 2025-02-04, 03:13 AM
Last Post: lustfulmacaw
  Kodi Addon Failure 19.0.4 Luke86 4 1,644 2022-10-22, 03:33 AM
Last Post: Luke86
  Kodi NextPVR PVR Client Addon solfanboy 11 3,619 2022-07-11, 08:51 PM
Last Post: mvallevand
  NextPVR addon: session.login failed spagio 3 3,565 2022-04-30, 05:47 PM
Last Post: mvallevand
  Suddenly no Kodi/NPVR in the house? EleanorWyatt 1 1,108 2021-06-16, 12:20 PM
Last Post: BrettB
  Audio/Video out of sync on newest kodi & NPVR rosede 7 3,516 2021-03-25, 01:04 PM
Last Post: mvallevand
  Kodi cant connect to NPVR if left dormant for a few hours... gdogg371 4 1,743 2021-03-14, 11:49 AM
Last Post: gdogg371
  Kodi NPVR v5 crashing Lao Pan 7 2,502 2021-03-07, 03:32 PM
Last Post: mvallevand
  'TV' tab on Kodi startup? digidad 6 2,482 2021-02-21, 10:28 PM
Last Post: digidad
  Where is the Kodi NPVR addon timeline duration stored? Lao Pan 4 1,622 2021-01-11, 10:19 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode