[MovieList] avoid possible BSoD from os.stat().st_mtime when the reso…

Status
Not open for further replies.

GitHub

Moderator
[MovieList] avoid possible BSoD from os.stat().st_mtime when the resource is not available

os.stat().st_mtime was introduced here: fb90b5ad1b5b2d0ccf2bc4b5f201766c0c871594

With the current workaround the user sees a "directory not found" message, rather than crashing enigma.

< 1503.1017> 06:55:58.3223 [gRC] main thread is non-idle! display spinner!
< 1508.1287> 06:56:03.3493 Traceback (most recent call last):
< 1508.1288> 06:56:03.3494 File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 1723, in reloadWithDelay
< 1508.1314> 06:56:03.3521 self["list"].reload(self.current_ref, self.selected_tags, self.collectionName)
< 1508.1315> 06:56:03.3521 File "/usr/lib/enigma2/python/Components/MovieList.py", line 627, in reload
< 1508.1324> 06:56:03.3530 self.load(root, filter_tags, collection)
< 1508.1324> 06:56:03.3530 File "/usr/lib/enigma2/python/Components/MovieList.py", line 763, in load
< 1508.1334> 06:56:03.3540 begin = os.stat(serviceref.getPath()).st_mtime
< 1508.1335> 06:56:03.3541 FileNotFoundError: [Errno 2] No such file or directory: '/media/autofs/Docker-Daten/'
< 1508.1336> 06:56:03.3542 [ePyObject] (CallObject(<bound method MovieSelection.reloadWithDelay of <class 'Screens.MovieSelection.MovieSelection'>>,()) failed)

Continue reading...
 
Status
Not open for further replies.
Back
Top