Hi guys,

I've updated to version 3.5.7 Stable on RPi4 with 4G RAM running Raspbian GNU/Linux 10 (buster).

The issue is that while capturing images the allocated memory by KStars increases by every captured image and after a while there is no more memory and the app crashes with the message: /home/astroberry/DEV/BUILD/indi/libs/lilxml.c(moremem): Failed to allocate memory.
Segmentation fault.

Here is the end of log file:
[2022-03-05T22:03:52.520 CET INFO ][   org.kde.kstars.ekos.capture] - "Capturing 1.000-second  image..."
[2022-03-05T22:03:52.578 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] StartExposure->setexp : 1.000s "
[2022-03-05T22:03:55.204 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] Uploading file. Ext: fits, Size: 93559680, sendImage? Yes, saveImage? No "
[2022-03-05T22:03:58.511 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] BLOB transfer took 1.24188 seconds "
[2022-03-05T22:03:58.511 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] Upload complete "
[2022-03-05T22:03:58.512 CET DEBG ][           org.kde.kstars.indi] - Image received. Mode: "Normal" Size: 93559680
[2022-03-05T22:03:58.579 CET INFO ][           org.kde.kstars.indi] - "FITS" file saved to "/home/pi/Pictures/Light/Lum/Light_Lum_1_secs_2022-03-05T22-03-58_008.fits"
[2022-03-05T22:04:00.817 CET INFO ][   org.kde.kstars.ekos.capture] - "Received image 3 out of 10."
[2022-03-05T22:04:06.024 CET INFO ][   org.kde.kstars.ekos.capture] - "Captured /home/pi/Pictures/Light/Lum/Light_Lum_1_secs_2022-03-05T22-03-58_008.fits"
[2022-03-05T22:04:07.846 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-03-05T21:04:07: Driver indi_asi_wheel: Unknown transfer code: #1 LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED"
[2022-03-05T22:04:07.846 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2022-03-05T22:04:07.848 CET INFO ][   org.kde.kstars.ekos.capture] - "Capturing 1.000-second  image..."
[2022-03-05T22:04:07.852 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] StartExposure->setexp : 1.000s "
[2022-03-05T22:04:08.532 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-03-05T21:04:08: Driver indi_asi_wheel: Unknown transfer code: #1 LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED"
[2022-03-05T22:04:08.532 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2022-03-05T22:04:09.453 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-03-05T21:04:09: Driver indi_asi_wheel: Unknown transfer code: #1 LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED"
[2022-03-05T22:04:09.454 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2022-03-05T22:04:10.370 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] Uploading file. Ext: fits, Size: 93559680, sendImage? Yes, saveImage? No "
[2022-03-05T22:04:10.863 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-03-05T21:04:10: Driver indi_asi_wheel: Unknown transfer code: #1 LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED"
[2022-03-05T22:04:10.863 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2022-03-05T22:04:11.683 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-03-05T21:04:11: Driver indi_asi_wheel: Unknown transfer code: #1 LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED"
[2022-03-05T22:04:11.684 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2022-03-05T22:04:11.684 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] BLOB transfer took 1.01427 seconds "
[2022-03-05T22:04:11.685 CET DEBG ][           org.kde.kstars.indi] - ZWO CCD ASI294MM Pro : "[DEBUG] Upload complete "
[2022-03-05T22:04:11.697 CET WARN ][                       default] - QObject::startTimer: Timers can only be used with threads started with QThread
[2022-03-05T22:04:11.701 CET WARN ][                       default] - QtDBus: cannot relay signals from parent Phonon::AbstractAudioOutput(0x4ef81a8 "") unless they are emitted in the object's thread QThread(0x1dc0270 ""). Current thread is QThread(0xa814ab10 "").
[2022-03-05T22:04:11.702 CET WARN ][                       default] - QtDBus: cannot relay signals from parent QObject(0x4ef81a8 "") unless they are emitted in the object's thread QThread(0x1dc0270 ""). Current thread is QThread(0xa814ab10 "").


I tried to launch with valgrind to see more but it was desperately slow, the main screen didn't show up even after several minutes.
Attached is the video showing memory increase (using htop) and KStar crash. Please let me know if you need something else.

Many thanks,
Radim 

https://www.indilib.org/media/kunena/attachments/8690/KStars_crash.mkv


Read More...