[RELEASE] Texture Cache Maintenance utility
Hi,

Kodi is crashing lately when i'm trying to use Texturecache with the qax option (after updating ALL nfo files of my movies - about 1500 files).

The kodi.log isn't really helpful - the last lines:

Quote:17:24:59 475.778198 T:1625822272 DEBUG: Mysql Start transaction
17:24:59 475.778595 T:1625822272 DEBUG: Mysql execute: DELETE FROM streamdetails WHERE idFile = 5151
17:24:59 475.780243 T:1625822272 DEBUG: Mysql execute: INSERT INTO streamdetails (idFile, iStreamType, strVideoCodec, fVideoAspect, iVideoWidth, iVideoHeight, iVideoDuration, strStereoMode) VALUES (5151,0,'h264',2.000000,1280,536,8315,'')
17:24:59 475.781677 T:1625822272 DEBUG: Mysql execute: INSERT INTO streamdetails (idFile, iStreamType, strAudioCodec, iAudioChannels, strAudioLanguage) VALUES (5151,1,'dts',6,'english')
17:24:59 475.782806 T:1625822272 DEBUG: Mysql execute: INSERT INTO streamdetails (idFile, iStreamType, strSubtitleLanguage) VALUES (5151,2,'english')
17:24:59 475.784637 T:1625822272 DEBUG: Previous line repeats 1 times.
17:24:59 475.784821 T:1625822272 DEBUG: Mysql execute: update movie set c11=8315 where idFile=5151 and c11=''
17:24:59 475.786255 T:1625822272 DEBUG: Mysql execute: update episode set c09=8315 where idFile=5151 and c09=''

The last lines of the texturecache log file:

Quote:2015-11-22 17:24:58.495905:MainThread: Rescanning directory: nfs://192.168.48.31/volume2/filme/Flight (2012)...
2015-11-22 17:24:58.496901:MainThread: libRescan.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"directory": "nfs://192.168.48.31/volume2/filme/Flight (2012)", "showdialogs": false}, "method": "VideoLibrary.Scan", "id": "libRescan"}]
2015-11-22 17:24:58.499562:MainThread: libRescan.BUFFER RECEIVED (len 48)
2015-11-22 17:24:58.500551:MainThread: libRescan.PARSING JSON DATA: {"id":"libRescan","jsonrpc":"2.0","result":"OK"}
2015-11-22 17:24:58.501379:MainThread: libRescan.PARSING COMPLETE, elapsed time: 0.000927 seconds
2015-11-22 17:24:58.502135:MainThread: libRescan.PERFORMING CALLBACK: Name [jsonWaitForScanFinished], with Id [libRescan], Method [OK], Params [None]
2015-11-22 17:24:58.502927:MainThread: libRescan.CALLBACK RESULT: [False] Name [jsonWaitForScanFinished], Id [libRescan], Method [OK], Params [None]
2015-11-22 17:24:58.503518:MainThread: libRescan.READING SOCKET UNTIL CALLBACK SUCCEEDS...
2015-11-22 17:24:58.681696:MainThread: libRescan.BUFFER RECEIVED (len 94)
2015-11-22 17:24:58.683496:MainThread: libRescan.PARSING JSON DATA: {"jsonrpc":"2.0","method":"VideoLibrary.OnScanStarted","params":{"data":null,"sender":"xbmc"}}
2015-11-22 17:24:58.684944:MainThread: libRescan.PARSING COMPLETE, elapsed time: 0.001558 seconds
2015-11-22 17:24:58.686483:MainThread: libRescan.PERFORMING CALLBACK: Name [jsonWaitForScanFinished], with Id [None], Method [VideoLibrary.OnScanStarted], Params [{u'data': None, u'sender': u'xbmc'}]
2015-11-22 17:24:58.687828:MainThread: libRescan.CALLBACK RESULT: [False] Name [jsonWaitForScanFinished], Id [None], Method [VideoLibrary.OnScanStarted], Params [{u'data': None, u'sender': u'xbmc'}]
2015-11-22 17:24:58.689007:MainThread: libRescan.READING SOCKET UNTIL CALLBACK SUCCEEDS...
2015-11-22 17:24:59.601251:MainThread: libRescan.BUFFER RECEIVED (len 0)
2015-11-22 17:24:59.601813:MainThread: libRescan.PERFORMING CALLBACK: Name [jsonWaitForScanFinished], with Id [None], Method [System.OnQuit], Params [{'data': -1, 'sender': 'xbmc'}]
2015-11-22 17:24:59.602141:MainThread: libRescan.CALLBACK RESULT: [False] Name [jsonWaitForScanFinished], Id [None], Method [System.OnQuit], Params [{'data': -1, 'sender': 'xbmc'}]
2015-11-22 17:24:59.602655:MainThread: Removing movieid 4922 from media library.
2015-11-22 17:24:59.603051:MainThread: libRemove.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"movieid": 4922}, "method": "VideoLibrary.RemoveMovie", "id": "libRemove"}]
2015-11-22 17:24:59.603669:MainThread: libRemove.BUFFER RECEIVED (len 0)
2015-11-22 17:24:59.604227:MainThread: ERROR: Socket closed prematurely - exiting

