I started an SGL thread about this topic and due to less daylight, etc, haven't progressed with it. Thinking it might be Astroberry related, posted the following content on Astroberry Github , and suggestion was to post here.

In short, running RPi4 4GB with astroberry installed on 128GB micro SD. I use a combination of Anydesk and VNC to access the RPi which is mounted on my mount, controlling guiding, tracking and DSLR.

Several imaging sessions have been interrupted by kstars closing shortly after closing my connection to the RPi. In effort to debug, I'd saved out the log files but didn't get round to really getting into them. Read a couple of places about memory leaks and wrote shell script to output ALL memory parameters out to text file whilst running anything else on the RPi.

As the nights are short (and weather of late not the best!), I have even used the simulator to duplicate the crashing, with log files being saved as verbose, etc.
I have enabled the FITS Limited Resouces Mode and disabled FITS viewer as had read about this possibly causing issues.

My most recent is the most detail I've had on the issue - started the imaging at ~12:30 and closed connections ~18:00. Log file ends about 30min later with:

[2022-05-16T18:28:14.871 BST DEBG ][           org.kde.kstars.indi] - Telescope Simulator : "[SCOPE] Current RA:  3:05:52 Current DEC: 90:00:00 "
[2022-05-16T18:28:14.892 BST INFO ][   org.kde.kstars.ekos.capture] - "Capturing 2.500-second Luminance image..."
At this point, the simulator has 'captured' 7652x 2.5sec exposures, just using the default settings in EKOS:

My shell script outputs memory info just before starting:
2022-05-16 12:23:54; Temp=39.4ºC. RAM 'Used': 399MB (10.5%); RAM 'Free': 2.4GB (64.7%); RAM 'Available': 3.1GB (84.4%); RAM used in Shared & Buffer: 26.0%. Swap used: 0.0%. µSD @/dev/root uses 20,178,276kB.
2022-05-16 12:23:55; Temp=39.9ºC. RAM 'Used': 399MB (10.5%); RAM 'Free': 2.4GB (64.7%); RAM 'Available': 3.1GB (84.6%); RAM used in Shared & Buffer: 26.0%. Swap used: 0.0%. µSD @/dev/root uses 20,178,276kB.
Here's memory stats just before and after crash time:
2022-05-16 18:28:02; Temp=42.3ºC. RAM 'Used': 1.2GB (31.3%); RAM 'Free': 114MB ( 3.0%); RAM 'Available': 2.4GB (63.8%); RAM used in Shared & Buffer: 66.4%. Swap used:100.0%. µSD @/dev/root uses 39,596,736kB.
2022-05-16 18:28:03; Temp=43.3ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 112MB ( 3.0%); RAM 'Available': 2.4GB (64.0%); RAM used in Shared & Buffer: 66.5%. Swap used:100.0%. µSD @/dev/root uses 39,596,748kB.
2022-05-16 18:28:05; Temp=41.3ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 112MB ( 3.0%); RAM 'Available': 2.4GB (63.9%); RAM used in Shared & Buffer: 66.5%. Swap used:100.0%. µSD @/dev/root uses 39,596,484kB.
2022-05-16 18:28:06; Temp=42.8ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 109MB ( 2.9%); RAM 'Available': 2.4GB (64.0%); RAM used in Shared & Buffer: 66.6%. Swap used:100.0%. µSD @/dev/root uses 39,599,312kB.
2022-05-16 18:28:08; Temp=41.8ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 110MB ( 2.9%); RAM 'Available': 2.4GB (64.0%); RAM used in Shared & Buffer: 66.6%. Swap used:100.0%. µSD @/dev/root uses 39,599,312kB.
2022-05-16 18:28:09; Temp=43.3ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 106MB ( 2.8%); RAM 'Available': 2.4GB (64.0%); RAM used in Shared & Buffer: 66.6%. Swap used:100.0%. µSD @/dev/root uses 39,601,876kB.
2022-05-16 18:28:10; Temp=41.8ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 106MB ( 2.8%); RAM 'Available': 2.4GB (64.0%); RAM used in Shared & Buffer: 66.6%. Swap used:100.0%. µSD @/dev/root uses 39,601,884kB.
2022-05-16 18:28:12; Temp=43.3ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 105MB ( 2.8%); RAM 'Available': 2.4GB (63.9%); RAM used in Shared & Buffer: 66.7%. Swap used:100.0%. µSD @/dev/root uses 39,604,444kB.
2022-05-16 18:28:13; Temp=43.3ºC. RAM 'Used': 1.2GB (31.4%); RAM 'Free': 104MB ( 2.8%); RAM 'Available': 2.4GB (64.0%); RAM used in Shared & Buffer: 66.7%. Swap used:100.0%. µSD @/dev/root uses 39,604,448kB.
2022-05-16 18:28:15; Temp=42.8ºC. RAM 'Used': 1.0GB (24.4%); RAM 'Free': 489MB (17.1%); RAM 'Available': 3.1GB (83.1%); RAM used in Shared & Buffer: 66.8%. Swap used:98.8%. µSD @/dev/root uses 39,607,008kB.
2022-05-16 18:28:16; Temp=42.3ºC. RAM 'Used': 459MB (12.1%); RAM 'Free': 847MB (22.4%); RAM 'Available': 3.1GB (83.8%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,008kB.
2022-05-16 18:28:18; Temp=42.8ºC. RAM 'Used': 460MB (12.2%); RAM 'Free': 846MB (22.4%); RAM 'Available': 3.1GB (83.8%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,008kB.
2022-05-16 18:28:19; Temp=42.3ºC. RAM 'Used': 461MB (12.2%); RAM 'Free': 847MB (22.4%); RAM 'Available': 3.1GB (83.8%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,012kB.
2022-05-16 18:28:20; Temp=42.3ºC. RAM 'Used': 459MB (12.1%); RAM 'Free': 848MB (22.4%); RAM 'Available': 3.1GB (83.8%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,012kB.
2022-05-16 18:28:22; Temp=41.8ºC. RAM 'Used': 459MB (12.1%); RAM 'Free': 848MB (22.4%); RAM 'Available': 3.1GB (83.7%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,024kB.
2022-05-16 18:28:23; Temp=42.3ºC. RAM 'Used': 459MB (12.1%); RAM 'Free': 848MB (22.4%); RAM 'Available': 3.1GB (83.8%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,024kB.
2022-05-16 18:28:25; Temp=41.8ºC. RAM 'Used': 458MB (12.1%); RAM 'Free': 848MB (22.4%); RAM 'Available': 3.1GB (83.8%); RAM used in Shared & Buffer: 65.7%. Swap used:98.8%. µSD @/dev/root uses 39,607,024kB.
As seen, there's virtually no memory available at the time of crash, and 100% swap used. The above results have been generated using "free" in a script outputting to txt every second. I can share if needed, but attach the log file and full output of this script in hopes that it may lead to a solution?
I'm running it again without additional things going on (had been running Conky on the RPi, but disabled it for now).

File Attachment:

File Name: log_12-24-22.txt
File Size: 6,945 KB

File Attachment:

File Name: SystemLog.txt
File Size: 11,214 KB

I do have to setup mount and so on to test with it as Radek has suggested on github, but wondered if I can start the ball rolling anyway by posting and running simulators again without anything else going on.

Read More...