birbcam icon indicating copy to clipboard operation
birbcam copied to clipboard

[BUG] App crashes when accessing a large picture log

Open jdpdev opened this issue 4 years ago • 1 comments

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.

jdpdev avatar Oct 08 '21 13:10 jdpdev

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

jdpdev avatar Oct 08 '21 13:10 jdpdev