Bug 411925 - Focus logging stores autofocus FITS, causing disk space exhaustion
Summary: Focus logging stores autofocus FITS, causing disk space exhaustion
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: git
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-14 21:57 UTC by James Harrison
Modified: 2019-09-15 06:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 3.3.7
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Harrison 2019-09-14 21:57:52 UTC
SUMMARY
Users may inadvertently exhaust remaining space on their local disks by enabling logging from the focus module; rather than simply logging plain text information, the focus module checks the focus logging option to see if it should store the FITS files recorded during autofocus to (~/.local/share/kstars/autofocus).

This is not obvious and with high-resolution cameras can consume a large quantity of disk space without warning (easily gigabytes per night of imaging).


STEPS TO REPRODUCE
1. Go to Ekos -> Logs -> Check "Focus"
2. Autofocus
3. Files present in .local/share/kstars/autofocus

OBSERVED RESULT
Several gigabytes of FITS files stored

EXPECTED RESULT
Several kilobytes of log data stored

SOFTWARE/OS VERSIONS
Not relevant.

ADDITIONAL INFORMATION
I'd argue that debug logging of actual frames used in autofocus might be best left as a separate option in the focus module. Users who wish to leave their logging set to verbose for normal operation (for instance, to aid in debugging a crash or other faults) would also need to empty the folder frequently. At minimum, a warning next to the focus module's checkbox might not be a bad idea.
Comment 1 Jasem Mutlaq 2019-09-15 06:47:47 UTC
Git commit fab755ffe257d5e2e1c6c7004f4b8dd2063aa6b9 by Jasem Mutlaq.
Committed on 15/09/2019 at 06:47.
Pushed by mutlaqja into branch 'master'.

Add option to save focus frames. Warn about storage space.
FIXED-IN:3.3.7

M  +11   -0    kstars/ekos/auxiliary/opslogs.ui
M  +1    -1    kstars/ekos/focus/focus.cpp
M  +4    -0    kstars/kstars.kcfg

https://commits.kde.org/kstars/fab755ffe257d5e2e1c6c7004f4b8dd2063aa6b9