×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

A better FITS viewer?

Replied by Jasem Mutlaq on topic A better FITS viewer?

Right, there is no time to redo many of these issues in FITSViewer. The histogram needs some rework, but the crash that was caused by it is fixed now at least.

The code inside FITSData and FITSView is very slow and doesn't use any modern graphics library. There are some elements that perform parallel operation, but they're performing the _slow_ operations in parallel so there is that. No gamma/shadow controls that are quick and [/b]responsive[/b].

As Robert pointed out, we proposed FITSViewer Overhaul as Google Summer of Code project for 2019, but we didn't get any students. KStars is an open source application and I hope the community would step in to improve these issues for all. We recently had a small patch from a new developer (Mr. Hy) to improve the speed of the FITS statistics by an order of magnitude, so he is off to a great start!
4 years 7 months ago #42248

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

  • Posts: 2876
  • Thank you received: 809

Replied by Rob Lancaster on topic A better FITS viewer?

So one thing that should be pointed out is that fitsviewer is really mostly just a container and GUI interface for a fitsview. There are a number of fitsviews In Ekos, in the summary screen, the align tab, the guide tab, and the focus tab. Ekos very much relies on fitsviews for a number of functions and the fitsviewer relies on both kstars and Ekos for many of its functions. Truly Separating them would remove a lot of functionality. That is not to say it wouldn’t be beneficial to have a separate stand alone fitsviewer, but removing fitsviewer from KStars would not be good. There are already a number of standalone fitsviewer programs out there, have you tried them?
4 years 7 months ago #42252

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

  • Posts: 94
  • Thank you received: 8
Thanks for pointing out that about fitsviews. I was not suggesting that all be separated from Ekos, just that the fitsviewer might run in its own process or thread.

But anyway, I have not looked for any Linux FITS viewers out there. Perhaps this link is a good start? fits.gsfc.nasa.gov/fits_viewer.html
Ubuntu 18.04 and Raspbian Jessie; INDI 1.7.4
Mounts: CEM-60 chiefly; iEQ45
Cameras: Atik 383L+, QHY5-II-M
Focuser: Moonlite
4 years 7 months ago #42253

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

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic A better FITS viewer?

I see you're running Ubuntu 18.04. Gwenview will display all sorts of image files, .fits included.
4 years 7 months ago #42259

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

  • Posts: 1009
  • Thank you received: 133

It absolutely is. And especially for viewing astronomy fits files be sure to look at DS9 (IMHO).
4 years 7 months ago #42273

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

  • Posts: 61
  • Thank you received: 8

Replied by Odiug on topic A better FITS viewer?

Unfortunately there are not many FITS viewers that display color FITS from INDI. E.g. DS9 only displays grey values and does not recognize the bayer information in the header. Or am I missing something?

BTW, I did not experience a crash with the INDI Fits Viewer yet. But I only have a ZWO ASI 224mc with a small sensor (1304x976). That would also hint at a memory issue, but Jasem already said he had fixed it...

Guido
4 years 7 months ago #42298

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

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic A better FITS viewer?

4 years 7 months ago #42325
Attachments:

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

  • Posts: 61
  • Thank you received: 8

Replied by Odiug on topic A better FITS viewer?


OK, now that I bought a ZWO ASI 294mc pro, I'll take this back!
I now also experience frequent crashes with displaying pictures of the new camera (11MP, 4144x2822) in Fits Viewer : often when applying Auto Stretch and reproducable when zooming in.

Is there anything I can do to help debugging?
KStars version: 3.3.8 build: 2019-11-16T00:06:30Z
running under Astroberry on a Pi3.

CS
Guido
4 years 4 months ago #45907

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

Replied by Jasem Mutlaq on topic A better FITS viewer?

Can you run it via gdb and post the backtrace?

gdb -ex run --args kstars
4 years 4 months ago #45926

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

  • Posts: 61
  • Thank you received: 8

Replied by Odiug on topic A better FITS viewer?

Unfortunately I get a SIGSEGV immediatly at startup:
astroberry@astroberry:~$ gdb -ex run --args kstars
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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 "arm-linux-gnueabihf".
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/2f/f06cd9509561a1816cfb4441a4f165c88c4c5b.debug...done.
done.
Starting program: /usr/bin/kstars 
 
Program received signal SIGSEGV, Segmentation fault.
0x76fd9dde in ?? () from /lib/ld-linux-armhf.so.3
(gdb) 

Without gdb KStars used to work normally.
Any idea what is causing the gdb debugging to fail?

Regards
Guido
4 years 4 months ago #45985

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

  • Posts: 61
  • Thank you received: 8

Replied by Odiug on topic A better FITS viewer?

Just looked at "top" when I ran KStars on my PC (instead of the Pi3).
When zooming in to 400% in the Fits Viewer, the RES column in top exceeds 2GB. That would probably easily explain KStars crashing on the Pi.
The Pi does not really use any swap, just /dev/zram0, an in memory ram disk with compression, I assume.

However it also sometimes crashes when just using Auto Stretch with full Ekos running. Maybe it is also already low on memory.

Still it should not crash but check and handle any memory issues.

Maybe, I should go for a Pi4 with 4GB soon.

Regards
Guido
4 years 4 months ago #45987

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

  • Posts: 2876
  • Thank you received: 809

Replied by Rob Lancaster on topic A better FITS viewer?

You can check how the pi is on memory. I have a program called conky running on mine always reporting the memory used (along with lots of other stuff) so that I know if there is an issue
4 years 4 months ago #45988

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

Time to create page: 0.827 seconds