That directory is a network share and contains a few thousand images from various devices so rebuilding the database takes a while! Adding, moving and deleting images is a common maintenance activity so finding missing files is likely to be relatively likely in my setup so working out some graceful error handling sounds like a good idea. My logfile is set to WARNING and doesn't contain any details of the error so I think this is likely the root cause of the issues I'd been having in my past experiments.
The service is still running, though I think it's compromised - It is still showing the last image with the frozen clock and I can switch the screen off/on using the picframe_display MQTT mechanism but the prev/pause/next/shuffle mechanisms don't work. Testing that I found that it was proving reliable until it stalled this evening, digging a little revealed this exceptionĪpr 15 23:25:56 picframe xinit: Traceback (most recent call last):Īpr 15 23:25:56 picframe xinit: File "/home/pi/.local/bin/picframe", line 8, inĪpr 15 23:25:56 picframe xinit: sys.exit(main())Īpr 15 23:25:56 picframe xinit: File "/home/pi/.local/lib/python3.9/site-packages/picframe/start.py", line 154, in mainĪpr 15 23:25:56 picframe xinit: c.loop()Īpr 15 23:25:56 picframe xinit: File "/home/pi/.local/lib/python3.9/site-packages/picframe/controller.py", line 301, in loopĪpr 15 23:25:56 picframe xinit: pics = self._model.get_next_file()Īpr 15 23:25:56 picframe xinit: File "/home/pi/.local/lib/python3.9/site-packages/picframe/model.py", line 335, in get_next_fileĪpr 15 23:25:56 picframe xinit: pic_row = self._image_cache.get_file_info(file_ids)Īpr 15 23:25:56 picframe xinit: File "/home/pi/.local/lib/python3.9/site-packages/picframe/image_cache.py", line 158, in get_file_infoĪpr 15 23:25:56 picframe xinit: if row is not None and row != os.path.getmtime(row):Īpr 15 23:25:56 picframe xinit: File "/usr/lib/python3.9/genericpath.py", line 55, in getmtimeĪpr 15 23:25:56 picframe xinit: return os.stat(filename).st_mtimeĪpr 15 23:25:56 picframe xinit: FileNotFoundError: No such file or directory: '/photo/picframe_photos/simons_cameraphone_photos/20151118_124658.jpg' I'd been tinkering over the last few months with various combinations of Pi hardware and base OSes with mixed success, in an attempt to get a debuggable system I created a new instance based off Thomasedoff's recent gist ( ) and Wolfgang's HEIC notes.