×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Memory Leak

6 months 4 weeks ago 6 months 4 weeks ago by Twistys.
Twistys
Fresh Boarder
Fresh Boarder
Posts: 8
More
Topic Author
Memory Leak #45580
I had multiple crashes over the night due to running out of memory. I was watching the system monitor as kstars crashed a few times. Below I have listed all the components that I am using. I looked up similar issues and work arounds to them. Have already disabled fits view as that was causing me issues previously. After I had disabled that I was able to image for 3 nights in a row (last time it was clear) with no crashes all night. This time when I booted up it would crash after taking 4-10 captures. In watching the system monitor I started my process and it would go through slew, focus, align, guide, and start first capture all fine. Memory would spike during each operation but then return to its original amount. When it got to finishing a capture, downloading, and beginning the next capture however the memory would increase by ~20 MiB each time until it ran out of memory when downloading a capture and kstars would force close. I ran kstars in gdb using <code>gdb -ex run kstars</code> as recommended by Jasem in this thread. <code>(gdb) bt</code> returned "No Entry" I have included the syslogs, and a screenshot from Stellarmate App from when I disconnected the drivers and closed KStars, and another from when I reopened KStars. I know a "temporary fix" would be to upgrade to the Raspberry Pi 4 - 4gig. But if the memory leak is still there, it will still be an issue, just would take longer between crashes.

File Attachment:

File Name: 2019-11-07.zip
File Size:948 KB


Using:
Raspberry Pi 3b+ w/ Stellarmate OS v.1.4.4
EQ6-R pro with EQMOD
Canon EOS Rebel T6 imaging camera
ZWO ASI290mm mini guide camera
USB GPS
ZWO EAF
Attachments:
The following user(s) said Thank You pcxz, UrbanAstronomy

Please Log in or Create an account to join the conversation.

5 months 6 days ago
UrbanAstronomy
Fresh Boarder
Fresh Boarder
Posts: 4
More
Memory Leak #47505
I'm experiencing the same behavior on the current version running on a RPi 4.

Please Log in or Create an account to join the conversation.

5 months 3 days ago
pcxz
Gold Boarder
Gold Boarder
Posts: 189
More
Memory Leak #47600
I'm experiencing the same behavior.

When it got to finishing a capture, downloading, and beginning the next capture however the memory would increase by ~20 MiB each time until it ran out of memory when downloading a capture and kstars would force close.


Yes, that's the problem, it seems that Kstars doesn't free up memory after the image has been downloaded (in my case every FITS image has a weight greater than 30 MB), after more than 100 images are captured, my computer with 8 GB of memory it does not respond and requires "absolutely" that I close kstars.

With the latest kstars, indi, indi-3rdparty.
And all image captured in automatic scheduler.

----
Celestron C8 Fastar XLT U.S.A. (Carbon tube), seeker 9x50 (used as a guide scope), Wedge, Meade DSI (used as a guide cam), Canon EOS 500D Full mod, Canon EOS 1000D, RaspBerryPI3 with remote management through EKOS.

Please Log in or Create an account to join the conversation.

5 months 2 days ago
Lead_weight
Platinum Boarder
Platinum Boarder
Posts: 386
Karma: 4
More
Memory Leak #47652
I have a 4GB RPi4 and the memory leak stops it too after about 4 hours of imaging. Happens every single time. I've since changed how I use KStars/EKOS. I used to run it all on the Pi device and would VNC in to the desktop and monitor it from a computer in the house. But since the memory leak, I only run the INDI Server now on the Pi Device and connect to it from KStars/EKOS in the house. This method does not experience the memory leak, and I've been able to image reliably now for about a month.

-Andrew
––––––––––
Mac Observatory - All about using the Mac for Astrophotography: www.macobservatory.com
Astrobin: www.astrobin.com/users/Lead_Weight/

Please Log in or Create an account to join the conversation.

5 months 2 days ago
pcxz
Gold Boarder
Gold Boarder
Posts: 189
More
Memory Leak #47654

Lead_weight wrote: I have a 4GB RPi4 and the memory leak stops it too after about 4 hours of imaging. Happens every single time. I've since changed how I use KStars/EKOS. I used to run it all on the Pi device and would VNC in to the desktop and monitor it from a computer in the house. But since the memory leak, I only run the INDI Server now on the Pi Device and connect to it from KStars/EKOS in the house. This method does not experience the memory leak, and I've been able to image reliably now for about a month.


I also use it remotely, and as I said in the computer I have 8GB of memory.
After the automatic capture of over 100 images (asteroid orbit measurement) the computer becomes slow, so much so that I have to close kstars to free up more than 7gb of memory.
Every time download an image it takes up a lot of ram memory.

----
Celestron C8 Fastar XLT U.S.A. (Carbon tube), seeker 9x50 (used as a guide scope), Wedge, Meade DSI (used as a guide cam), Canon EOS 500D Full mod, Canon EOS 1000D, RaspBerryPI3 with remote management through EKOS.

