PVR Window Troubleshooting
#1
I'm currently working on the layout for the PVR section of my skin and I'm running into an issue with load time. The first time I launch ActivateWindow(TVChannels) it takes about 10-15 seconds to load. I can click on the back button or reload the skin and the page loads fine immediately but after about 30 seconds, I get the same 10-15 second load time.

I've looked into the log and can't see any reason for the 10-15 second load time.

It doesn't happen for the movie/tv library windows but does for all of the PVR windows and actions like ActivateWindow(Videos,sources://video/,return).

I started with the Confluence skin in Kodi V19.4.

What is the best way to troubleshoot this issue? Is there an add-on that could be impacting this?

Thanks for any help.
Reply
#2
Don't know, but it seems like if the pvr manager is not running that can hold up the whole app.  Try running just the demo pvr addon first.

scott s.
.
Reply
#3
Thanks Scott. I tried but that didn't fix my issue. 

I ended up uninstalling Kodi and starting from scratch and that has fixed the issue.

I'll post something here if I find out what was causing the issue as I get things back to the way they were.
Reply
#4
Interesting, Iv'e noticed a similar issue recently but with the videos and music windows where I get that delay on first load, even with all the code and animations stripped out. I may try a clean install and see if that fixes it
Reply
#5
So, when I do a fresh install on my Windows PC, install just the PVR and point it to an m3u and epg.xml, it loads everything as it should. I can go back and forth between menus and go back to channels or files and there is no delay. 

As soon as I exit Kodi and launch it again, I see the issue where it takes a good 15 seconds to load anything in the Live TV Section. I can load TV >> Channels, hit the back button and go back into it for the next 30 seconds but right around the 30 second mark is when I start to see an issue. I go into Channels (or Guide or Videos >> Files) and it takes 15 seconds to load.

I am using the Estuary skin (but see it in other skins as well), with nothing more than the IPTV Simple client installed.
Reply
#6
How many channels are in your m3u?
Reply
#7
530 channels but I've tried it with just 7 channels and it still has the same issue.

If I'm also having the same issue with opening Videos >> Files is that an indication for something else causing the issue?
Reply
#8
(2022-07-12, 21:45)Doctor Eggs Wrote: 530 channels but I've tried it with just 7 channels and it still has the same issue.

If I'm also having the same issue with opening Videos >> Files is that an indication for something else causing the issue?


If it happens with other windows, then it is most probably not a problem caused by Kodi PVR (or PVR addon) code.
Reply
#9
First, just want to say thank you to everyone that tried to help. It turns out that this was an issue with my setup. 

I recently physically removed a network drive from my network but still had it mapped in Windows. Once I disconnected the network drive, everything works as expected.

Sorry for wasting peoples time, but ultimately it helped me resolve the issue. Thanks again!
Reply
#10
I'm having another issue with MyPVRChannels.xml

I changed the scroll bar from vertical to horizontal with the layout I have. I'm looking to put the focus <ondown> to a button on the page but I can't seem to get it to work. The button will get focus <onleft>, <onright>, <onup> but for some reason, <ondown> doesn't seem to work.

Has anyone else run into this issue? And is there a way to fix it?
Reply
#11
Are you sharing IDs across different scrollbars? That can cause issues if your visibility conditions are conflicting with one another or if you're on Nexus (due to a change in rendering transparent items that I believe is in the process of being rolled back).
Reply
#12
I'm not on Nexus yet. I'm working in Matrix.

It seems that no matter what I put in for <onup> and <ondown> I can't change it. I've changed the id for the scrollbar to something that isn't used (id="12340000") as well as the button I want to focus (id="610000") and it still doesn't work.

Here is what I have for the chunk of code that isn't working (with a lot of things removed just so this post isn't insanely long):

