Hi Jasem

Indeed, this was the cause of the issue.  By de-configuring all the sound alerts I was able to eliminate the problem.

The number of file handles in use by the kstars process has dropped significantly as a result.  Previously I was seeing >100,000 file handles in use at the point where the issue occurred.  Now I see a steady 331 file handles throughout the capture.

There's a problem with the sound playing function where no audio device is attached which is leaking file descriptors/objects => memory - suggest a ticket for this?

Results of a successful test are attached!  I'm looking forward to not restarting kstars every morning now!

This is after a successful capture of >1000 images - prior to the test, the number was 331.

astroberry@astroberry:/universe/Pictures/AllSky/Zenith/Light $ lsof -p 17482 | wc -l
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
      Output information may be incomplete.
332

Many thanks and if you need any help recreating then I'm happy to provide it.
Iain

Read More...