Please Log in or Create an account to join the conversation.

5 months 1 day ago
knro
Administrator
Administrator
Posts: 8000
Karma: 51
Memory Leak #47676
I would like to know how I can replicate this.. I took 500 images on StellarMate a couple of weeks ago and I couldn't detect any memory leak. Was HIPS overlay enabled? I'd like to replicate exact conditions.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You pcxz

Please Log in or Create an account to join the conversation.

5 months 1 day ago
pcxz
Gold Boarder
Gold Boarder
Posts: 189
More
Memory Leak #47679

knro wrote: I would like to know how I can replicate this.. I took 500 images on StellarMate a couple of weeks ago and I couldn't detect any memory leak. Was HIPS overlay enabled? I'd like to replicate exact conditions.


Thanks knro, next time I create a log, HIPS is disabled.
I forgot to mention that they are all FITS image ( fits viewer is disabled ).

----
Celestron C8 Fastar XLT U.S.A. (Carbon tube), seeker 9x50 (used as a guide scope), Wedge, Meade DSI (used as a guide cam), Canon EOS 500D Full mod, Canon EOS 1000D, RaspBerryPI3 with remote management through EKOS.
The following user(s) said Thank You UrbanAstronomy

Please Log in or Create an account to join the conversation.

5 months 23 hours ago
UrbanAstronomy
Fresh Boarder
Fresh Boarder
Posts: 4
More
Memory Leak #47709

knro wrote: I would like to know how I can replicate this.. I took 500 images on StellarMate a couple of weeks ago and I couldn't detect any memory leak. Was HIPS overlay enabled? I'd like to replicate exact conditions.


If HIPS overlay is enabled by default then yes, it is. My objective is to be able to pack the whole imaging train minus the mount into a suitcase, preferably carry-on sized bag. Resolving this is very important to me since I'm trying to avoid taking a full computer into the field. Full control and imaging from a RPi opens SO many possibilities that I really want to explore.

Please Log in or Create an account to join the conversation.

5 months 16 hours ago
hy
Gold Boarder
Gold Boarder
Posts: 242
Karma: 2
More
Memory Leak #47722
I was wondering, for the folks with the memory leak--do you have the option "Single Preview Tab" checked? (I think you should have it checked).
You find that under the KStars options, then FITS, then it's a checkbox on that page.
I believe that KStars/fitsviewer would leak tabs if you had it unchecked (perhaps it should limit the number of tabs, I don't know if it does or doesn't).
Hy
The following user(s) said Thank You El Corazon

Please Log in or Create an account to join the conversation.

5 months 16 hours ago
pcxz
Gold Boarder
Gold Boarder
Posts: 189
More
Memory Leak #47724

hy wrote: I was wondering, for the folks with the memory leak--do you have the option "Single Preview Tab" checked? (I think you should have it checked).
You find that under the KStars options, then FITS, then it's a checkbox on that page.
I believe that KStars/fitsviewer would leak tabs if you had it unchecked (perhaps it should limit the number of tabs, I don't know if it does or doesn't).
Hy


Yes is checked and Fits viewer is disabled.
Thanks

----
Celestron C8 Fastar XLT U.S.A. (Carbon tube), seeker 9x50 (used as a guide scope), Wedge, Meade DSI (used as a guide cam), Canon EOS 500D Full mod, Canon EOS 1000D, RaspBerryPI3 with remote management through EKOS.

Please Log in or Create an account to join the conversation.

5 months 3 hours ago
Kaczorek
Moderator
Moderator
Posts: 896
Karma: 6
More
Memory Leak #47742
Apparently memory leak is related to FITS preview.

I have just got a report that memory leak does not happen if you disable:
- fits viewer (Settings / Configure KStars / FITS / Use FITS Viewer) and
- preview from main Ekos tab (Settings / Configure KStars / Ekos / Capture / Summary Screen Preview)

Can you confirm this?

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM

Please Log in or Create an account to join the conversation.

4 months 4 weeks ago
El Corazon
Platinum Boarder
Platinum Boarder
Posts: 710
Karma: 3
More
Memory Leak #47751

hy wrote: I was wondering, for the folks with the memory leak--do you have the option "Single Preview Tab" checked? (I think you should have it checked).
You find that under the KStars options, then FITS, then it's a checkbox on that page.
I believe that KStars/fitsviewer would leak tabs if you had it unchecked (perhaps it should limit the number of tabs, I don't know if it does or doesn't).
Hy


I was about to make the same comment. That box needs to be checked to prevent consecutive tabs from opening.
In addition, I always leave my FITS viewer minimized. I also use an SSD with swap enabled, that might also make a difference.
I had the memory overflow a couple of times, but only when I ran KStars from a microSD card. Unsure how to explain that, though.


Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.461 seconds