×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Critical crash in Ekos/KStars whenever a NEF image is received from DSLR

  • Posts: 29
  • Thank you received: 1
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:211
211         iterator begin(iterator = iterator()) { return data(); }
(gdb)

Further logs attached.

File Attachment:

File Name: kstars-201...9-11.txt
File Size:16 KB
4 years 7 months ago #43182
Attachments:

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

Thanks for the report. Can you please share a link to the NEF file that can cause this crash?

EDIT: Ok, for non-FITS, these functions should never be called to begin with. Let me check.
Last edit: 4 years 7 months ago by Jasem Mutlaq.
4 years 7 months ago #43183

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

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.

4 years 7 months ago #43186
Attachments:

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

  • Posts: 29
  • Thank you received: 1
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 :dry:
4 years 7 months ago #43188

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

  • Posts: 29
  • Thank you received: 1
Time to create page: 0.844 seconds