KStars versions v3.3.5 and v3.3.6 both have a critical bug that causes KStars to crash immediately after a RAW/NEF image is received, no matter if in preview or not. The error is an Arithmetic exception in the Histogram tools in the FITS Viewer, but for some reasons they are executed whenever the image is received, causing KStars to stop responding and then closing. I use a Nikon D3300. If I set the format to FITS or I use my QHY 5L-II camera, KStars does not crash.
This error happens regardless if the camera is connected directly to the computer (up-to-date Kubuntu 19.04) or connected to a remote Raspberry Pi 3 B+ with Raspbian and INDI 1.7.4.
I hope it could be fixed as soon as possible because it makes Ekos unusable with DSLRs. Thanks in advance
Error logs:
~$ gdb -ex run kstars
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C)2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kstars...
Reading symbols from /usr/lib/debug/.build-id/24/4b14d1dfae1241b2cadafe61a1b742824ce3e8.debug...
Starting program: /usr/bin/kstars
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffee486700 (LWP 8981)][New Thread 0x7fffed47a700 (LWP 8982)]
Icon theme "elementary" not found.
[New Thread 0x7fffdffff700 (LWP 8984)][New Thread 0x7fffd9ffe700 (LWP 8985)][New Thread 0x7fffddffe700 (LWP 8986)][New Thread 0x7fffdbffd700 (LWP 8987)][New Thread 0x7fffdb177700 (LWP 8988)][New Thread 0x7fffda976700 (LWP 8989)][New Thread 0x7fffd7897700 (LWP 8990)][New Thread 0x7fffc7fff700 (LWP 8991)][New Thread 0x7fffb7ed5700 (LWP 8992)][New Thread 0x7fff9ffff700 (LWP 8993)][New Thread 0x7fff97fff700 (LWP 8994)][New Thread 0x7fffd5896700 (LWP 8995)][Detaching after fork from child process 9025][Detaching after fork from child process 9026][New Thread 0x7fffd4d55700 (LWP 9028)]
Dispatch command error(-1): INDI: Could not find property CCD_EXPOSURE in Nikon DSLR DSC D3300
<setNumberVector device="Nikon DSLR DSC D3300" name="CCD_EXPOSURE" state="Idle" timeout="60" timestamp="2019-09-11T12:23:25">
<oneNumber name="CCD_EXPOSURE_VALUE" min="0.00025" max="3600" step="1">
1
</oneNumber>
</setNumberVector>
[Detaching after fork from child process 9047][New Thread 0x7fffc5a9c700 (LWP 9050)]
d201: newSwitchVector with no valid members
d201: newSwitchVector with no valid members
d201: newSwitchVector with no valid members
[New Thread 0x7fffc529b700 (LWP 9093)]
Thread 1 "kstars" received signal SIGFPE, Arithmetic exception.
0x0000555555d5efe1 in FITSHistogram::constructHistogram<unsigned char> (this=this@entry=0x55555a6d4be0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:211211 iterator begin(iterator = iterator()){ return data(); }(gdb)
Ok I can't reproduce any crash with Canon 600D in either formats. The only place where RAW is converted to FITS is when "Auto Covert Images" is checked in the options. So try to disable that and see.
Thanks! Disabling "Auto Covert Images" did the trick! Anyway it's better to fix the issue
I'm uploading a NEF file that causes the error, it may take some time, I'll send you the link ASAP.
A strange fact is that if the image is fully saturated (white) or really dark (almost black) KStars doesn't crash. Only with well-exposed photos