Posts: 16
Joined: Mar 2015
Reputation:
0
tmacca
Junior Member
Posts: 16
Can anybody shed any light on this? When scrolling through the home screen, I get a script error when I reach the 'music' section
(not everytime, but often enough)
22:27:13 T:1762006048 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/service.library.data.provider/default.py", line 567, in <module>
Main()
File "/home/osmc/.kodi/addons/service.library.data.provider/default.py", line 113, in __init__
self.parse_song( 'randomsongs', 32015, full_liz )
File "/home/osmc/.kodi/addons/service.library.data.provider/default.py", line 418, in parse_song
liz.setInfo( type="Music", infoLabels={ "Artist": item['artist'][0] })
IndexError: list index out of range
-->End of Python script error report<--
22:27:13 T:1616503840 ERROR: GetDirectory - Error getting plugin://service.library.data.provider/?type=randomsongs&reload=20150416212341
Posts: 7
Joined: May 2015
Reputation:
0
Hello, did you ever solve your error? I'm getting nearly an identical error every time I access the Music section:
21:15:33 T:6816 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('files',)
Traceback (most recent call last):
File "C:\Users\Deb\AppData\Roaming\Kodi\addons\1service.library.data.provider\default.py", line 567, in <module>
Main()
File "C:\Users\Deb\AppData\Roaming\Kodi\addons\1service.library.data.provider\default.py", line 135, in __init__
for item in json_response["result"]["files"]:
KeyError: ('files',)
-->End of Python script error report<--
21:15:33 T:5076 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://service.library.data.provider/?type=playliststats&id=ActivateWindow(10501,"smb://DEBPC/Users/Public/Deb's Music/",return)
Posts: 7
Joined: May 2015
Reputation:
0
Hi Phil, started having the script error message again. I repeated everything and updated the default.py again; however, whenever I access music (only happens with music), I receive the same script error message (and log) as above. Not sure what is exactly not functioning, or throwing an error, as everything seems okay to me -- the music plays fine, stops, and starts, etc., but I get the script error message. Do you have any other suggestions? Thank you!
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
complete debug log again, please.
Posts: 7
Joined: May 2015
Reputation:
0
Here you go. Please let me know if you need anything else to help with this. Thanks very much! Deb
18:42:29 T:9364 NOTICE: -->Python Interpreter Initialized<--
18:42:30 T:3992 NOTICE: Previous line repeats 1 times.
18:42:30 T:3992 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('resume',)
Traceback (most recent call last):
File "C:\Users\Deb\AppData\Roaming\Kodi\addons\service.library.data.provider\default.py", line 589, in <module>
Main()
File "C:\Users\Deb\AppData\Roaming\Kodi\addons\service.library.data.provider\default.py", line 150, in __init__
if item["resume"]["position"] > 0:
KeyError: ('resume',)
-->End of Python script error report<--
18:42:30 T:2832 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://service.library.data.provider/?type=playliststats&id=ActivateWindow(10502,special://profile/addon_data/script.skinshortcuts/7.xsp,return)
18:42:35 T:8128 NOTICE: Storing total System Uptime
18:42:35 T:8128 NOTICE: Saving settings
18:42:35 T:8128 NOTICE: stop all
18:42:35 T:8128 NOTICE: stop player
18:42:35 T:9820 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 01:14
18:42:35 T:8128 NOTICE: PVRManager - stopping
18:42:36 T:8128 NOTICE: ES: Stopping event server
18:42:36 T:8128 NOTICE: Webserver: Stopping...
18:42:36 T:8128 NOTICE: WebServer: Stopped the webserver
18:42:36 T:8128 NOTICE: Webserver: Stopped...
18:42:37 T:9048 NOTICE: ES: UDP Event server stopped
18:42:37 T:8128 NOTICE: stop sap announcement listener
18:42:37 T:8128 NOTICE: clean cached files!
18:42:37 T:8128 NOTICE: unload skin
18:42:40 T:10072 NOTICE: StorageServer-2.5.4 Closed down
18:42:41 T:9176 WARNING: CPythonInvoker(3, C:\Users\Deb\AppData\Roaming\Kodi\addons\service.library.data.provider\service.py): the python script "C:\Users\Deb\AppData\Roaming\Kodi\addons\service.library.data.provider\service.py" has left several classes in memory that we couldn't clean up. The classes include: class PythonBindings::XBMCAddon_xbmc_Monitor_Director,class XBMCAddon::xbmcgui::Window,class PythonBindings::XBMCAddon_xbmc_Player_Director
Posts: 7
Joined: May 2015
Reputation:
0
Hello, I followed the steps in the "debug log/easy" wiki page and submitted a debug log. It seemed to go okay.
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
If i read the log right, you have playlist statistics enabled for a main menu item that is mapped to a music playlist. Turn off the playlist statistics and the error wont pop up anymore.