Bug 453634

Summary: Ekos Crash on connect to Camera
Product: [Applications] kstars Reporter: BoFranklin <frnklnb>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: 3.5.8   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Ekos screen before selecting Connect - then crash

Description BoFranklin 2022-05-10 17:10:37 UTC
Created attachment 148712 [details]
Ekos screen before selecting Connect - then crash

SUMMARY
KStars/EKOS had been working fine with RPi4 via IndiGo server and LX200 (AdvGT5 ) Mount/ASI 120MC Camera
Now it crashes every time I connect to the ASI 120  camera


STEPS TO REPRODUCE
1. Restart RPi4, Start KStars, Start Ekos
2.  Connect to Mount - ok - can GoTo any selected star
3. Connect to Camera - Kstars crashes just after putting up "Advanced" Tab
4. Turned on Ekos Logging
5. Log with crash always has :-
[2022-05-10T17:35:42.308 GMT Daylight Time DEBG ][           org.kde.kstars.indi] - Received new device ZWO ASI120MC-S #0
[2022-05-10T17:35:42.308 GMT Daylight Time WARN ][                       default] - QObject: Cannot create children for a parent that is in a different thread.
(Parent is ClientManager(0x25b96efa6d0), parent's thread is QThread(0x25b8b632d30), current thread is QThread(0x25b9f0fec30)
[2022-05-10T17:35:42.340 GMT Daylight Time DEBG ][           org.kde.kstars.indi] - Received new device ZWO ASI120MC-S Guider #0

6. Crash only occurs if trying to connect to camera 
- was fine for weeks until today I connected camera to ASI Studio to check exposure settings
after this I reconnected to Rpi and restarted - Ekos now crashes on connect to Camera 
- after this it crashes on connect to Ekos unless I restart Rpi 
- if I restart Rpi it crashes on camera connect

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS  I am on Windows pro
Windows: Windows 10 Pro 21H2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version:  Version 5.92.0
Qt Version:  Version 5.15.2 (built against 5.15.2)
KStars Build: 2022-03-25T03:34:52Z

ADDITIONAL INFORMATION
Comment 1 Jasem Mutlaq 2022-05-11 05:31:17 UTC
Does this crash with INDI server?
Comment 2 BoFranklin 2022-05-11 12:02:25 UTC
OK I tried with Indi Server insead of IndiGo and crash was same on remote KStars. 
However I noticed I had selected Zwo Camera 1 -- by mistake

As soon as I selected Zwo CCD - it connected OK