2015-08-25, 23:00
HI all,
I'm using Kodi in my store to have a slideshow with my RSS feed always running and every 5 minutes it sholud switch to weather page then back to home.
To archive it I've added my autoexec.py on my .kodi/userdata/ folder with:
It's working fine even after hours and hours, but when I close it Kodi hangs and even if I kill it the window stay here.
My debug kodi.log: http://xbmclogs.com/psgwxomo8
My debug kodi.old.log: http://xbmclogs.com/pqpkhvxgk
I've tried to run it as a service, with:
- Addon.xml:
- Service.py:
But is the same.
If I remove this customization Kodi works just fine. Please note is not a skin problem because it hangs with every skin I've tried.
Any clue?
Update: Kodi close itself after half an hour. O_o
I'm using Kodi in my store to have a slideshow with my RSS feed always running and every 5 minutes it sholud switch to weather page then back to home.
To archive it I've added my autoexec.py on my .kodi/userdata/ folder with:
Code:
import xbmc, time
xbmc.executebuiltin('XBMC.ActivateWindow(weather)')
time.sleep(10)
xbmc.executebuiltin('XBMC.ActivateWindow(home)')
def slide():
time.sleep(300)
xbmc.executebuiltin('XBMC.ActivateWindow(weather)')
time.sleep(10)
xbmc.executebuiltin('XBMC.ActivateWindow(home)')
while True:
slide()
It's working fine even after hours and hours, but when I close it Kodi hangs and even if I kill it the window stay here.
My debug kodi.log: http://xbmclogs.com/psgwxomo8
My debug kodi.old.log: http://xbmclogs.com/pqpkhvxgk
I've tried to run it as a service, with:
- Addon.xml:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.program.divina.setup" name="Divina Setup" version="1.0.0" provider-name="Federico Leoni">
<requires>
<import addon="xbmc.python" version="2.14.0"/>
</requires>
<extension point="xbmc.service" library="service.py" start="startup" />
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<summary lang="en"></summary>
</extension>
</addon>
- Service.py:
Code:
import xbmc, time
if __name__ == '__main__':
monitor = xbmc.Monitor()
while True:
if monitor.waitForAbort(10):
break
time.sleep(10)
xbmc.executebuiltin('XBMC.ActivateWindow(weather)')
time.sleep(10)
xbmc.executebuiltin('XBMC.ActivateWindow(home)')
def slide():
time.sleep(300)
xbmc.executebuiltin('XBMC.ActivateWindow(weather)')
time.sleep(10)
xbmc.executebuiltin('XBMC.ActivateWindow(home)')
while True:
slide()
But is the same.
Code:
18:45:04 T:140672535173056 ERROR: CPythonInvoker(3, /home/effe/.kodi/addons/service.divina.setup/service.py): script didn't stop in 5 seconds - let's kill it
If I remove this customization Kodi works just fine. Please note is not a skin problem because it hangs with every skin I've tried.
Any clue?
Update: Kodi close itself after half an hour. O_o