I tried texturecache from my NAS device and from my Raspberry Pi itself. The effect is the same. Most of the time, the crash happens after the same amount of files - more or less. It is not always the same file/folder, but the moviename starts with F - you get the idea.

Sometimes - not always - there is another error message in the texturecache.log:

Quote:2015-11-22 16:51:34.087888:MainThread: Removing movieid 3337 from media library.
2015-11-22 16:51:34.088012:MainThread: libRemove.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"movieid": 3337}, "method": "VideoLibrary.RemoveMovie", "id": "libRemove"}]
2015-11-22 16:51:34.119663:MainThread: libRemove.BUFFER RECEIVED (len 111)
2015-11-22 16:51:34.119957:MainThread: libRemove.PARSING JSON DATA: {"jsonrpc":"2.0","method":"VideoLibrary.OnRemove","params":{"data":{"id":3337,"type":"movie"},"sender":"xbmc"}}
2015-11-22 16:51:34.120105:MainThread: libRemove.PARSING COMPLETE, elapsed time: 0.000231 seconds
2015-11-22 16:51:34.120234:MainThread: libRemove.IGNORING NOTIFICATION [{"params": {"data": {"type": "movie", "id": 3337}, "sender": "xbmc"}, "jsonrpc": "2.0", "method": "VideoLibrary.OnRemove"}]
2015-11-22 16:51:34.120322:MainThread: libRemove.READING SOCKET FOR A RESPONSE...
2015-11-22 16:51:34.159240:MainThread: libRemove.BUFFER RECEIVED (len 48)
2015-11-22 16:51:34.159413:MainThread: libRemove.PARSING JSON DATA: {"id":"libRemove","jsonrpc":"2.0","result":"OK"}
2015-11-22 16:51:34.159530:MainThread: libRemove.PARSING COMPLETE, elapsed time: 0.000144 seconds
2015-11-22 16:51:34.159627:MainThread: libRemove.FINISHED, elapsed time: 0.071526 seconds
2015-11-22 16:51:34.159782:MainThread: Rescanning directory: nfs://192.168.48.31/volume2/filme/Foreign Correspondent (1940)...
2015-11-22 16:51:34.159912:MainThread: libRescan.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"directory": "nfs://192.168.48.31/volume2/filme/Foreign Correspondent (1940)", "showdialogs": false}, "method": "VideoLibrary.Scan", "id": "libRescan"}]
2015-11-22 16:51:34.186590:MainThread: libRescan.PERFORMING CALLBACK: Name [jsonWaitForScanFinished], with Id [None], Method [System.OnQuit], Params [{'data': -1, 'sender': 'xbmc'}]
2015-11-22 16:51:34.186751:MainThread: libRescan.CALLBACK RESULT: [False] Name [jsonWaitForScanFinished], Id [None], Method [System.OnQuit], Params [{'data': -1, 'sender': 'xbmc'}]
2015-11-22 16:51:34.186952:MainThread: Removing movieid 3338 from media library.
2015-11-22 16:51:34.187080:MainThread: libRemove.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"movieid": 3338}, "method": "VideoLibrary.RemoveMovie", "id": "libRemove"}]
ERROR:root:** Terminating due to unexpected exception **
Traceback (most recent call last):
File "./texturecache.py", line 8413, in <module>
main(sys.argv[1:])
File "./texturecache.py", line 8225, in main
extraFields=_extraFields, query=_query)
File "./texturecache.py", line 4568, in jsonQuery
qaData(mediatype, jcomms, database, data, title_name, id_name, rescan)
File "./texturecache.py", line 5257, in qaData
jcomms.rescanDirectories(workItems)
File "./texturecache.py", line 2531, in rescanDirectories
self.sendJSON(REQUEST, "lib%s" % method)
File "./texturecache.py", line 2191, in sendJSON
jsocket.send(json.dumps(request))
error: [Errno 32] Broken pipe
Reply
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by theowiesengrund - 2015-11-22, 18:51
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility4.7617