Weird bug on Kodi 16 - Jarvis
#1
Hey friends,

Everytime i call alarmclock function for open a window my Kodi get stuck in black screen.
That wasn't happening on Isengard only using Jarvis.

Here is the code:
Code:
<item id="198" description="פריסת כפתורים">
        <label>$LOCALIZE[31117]</label>
        <label2>$VAR[198label2]</label2>
        <thumb>special://home/addons/script.featherence.service/resources/icons/ofx.png</thumb>
        <property name="rinfo">$LOCALIZE[31116]</property>
        <onclick condition="!Skin.String(MenuDesign)">Skin.SetString(MenuDesign,0)</onclick>
        <onclick condition="Skin.String(MenuDesign,0)">Skin.SetString(MenuDesign,1)</onclick>
        <onclick condition="Skin.String(MenuDesign,1)">Skin.SetString(MenuDesign,2)</onclick>
        <onclick condition="Skin.String(MenuDesign,2)">Skin.SetString(MenuDesign,3)</onclick>
        <onclick condition="Skin.String(MenuDesign,3)">Skin.SetString(MenuDesign,4)</onclick>
        <onclick condition="Skin.String(MenuDesign,4)">Skin.SetString(MenuDesign,)</onclick>
        <onclick>Close</onclick>
        <onclick>Close</onclick>
        <onclick>ActivateWindow(1117)</onclick>
                <onclick>AlarmClock(1173,ActivateWindow(1173),0,silent)</onclick>
        <visible>Container(100).Hasfocus(20)</visible>
      </item>

The AlarmClock(1173,ActivateWindow(1173),0,silent) is the line which seem to cause the bug.

The current window issuing the code above is:
Code:
<window type="dialog" id="1173">
Reply
#2
Hmmm, why setting timer to 0 ? Not sure 0 works.

What about :

Code:
<onclick>ActivateWindow(home)</onclick>

?
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#3
From the wiki (http://kodi.wiki/view/Kodi_Skinning_Manu...of_Windows):

Quote:ActivateWindow() should use the Window name.
So ActivateWindow(0) should read ActivateWindow(home)

Also, why set the time to 0?:

Quote:AlarmClock(name,command,time[,silent,loop]):

Pops up a dialog asking for the length of time for the alarm (unless the parameter time is specified), and starts a timer. When the timer runs out, it'll execute the built-in command (the parameter command) if it is specified, otherwise it'll pop up an alarm notice. Add silent to hide the alarm notification. Add loop for the alarm to execute the command each time the specified time interval expires
.
Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
Reply
#4
Thank you for yours quick replys.

I updated the first post with more information.
Reply
#5
<onclick>ActivateWindow(1117)</onclick>
<onclick>AlarmClock(1173,ActivateWindow(1173),0,silent)</onclick>


I guess activating two windows at the same time isn't a good idea? Wink
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#6
(2016-02-25, 17:45)sualfred Wrote: <onclick>ActivateWindow(1117)</onclick>
<onclick>AlarmClock(1173,ActivateWindow(1173),0,silent)</onclick>


I guess activating two windows at the same time isn't a good idea? Wink

Was about to say the same thing. Moreover and if absolutely needed to launch a second window, best is to set a property before opening the first window, remove the alarmclock in the above code, add the second window alarmclock at first window <onload condition="Window(home).Property(2ndWinLaunch)">, then clear the property at second window opening ... (NOT TESTED).
Hard to understand the use of this without the content of each window.
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#7
Please consider that window 1173 must be launched at least 500ms after 1117.
Let me know if you have a solution please (using the skin engine).

I must say i overcome this using python but curious why it's not working anymore.
Code:
xbmc.executebuiltin('Dialog.Close(1173)')
xbmc.executebuiltin('Action(Close)')
xbmc.executebuiltin('ActivateWindow(1117)') ; *xbmc.s#leep(1000)
xbmc.executebuiltin('ActivateWindow(1173)')
*without the #.
Reply

Logout Mark Read Team Forum Stats Members Help
Weird bug on Kodi 16 - Jarvis0