"GetDirectory - Error getting" Data corruption?

Hi all
This is the extract from the log:

14:45:00.392 T:1279259632 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/plugin.video.arte_tv/default.py”, line 379, in
playLiveStream()
File “/home/osmc/.kodi/addons/plugin.video.arte_tv/default.py”, line 298, in playLiveStream
listitem = xbmcgui.ListItem(path=match[0][0] + match[0][1] + " swfUrl=http://www.arte.tv/flash/mediaplayer/mediaplayer.swf live=1 swfVfy=1")
IndexError: list index out of range
–>End of Python script error report<–
14:45:00.607 T:1958989824 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.arte_tv/?url=&mode=playLiveStream]
14:45:35.680 T:1958989824 ERROR: Control 50 in window 10025 has been asked to focus, but it can’t
14:45:35.711 T:1304425456 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder
14:45:35.711 T:1304425456 NOTICE: LoadJpeg: unable to load special://skin/extras/moviegenres/Default.jpg
14:45:38.758 T:1279259632 ERROR: Traceback (most recent call last):
14:45:38.759 T:1279259632 ERROR: File “/home/osmc/.kodi/addons/plugin.video.FranceTVPluzz/default.py”, line 417, in
14:45:38.760 T:1279259632 ERROR: FranceTVPluzz()
14:45:38.760 T:1279259632 ERROR: File “/home/osmc/.kodi/addons/plugin.video.FranceTVPluzz/default.py”, line 245, in init
14:45:38.761 T:1279259632 ERROR: zf = zipfile.ZipFile(CATALOG_PATH)
14:45:38.761 T:1279259632 ERROR: File “/usr/lib/python2.7/zipfile.py”, line 770, in init
14:45:38.764 T:1279259632 ERROR: self._RealGetContents()
14:45:38.764 T:1279259632 ERROR: File “/usr/lib/python2.7/zipfile.py”, line 811, in _RealGetContents
14:45:38.765 T:1279259632 ERROR: raise BadZipfile, “File is not a zip file”
14:45:38.765 T:1279259632 ERROR: BadZipfile: File is not a zip file
14:45:39.028 T:1958989824 ERROR: GetDirectory - Error getting plugin://plugin.video.FranceTVPluzz/?cat&iconimage=%2fhome%2fosmc%2f.kodi%2faddons%2fplugin.video.FranceTVPluzz%2fresources%2fmedia%2flive.png&mode=100&name=Directs&url=message_FT.json
14:45:39.031 T:1958989824 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.FranceTVPluzz/?cat&iconimage=%2fhome%2fosmc%2f.kodi%2faddons%2fplugin.video.FranceTVPluzz%2fresources%2fmedia%2flive.png&mode=100&name=Directs&url=message_FT.json) failed
14:45:50.746 T:1279259632 WARNING: Attempt to use invalid handle 18
14:45:56.870 T:1279259632 WARNING: Previous line repeats 1 times.
14:45:56.870 T:1279259632 ERROR: Traceback (most recent call last):
14:45:56.870 T:1279259632 ERROR: File “/home/osmc/.kodi/addons/plugin.video.FranceTVPluzz/default.py”, line 417, in
14:45:56.872 T:1279259632 ERROR: FranceTVPluzz()
14:45:56.872 T:1279259632 ERROR: File “/home/osmc/.kodi/addons/plugin.video.FranceTVPluzz/default.py”, line 245, in init
14:45:56.872 T:1279259632 ERROR: zf = zipfile.ZipFile(CATALOG_PATH)
14:45:56.872 T:1279259632 ERROR: File “/usr/lib/python2.7/zipfile.py”, line 770, in init
14:45:56.875 T:1279259632 ERROR: self._RealGetContents()
14:45:56.876 T:1279259632 ERROR: File “/usr/lib/python2.7/zipfile.py”, line 811, in _RealGetContents
14:45:56.876 T:1279259632 ERROR: raise BadZipfile, “File is not a zip file”
14:45:56.876 T:1279259632 ERROR: BadZipfile: File is not a zip file
14:45:57.139 T:1958989824 ERROR: GetDirectory - Error getting plugin://plugin.video.FranceTVPluzz/?cat&iconimage=%2fhome%2fosmc%2f.kodi%2faddons%2fplugin.video.FranceTVPluzz%2fresources%2fmedia%2flive.png&mode=100&name=Directs&url=message_FT.json
14:45:57.142 T:1958989824 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.FranceTVPluzz/?cat&iconimage=%2fhome%2fosmc%2f.kodi%2faddons%2fplugin.video.FranceTVPluzz%2fresources%2fmedia%2flive.png&mode=100&name=Directs&url=message_FT.json) failed
14:46:11.331 T:1304425456 ERROR: DoWork - Direct texture file loading failed for resource://resource.images.studios.white/
14:46:13.847 T:1247802352 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/plugin.video.arte_tv/default.py”, line 379, in
playLiveStream()
File “/home/osmc/.kodi/addons/plugin.video.arte_tv/default.py”, line 298, in playLiveStream
listitem = xbmcgui.ListItem(path=match[0][0] + match[0][1] + " swfUrl=http://www.arte.tv/flash/mediaplayer/mediaplayer.swf live=1 swfVfy=1")
IndexError: list index out of range
–>End of Python script error report<–
14:46:14.067 T:1958989824 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.arte_tv/?url=&mode=playLiveStream]
14:46:16.384 T:1958989824 NOTICE: Samba is idle. Closing the remaining connections

Those 2 errors (from Arte and Pluzz plugins) just happened and I don’t know what to do to correct these issues.
Any idea on how to fix these?

PS: This is the whole log file…

Hi,

Seeing a lot of

GetDirectory - Error getting

Relating to your library and plugins. It looks like data corruption to me. I would back up your settings and reinstall osmc to the sd card.

Thanks Tom.

Hello Tom and thanks for your answer.

I ran a restoration of old settings (all) and finally found my 2 plugins back,
but some settings failed to restore. ???
Why did this data corruption happened and how can I avoid this?

It’s not possible to say why data corruption occurred in this case but there is a reasonable chance that it was caused by a problem in your SD card. The quality of SD cards varies enormously and there are even “industrial grade” cards out there that are supposed to be even more robust than the known-brand cards (and even more expensive, of course), eg Swissbit.

Ouch! Pretty expensive.

Is there a tool or some commands to fix those data corruptions?

Hi,

If you done a restore and are still getting data corruption, as dilthedog says its probably and issue with the sd card and your best bet is to replace it. There’s a good one in the OSMC store .

Thanks Tom.

Not after they have borked your system, though some cards like Swissbit advertise that they will correct some errors internally before they become a show-stopper. Other top brands might also have something similar but I’ve not managed to find any specs for them. I personally use Samsung EVO+.

Tom mentioned the SD card in the OSMC store. It comes with a “lifetime warranty” that the cynic in me assumed meant “until it breaks”. But no, it’s actually a generous warranty. Except for physical damage, it will be replaced if it fails. (Admittedly, the definition of “fails” can be subject to a degree of interpretation.)

Sam told me that the customer must pay for the shipping back and it will be replaced with a new card. If return shipping costs are relatively small, it’s a good deal.