Widgets dont load at startup
#1
Im Huntigng this bug now for a while and start to get sick of it.

I try already several things but still the Same Problem!!

Could it be a Bug?

the Problem only exist for "multiwitgets" the default Widgets work as they shuld (both use the same Code base)

Here the Code for The "Movie" multiwidget.
(I did the Widget twice with two different Codestructure, here is the one which is based on "Estuary" Code for the "vertical Layout")

PHP Code:
<!-- Widget Movies (Multiwidget) -->
        <
control type="grouplist" id="9002">
            <
orientation>vertical</orientation>
            <
left>605</left>
            <
top>170</top>
            <
height>785</height>
            <
scrolltime tween="cubic" easing="out">500</scrolltime>
            <
itemgap>0</itemgap>
            <
visible>[StringCompare(Container(9000).ListItem.Property(Widget),MoviesWidgetMulti) + !Skin.HasSetting(DontUseShortcutScriptToPopulateHomeMenu)] | [Container(9000).HasFocus(8) + Skin.HasSetting(DontUseShortcutScriptToPopulateHomeMenu)]</visible>
            
            <!-- 
Recently Added Movies -->
            <include 
name="WidgetLayoutAll">
                <
param name="widget_header" value="$LOCALIZE[31037] $LOCALIZE[20342]"/>
                <
param name="Widgetcontent_path" value="videodb://movies/titles/"/>
                <
param name="widgetcontent_target" value="videos"/>
                <
param name="widgetcontent_sortby" value="dateadded"/>
                <
param name="widgetcontent_sortorder" value="descending"/>
                <
param name="Widgetlist_id" value="9020"/>
                <
param name="Widgetonup_id" value="noop"/>
                <
param name="Widgetondown_id" value="9021"/>
                <
param name="Widgetlist_height" value="390"/>
                <
param name="Widgetlist_visible" value="true"/>  <!-- [IntegerGreaterThan(Container($PARAM[Widgetlist_id]).NumItems,0) | Container($PARAM[Widgetlist_id]).IsUpdating] -->
            </include>
            <!-- 
Random Movies -->
            <include 
name="WidgetLayoutAll">
                <
param name="widget_header" value="$LOCALIZE[31038] $LOCALIZE[20342]"/>
                <
param name="Widgetcontent_path" value="videodb://movies/titles/"/>
                <
param name="widgetcontent_target" value="videos"/>
                <
param name="widgetcontent_sortby" value="random"/>
                <
param name="widgetcontent_sortorder" value="descending"/>
                <
param name="Widgetlist_id" value="9021"/>
                <
param name="Widgetonup_id" value="9020"/>
                <
param name="Widgetondown_id" value="9022"/>
                <
param name="Widgetlist_height" value="390"/>
                <
param name="Widgetlist_visible" value="true"/>
            </include>
            <!-- 
Recently Watched Movies -->
            <include 
name="WidgetLayoutAll">
                <
param name="widget_header" value="$LOCALIZE[31039] $LOCALIZE[20342]"/>
                <
param name="Widgetcontent_path" value="videodb://movies/titles/"/>
                <
param name="widgetcontent_target" value="videos"/>
                <
param name="widgetcontent_sortby" value="lastplayed"/>
                <
param name="widgetcontent_sortorder" value="descending"/>
                <
param name="Widgetlist_id" value="9022"/>
                <
param name="Widgetonup_id" value="9021"/>
                <
param name="Widgetondown_id" value="9023"/>
                <
param name="Widgetlist_height" value="390"/>
                <
param name="Widgetlist_visible" value="true"/>
            </include>
            <!-- 
Unwatched Movies -->
        
        </
control

it doesnt make a difference HOW i code the Widgets! As soon its a pregiven or Custom "multiwidget" it simply dont load on startup!

As soon as i reload the Skin the Widgets are there instantly. Also if i switch from a other Skin to "Lucid" there isnt a Problem. Widgets load without any problem.



Realy out off Ideas What could cause this, start to get sick of this ¬§°°¬°¢¬ (peep)

first i did thouth it could have something to do with the way how the thumbsice is set (DBID) but it wasnt.


Out off Ideas!
Reply
#2
why?


i tryed everything i can think of!!!!!!!!!!!!!!!!!!!!!!!!

1st: I did load the Widgets without the shortcut script, to be shure the script isnt the issue ("Controll(9000).HasFocus(10)") -> didnt change anything!

2nd: I deleted the Conditions in the Listitems (DBID) to be shure this isnt the Problem -> didnt change anything!

3rd: I deleted all others so that only one Widgetentry (recently added) needs to be Loaded -> noop, no sucess!

4rd: i coded the widgets new with the option to choose a "single" Widget from the overrides.xml -> no sucess

5th: hide the weather Widget as this needs sometime longer to load (but it loads at least, not like the DB widgets!) -> didnt help!

6th: Replace the DB Paths with Smartplaylists (special://...) -> noop

7th: Disable the Startup Video -> noop

8th: did more than twice spellcheck every Single line! -> wasnt able to finde a single mistake.


So why the f*** does Kodi behave like thisHuh?

I waste already to many houers on this!


As alredy told: a "ReloadSkin" after Startup as soon as the Homescreen is present and the Background image is loaded brings up the Widgets!

If i dont do a "reload Skin" they stay Empty, no mather what i do (Vertical Layout) -> they load in the Horizontal after getting Focus.)



So why does Kodi behave like this?? (anyting i shuld knew??)

Is this at the End a Kodi problem (Bug?), and i cant do anything against it?

would realy like to knew!


Or is it a Skincode Problem??


What i ask myself is: why do the Widgets load after a "Reload Skin", or if i chanchge from a other Skin to Lucid again, but not on startup (after boot)?

for me this means theres everithing o.k. with the Skincode.


And by the Way, there isnt A SINGLE Skinrelated Error in the Debug Log.

-

So please if someone Skilled could thake a Look at this issue/the Skincode would be nice.

i attatch the two relevant .xmls just in case. EDIT: O.K. cant attatch them so here ist the Includesfile on Pastebin -> Link (Or simply load the Skin.) /EDEITEND


(the problem are only the Widgets which are Set like this: "StringCompare(Container(9000).ListItem.Property(Widget),****WidgetMulti)" -> Multiwidget.)
Reply
#3
Do you have anything when loading the home screen which loads another window/the video player before the widgets have had a chance to load? If so, this could be a case of what I think as dynamically lists getting stalled when they're interrupted when loading - see trac 16635.
Reply
#4
(2016-09-28, 19:38)BobCratchett Wrote: Do you have anything when loading the home screen which loads another window/the video player before the widgets have had a chance to load?

jer, i load a Introvideo right from "startup.xml"

--

your right!

disable the Startup Video solves the Issue!!

DAm! and i wast so much time!, hunting this §|¬§|¬§|


Thanks for letting me knew.
Reply

Logout Mark Read Team Forum Stats Members Help
Widgets dont load at startup0