×

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

Bi-monthly release with minor bug fixes and improvements

Ekos SIGSEGV after connecting to CCD

  • Posts: 10
  • Thank you received: 0
Ekos (latest git version) crashes after connecting to CCD, even to the CCD simulator:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x083bb5b0 in Ekos::Align::syncTelescopeInfo (this=0xb5a3878)
    at /home/daniel/projects/indi/kstars/kstars/ekos/align.cpp:268

The reason is, it's not tested if currentTelescope is not NULL. Patch:
diff --git a/kstars/ekos/align.cpp b/kstars/ekos/align.cpp
index 031897b..a8e9490 100644
--- a/kstars/ekos/align.cpp
+++ b/kstars/ekos/align.cpp
@@ -265,9 +265,15 @@ void Align::setTelescope(ISD::GDInterface *newTelescope)
 
 void Align::syncTelescopeInfo()
 {
-    INumberVectorProperty * nvp = currentTelescope->getBaseDevice()->getNumber("TELESCOPE_INFO");
+    INumberVectorProperty * nvp = NULL;
 
-    if (nvp)
+    if (currentTelescope != NULL)
+    {
+        currentTelescope->getBaseDevice()->getNumber("TELESCOPE_INFO");
+    }
+    
+
+    if (nvp != NULL)
     {
         INumber *np = NULL;
 
:

Best regards
Daniel
8 years 11 months ago #4024

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

Time to create page: 0.834 seconds