xml:

            <control type="grouplist">
                <left>0</left>
                <top>0</top>
                <width>1920</width>
                <height>1080</height>
                <usecontrolcoords>true</usecontrolcoords>
                <include>VisibleFadeEffect</include>
                <control type="panel" id="50">
                    <left>105</left>
                    <top>200</top>
                    <width>1815</width>
                    <height>600</height>
                    <onleft>50</onleft>
                    <onright>50</onright>
                    <onup>50</onup>
                    <ondown>12340000</ondown>
                    <viewtype label="31034">bigwrap</viewtype>
                    <orientation>horizontal</orientation>
                    <pagecontrol>12340000</pagecontrol>
                    <scrolltime>200</scrolltime>
                    <itemlayout width="251" height="160">
                        <control type="image">
                            <left>40</left>
                            <top>30</top>
                            <width>250</width>
                            <height>141</height>
                            <bordersize>1</bordersize>
                            <texture>$VAR[IconPVRForced]</texture>
                            <aspectratio scalediffuse="false">keep</aspectratio>
                            <colordiffuse>CCFFFFFF</colordiffuse>
                        </control>
                        <control type="progress">
                            <description>Progressbar</description>
                            <left>41</left>
                            <top>-10r</top>
                            <width>248</width>
                            <height>18</height>
                            <colordiffuse>ffFFFFFF</colordiffuse>
                            <texturebg colordiffuse="FF000000">black-back.png</texturebg>
                            <midtexture colordiffuse="FFFFFFFF">black-back.png</midtexture>
                            <visible>ListItem.HasEpg</visible>
                            <info>ListItem.Progress</info>
                        </control>
                        <control type="label">
                            <left>46</left>
                            <top>-7r</top>
                            <width>244</width>
                            <height>20</height>
                            <font>font10</font>
                            <textcolor>grey</textcolor>
                            <selectedcolor>selected</selectedcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout width="270" height="288">
                        <control type="image">
                            <depth>DepthContentPopout</depth>
                            <left>5</left>
                            <top>8</top>
                            <width>330</width>
                            <height>182</height>
                            <texture>$VAR[IconPVRForced]</texture>
                            <aspectratio scalediffuse="false">keep</aspectratio>
                        </control>
                        <control type="progress">
                            <description>Progressbar</description>
                            <left>5</left>
                            <top>100r</top>
                            <width>330</width>
                            <height>18</height>
                            <colordiffuse>ffFFFFFF</colordiffuse>
                            <texturebg colordiffuse="FF000000">black-back.png</texturebg>
                            <midtexture colordiffuse="FFFFFFFF">black-back.png</midtexture>
                            <visible>ListItem.HasEpg</visible>
                            <info>ListItem.Progress</info>
                        </control>
                        <control type="label">
                            <left>10</left>
                            <top>120r</top>
                            <width>330</width>
                            <height>20</height>
                            <font>font10</font>
                            <textcolor>grey</textcolor>
                            <selectedcolor>selected</selectedcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                    </focusedlayout>
                </control>
                <control type="scrollbar" id="12340000">
                    <left>140</left>
                    <top>-50</top>
                    <width>1640</width>
                    <height>25</height>
                    <texturesliderbackground border="14,0,14,0">ScrollBarH.png</texturesliderbackground>
                    <texturesliderbar border="14,0,14,0">ScrollBarH_bar.png</texturesliderbar>
                    <texturesliderbarfocus border="14,0,14,0">ScrollBarH_bar_focus.png</texturesliderbarfocus>
                    <textureslidernib>ScrollBarNib.png</textureslidernib>
                    <textureslidernibfocus>ScrollBarNib.png</textureslidernibfocus>
                    <onup>610000</onup>
                    <ondown>610000</ondown>
                    <onright>610000</onright>
                    <onleft>610000</onleft>
                    <showonepage>false</showonepage>
                    <orientation>horizontal</orientation>
                </control>
                <control type="label">
                    <depth>DepthFooter</depth>
                    <animation effect="slide" start="0,0" end="-90,0" time="0" condition="system.getbool(input.enablemouse)">Conditional</animation>
                    <description>Page Count Label</description>
                    <right>40</right>
                    <top>53r</top>
                    <width>500</width>
                    <height>20</height>
                    <font>font12</font>
                    <textcolor>grey</textcolor>
                    <scroll>false</scroll>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>($INFO[Container(50).NumItems]) $LOCALIZE[19019] - $LOCALIZE[31024] ($INFO[Container(50).CurrentPage]/$INFO[Container(50).NumPages])</label>
                    <include>Window_OpenClose_Animation</include>
                </control>
            </control>
Reply
#13
hmmm, the only thing I can think that sometimes works for me and I don't really know why is using SetFocus(61000) instead of just the ID.

<onup>SetFocus(61000)</onup>
Reply
#14
Thanks for the suggestion and I'll keep that in mind going forward if I get stuck. Ultimately it didn't fix my issue but I figured it out.

In an effort to make things similar to the layout I have on my TV/Movie Library layouts, I put the <control type="grouplist"> around the control. As soon as I removed it, I was able to assign <onup>, <ondown>, etc. It messed up the positioning for a bunch of the other items on that view but fixed the <onup>, <ondown> issue I was having which is much more important.

Thanks again for your help.
Reply
#15
Ahh I see. Does it work with the grouplist in place if you give the grouplist control an ID as well?
Reply

Logout Mark Read Team Forum Stats Members Help
PVR Window Troubleshooting0