<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sorry, forgot to mention the crash details:<div class=""><div class="">/home/wolfgang/sterne-jaeger/git/indi/libs/lilxml.c(moremem): Failed to allocate memory.</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 22.05.2021 um 23:20 schrieb Wolfgang Reissenberger <<a href="mailto:sterne-jaeger@openfuture.de" class="">sterne-jaeger@openfuture.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear all,<div class="">I’m experiencing currently crashes of EKOS running on a Raspberry 4 with Raspbian 10. Meanwhile, I can reproduce the error. The problem is that allocation of new memory fails when a new image gets loaded.</div><div class=""><br class=""></div><div class="">As a workaround I can resolve it if I turn off completely the FITS viewer.</div><div class=""><br class=""></div><div class="">To reproduce it, you need the current 32bit Raspbian 10 and do the following:</div><div class="">- use CCD Simulator and increase the image size to the maximal vaules 8192x8192</div><div class="">- run the focuser (one completed capture is sufficient)</div><div class="">- run an alignment (2x2 binning is sufficient)</div><div class="">- start a capture sequence</div><div class="">Typically after the second frame, KStars crashes with </div><div class=""><br class=""></div><div class="">The reason is, that we have several places where images and associated pixmaps are used: Manager, Focuser, Align, FitsViewer. In each place, at least one QImage and one QPixmap is stored. With the setup above, each QPixmap object is 256 MB.</div><div class=""><br class=""></div><div class="">One solution is that for such sensors we should recommend 64Bit OS versions. As far as I understand, 32Bit OS have a memory limit which we are touching with big frame sizes.</div><div class=""><br class=""></div><div class="">As an alternative, we could rework EKOS in such a way, that we shift all images to the FITS viewer and in case of a low resource mode, only one image is held at one time, i.e. capturing, focusing and alignment share the same pixmap. This would drastically reduce memory consumption.</div><div class=""><br class=""></div><div class="">What do you think about this?</div><div class=""><br class=""></div><div class="">Cheers</div><div class="">Wolfgang</div><br class=""><span style="caret-color: rgb(0, 0, 0);" class="">—</span><br class=""><div class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Wolfgang Reissenberger<br class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="http://www.sterne-jaeger.de/" class="">www.sterne-jaeger.de</a><br class="">TSA-120 + FSQ-85 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro + ASI 6200mm pro</div></div></div>
</div>
<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>