2014-12-17, 13:41
Hi Phil, I have what seems to be a bug. I have a dynamic list of topartists using a content tag.
Not every single time... but I would say 80 percent of the time... after a fresh startup of Kodi and then starting up my addon, I'm getting the error below and my list doesn't load. It only seems to happen once and only after first starting up Kodi and then opening the addon.
After the first initial error, as long as I haven't restarted Kodi the error doesn't happen again... even when exiting the addon and restarting the addon. When I do get the error after starting Kodi... if I back out of the addon and then restart the addon all is fine and the list loads as expected.
Not every single time... but I would say 80 percent of the time... after a fresh startup of Kodi and then starting up my addon, I'm getting the error below and my list doesn't load. It only seems to happen once and only after first starting up Kodi and then opening the addon.
After the first initial error, as long as I haven't restarted Kodi the error doesn't happen again... even when exiting the addon and restarting the addon. When I do get the error after starting Kodi... if I back out of the addon and then restart the addon all is fine and the list loads as expected.

PHP Code:
03:16:24 T:4964 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'simplejson.scanner.JSONDecodeError'>
Error Contents: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 488, in <module>
Main()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 41, in __init__
self._StartInfoActions()
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py", line 96, in _StartInfoActions
passListToSkin('TopArtists', GetTopArtists(), self.prop_prefix, self.window, self.control, self.handle, self.limit)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\resources\lib\LastFM.py", line 156, in GetTopArtists
results = Get_JSON_response(base_url + "method=chart.getTopArtists&limit=100")
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.extendedinfo-master\resources\lib\Utils.py", line 554, in Get_JSON_response
prop = simplejson.loads(homewindow.getProperty(hashed_url))
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.module.simplejson\lib\simplejson\__init__.py", line 488, in loads
return _default_decoder.decode(s)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.module.simplejson\lib\simplejson\decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.module.simplejson\lib\simplejson\decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.module.simplejson\lib\simplejson\scanner.py", line 119, in scan_once
return _scan_once(string, idx)
File "C:\Users\Woodside\AppData\Roaming\Kodi\addons\script.module.simplejson\lib\simplejson\scanner.py", line 84, in _scan_once
raise JSONDecodeError(errmsg, string, idx)
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-->End of Python script error report<--
03:16:24 T:7184 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.extendedinfo/?info=topartists