×
INDI Library v1.8.6 Released (21 Aug 2020)

August 2020 release of INDI Library v1.8.6 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Ekos SIGSEGV after connecting to CCD

5 years 5 months ago
dl7vkj
Fresh Boarder
Fresh Boarder
Posts: 10
More
Topic Author
Ekos SIGSEGV after connecting to CCD #4024
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

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

Time to create page: 0.312 seconds