×

INDI Library v1.9.4 Released (17 Jan 2022)

Bimonthly Stable INDI Library release introduces new drivers and fixes for existing ones. Some highlights:

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
6 years 9 months ago #4024

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

Time to create page: 0.315 seconds