×

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

Bi-monthly release with minor bug fixes and improvements

KStars crashes during session

  • Posts: 983
  • Thank you received: 375
I'm constantly getting KStars crash after a few images are captured with Ekos. I cannot debug it due to the following error:
astroberry@astroberry:~$ gdb --args kstars
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 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//usr/bin/kstars...done.
done.
(gdb) run
Starting program: /usr/bin/kstars 
 
Program received signal SIGSEGV, Segmentation fault.
0x76fd9822 in ?? () from /lib/ld-linux-armhf.so.3
(gdb) bt
#0  0x76fd9822 in ?? () from /lib/ld-linux-armhf.so.3
#1  0x76fd983a in ?? () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

I have reports from my mates of the same issue.
phonon4qt5-backend-gstreamer has been replaced with phonon4qt5-backend-vlc was installed. So I assume that it's not notifications issue.
There's nothing meaningful in the KStars logs.

When running from terminal KStars segfaults with the following:
astroberry@astroberry:~$ kstars
libEGL warning: DRI2: failed to authenticate
Dispatch command error(-2): Error: Property SIMULATORMODE not found in device EQMod Mount.
<delProperty device="EQMod Mount" name="SIMULATORMODE" timestamp="2017-06-03T20:17:24"/>
Dispatch command error(-2): Error: Property SIMULATORWORM not found in device EQMod Mount.
<delProperty device="EQMod Mount" name="SIMULATORWORM" timestamp="2017-06-03T20:17:24"/>
Dispatch command error(-2): Error: Property SIMULATORRATIO not found in device EQMod Mount.
<delProperty device="EQMod Mount" name="SIMULATORRATIO" timestamp="2017-06-03T20:17:24"/>
Dispatch command error(-2): Error: Property SIMULATORMOTOR not found in device EQMod Mount.
<delProperty device="EQMod Mount" name="SIMULATORMOTOR" timestamp="2017-06-03T20:17:24"/>
Dispatch command error(-2): Error: Property SIMULATORHIGHSPEED not found in device EQMod Mount.
<delProperty device="EQMod Mount" name="SIMULATORHIGHSPEED" timestamp="2017-06-03T20:17:24"/>
Dispatch command error(-2): Error: Property SIMULATORMCVERSION not found in device EQMod Mount.
<delProperty device="EQMod Mount" name="SIMULATORMCVERSION" timestamp="2017-06-03T20:17:24"/>
Found one coordinate representation.
Segmentation fault

Any ideas?

UPDATE: I have just found out that setting delay in Ekos capture module (e.g. 10s) between images keeps the session stable. Are we facing a race condition somewhere in the code?
Last edit: 6 years 9 months ago by Radek Kaczorek.
6 years 9 months ago #17138

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

  • Posts: 333
  • Thank you received: 24
Thank you for the 10s find... I will try this next session.
6 years 9 months ago #17140

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

Thanks for report, I will try to test this tonight in my observatory.
6 years 9 months ago #17146

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

I *think* I fixed the issue, there should be a new build within the next couple of hours.
The following user(s) said Thank You: Radek Kaczorek, Jim
6 years 9 months ago #17158

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

  • Posts: 983
  • Thank you received: 375
I have just tested it and it looks like the issue has been fixed. Thanks a lot Jasem.
Out of curiosity - what was the root cause of the issue?
6 years 9 months ago #17221

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

It was loading WCS data asynchronously. It is a CPU intensive process so it was offloaded to a separate thread. However, sometimes the FITS file itself is closed before the WCS loading is over and hence you get crash on slow machines. WCS data is now loaded on demand.
The following user(s) said Thank You: Radek Kaczorek
6 years 9 months ago #17232

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

  • Posts: 983
  • Thank you received: 375
It was definitely fixed with the imaging session. However, I have just noted that when you select Show Equatorial Gridlines on Setup tab in Ekos the KStars goes down. Is is possible that it's related to loading WCS on demand?
6 years 9 months ago #17242

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

Time to create page: 0.446 seconds