birbcam
birbcam copied to clipboard
[BUG] App crashes when accessing a large picture log
Describe the bug App crashes when trying to write to the picture log when the picture log has become too big
To Reproduce Crash point appears to be when the picture log is a little north of 1 MB, and the crash happens when attempting to write to it.
Raspberry Pi (please complete the following information):
- OS: Buster
Additional context When this happens, the whole drive the picture log resides on is set to read-only access.
Planned fix:
- Break the picture log file up; one file per day is probably fine
- Catch the exception and flag the problem in the UI