Open ckuethe opened 1 year ago
This is good candidate to mark as "Won't fix", because segmentation fault happened within INDI client, because you causes emergency stopping for INDI server when INDI client is connected. You will get similar behaviour with KStars, when it configured to connect to the external INDI server and this server will stopped.
Does the INDI server broadcast a message "Closing now" to all clients? This should be expected and handled accordingly. If on the other hand INDI is killed by a crash, other programs "may" crash as well. Or whoever is familiar with the INDI code can add some protection code. (some try/catch handling?)
Does the INDI server broadcast a message "Closing now" to all clients?
No, as far as I know
This should be expected and handled accordingly. If on the other hand INDI is killed by a crash, other programs "may" crash as well. Or whoever is familiar with the INDI code can add some protection code. (some try/catch handling?)
We re-use official INDI-client and this client (reference implementation!) doesn’t have a “protection code”. Maybe latest versions of INDI something have, but I didn’t checked it.
I mean, try/catch can be added into Stellarium's INDI-related code by somebody familiar with its operations.
KStars does not crash when the remote INDI server goes away.
This is a good task for the community to participate in the contribution into Stellarium. Who wants to help us?
Started looking into this some more.
INDI is up to v1.9.9 while external/CMakeLists.txt imports 1.8.5. After installing libindi-dev 1.9.9 and compiling against that, Stellarium no longer crashes when the remote server shuts down.
Now I just need to figure out how to update the CMake recipe because a lot has changed in the last two and a half years.
Any progress here ?
Edit: good PR to track is #3269
Expected Behaviour
Stellarium should not crash when INDI server shuts down. A better approach would be to treat it like clicking "disconnect" in the telescope control panel.
Actual Behaviour
For as long as I can remember, Stellarium crashes with
SIGSEGV
if the connected INDI telescope shuts down. This has been happening since at least Stellarmate os 1.6.1 (dec 21/22) with INDI 1.6.3, all the way up to Stellarmate os 1.7.3 with INDI 1.9.7. Finally got around to a debug build so I can get you a backtrace.Steps to reproduce
System
RelWithDebInfo
INDI on host
INDI on telescope server
Logfile
Here's the output from running under GDB