Bug 465026 - Ecos unable to use any devices that are connected via remote INDI connection
Summary: Ecos unable to use any devices that are connected via remote INDI connection
Status: REPORTED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.6.2
Platform: Compiled Sources Other
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-30 06:30 UTC by nielsrackwitz
Modified: 2023-02-05 21:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
KStars session log (13.02 KB, text/plain)
2023-01-31 03:06 UTC, nielsrackwitz
Details
OSX 3.6.3-Beta log file (10.31 KB, text/plain)
2023-01-31 03:44 UTC, nielsrackwitz
Details
OSX 3.6.1-Stable Session Log (16.89 KB, text/plain)
2023-01-31 04:24 UTC, nielsrackwitz
Details
New Profile with simulators - port selection is enabled (167.44 KB, image/png)
2023-02-05 21:34 UTC, nielsrackwitz
Details
Port selection enabled, ECOS CCD Tab (568.98 KB, image/png)
2023-02-05 21:36 UTC, nielsrackwitz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nielsrackwitz 2023-01-30 06:30:07 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Connect single board computer to main computer via ethernet connection
2. Connect camera/mount via USB to singe board computer 
3. Start indiserver and camera/mount drivers on single board computer
4. Configure ECOS profile to use remote Indi server running on remote singe board computer
5. In Indi panel, connect all equipment that is connected to the remote computer
6. Once all equipment shows to be successfully connected in the Indi panel and main computer can operate devices (i.e. capture frame from camera, slew mount) ECOS does not open the little imaging train window and I am unable to configure an imaging train with my connected equipment. Although the capture and guide tabs in ECOS are showing up, ECOS does not allow me to select the connected camera or mount. 
7. If the same equipment is connected to the main computer, all works fine. 
8. If I use a Stars 3.6.1 installation for OSX, I am able create an imaging train and to operate my equipment from the remote connection within ECOS


OBSERVED RESULT


EXPECTED RESULT
ECOS should allow me to use equipment from a remote connection.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KStars 3.6.2 stable (2022-12-07)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.78.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
In this case the main computer running KStars 3.6.2-stable is an RPi4 with Bullseye 64 bit. KStars was built from source.
The working KStars version 3.6.1-stable is running on OSX 13.1 and was  installed from dmg installer.
Comment 1 Jasem Mutlaq 2023-01-30 07:18:18 UTC
Same issue with 3.6.3 beta for MacOS? https://www.indilib.org/forum/ekos/12943-kstars-macos-3-6-3-beta-dmg-please-test.html#89998

Please check and let us know.
Comment 2 nielsrackwitz 2023-01-31 03:06:50 UTC
Created attachment 155816 [details]
KStars session log

The problem seems to specifically occur when I try to connect my mount via remote connection, in which KStars gives me the following warnings:

2023-01-30T21:55:38.060 EST INFO ][           org.kde.kstars.ekos] - "INDI services started. Connection to remote INDI server 169.254.25.151:7,625 is successful. Waiting for devices..."
[2023-01-30T21:55:38.171 EST INFO ][           org.kde.kstars.ekos] - Ekos received a new device:  "QHY CCD QHY5III290M-c9d"
[2023-01-30T21:55:38.363 EST INFO ][           org.kde.kstars.ekos] - Ekos received a new device:  "Celestron GPS"
[2023-01-30T21:55:38.364 EST INFO ][           org.kde.kstars.ekos] - "Remote devices established. Please connect devices."
[2023-01-30T21:55:38.721 EST INFO ][           org.kde.kstars.ekos] - "QHY CCD QHY5III290M-c9d" is connected and ready.
[2023-01-30T21:55:38.723 EST INFO ][           org.kde.kstars.ekos] - "Celestron GPS" is connected and ready.
[2023-01-30T21:55:42.766 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Celestron GPS is online. "
[2023-01-30T21:55:43.016 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Controller version: 5.31 "
[2023-01-30T21:55:43.019 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Mount model: AVX "
[2023-01-30T21:55:43.251 EST INFO ][           org.kde.kstars.ekos] - "Celestron GPS" is connected and ready.
[2023-01-30T21:55:44.106 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:502:17: QML MouseArea: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
[2023-01-30T21:55:44.142 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:428: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.142 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:434: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.142 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:442: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.142 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:479: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.142 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:530: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.142 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:548: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.143 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:566: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.143 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:583: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.143 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:600: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.143 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:617: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.143 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:641: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.143 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:701: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:723: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:745: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:761: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:796: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:830: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:867: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.144 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:878: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.145 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:885: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.145 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:901: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.145 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:914: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.145 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:927: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.145 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:939: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.145 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:958: ReferenceError: xi18n is not defined
[2023-01-30T21:55:44.146 EST WARN ][                       default] - qrc:/qml/mount/mountbox.qml:967: ReferenceError: xi18n is not defined
[2023-01-30T21:55:45.346 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Mount is unparked. "
[2023-01-30T21:55:45.348 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Mount is unparked. "
[2023-01-30T21:55:45.444 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Mount supports guiding. "
[2023-01-30T21:55:45.449 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Mount UTC offset: -5.00. UTC time: 2023-01-31T02:54:52. DST: Off "
[2023-01-30T21:55:45.502 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Loading device configuration... "
[2023-01-30T21:55:45.595 EST INFO ][           org.kde.kstars.indi] - Celestron GPS :  "[INFO] Dome Policy set to: Dome ignored. Mount can park or unpark regardless
Comment 3 nielsrackwitz 2023-01-31 03:15:28 UTC
Hi Jasem,

I tried a few more things around my setup and found that the problem only happens when I am trying to connect a camera and mount together from remote - connecting a remote camera alone works well. 

I also tested with a Linux KStars compiled from the KStars-3.6.1-Stable branch and this version has the same problem. Since The 3.6.1-Stable version works on my OSX machine it seems to be a Linux-specific picture. 

I will see get the latest master snapshot and also try out that one.
Comment 4 nielsrackwitz 2023-01-31 03:44:55 UTC
Created attachment 155818 [details]
OSX 3.6.3-Beta log file

The OSX 3.6.3. beta also doesn't pop up the image train configuration, the KStars session log attached.
Comment 5 nielsrackwitz 2023-01-31 04:24:32 UTC
Created attachment 155819 [details]
OSX 3.6.1-Stable Session Log

This is a session log from OSX KStars-3.6.1-Stable with which I can connect both mount and camera via remote and with which ECOS tabs successfully populate with the image train information. It does complain about the xi18n reference error, too, thus that might not be that important. The one difference that I see in this log is a line about the optical train db:

2023-01-30T23:07:20.614 EST WARN ][                       default] - QSqlDatabasePrivate::addDatabase: duplicate connection name 'opticaltrains_db', old connection removed.

I'm not sure if somehow my profile got corrupted with newer versions than 3.6.1?
Comment 6 nielsrackwitz 2023-02-05 21:32:38 UTC
After a bit more investigation I realize that the Optical Train dialog not showing seems to be related to whether port selection is enabled or disabled in the profile. If port selection is enabled - as seems to be the default for new profiles - then the Optical Train dialog will not show for me, thus I can't assign any connected devices to be used with ECOS. Also, while port selection is enabled in a new profile, the port selection dialog in my case does not show.

In contrast to my initial thought it seems to be irrelevant whether the device connections are local or remote. Some steps to replicate with KStars 3.6.3 on OSX based on simulators:

1) Create new profile with local INDI, port selection is ENABLED,
2) Add simulators for mount and CCD,
3) Connect devices (simulators) - here, Optical Train dialog will not show, thus I can't assign simulators to an optical train. Also, neither the port selection dialog shows. 
4) Switch into ECOS CCD tab. No optical train and hence no CCD can be selected, thus no frame can be captured although simulators are connected. 

5) Create new profile with local INDI and disable port selection,
6) Add simulators for mount and CCD,
7) Connect devices (simulators) - now Optical train dialog will show and I can assign simulators to an optical train,
8) Now when switching into ECOS CCD tab I can select and optical train and the CCD simulator and capture a frame.

A few screen shots are attached.
Comment 7 nielsrackwitz 2023-02-05 21:34:37 UTC
Created attachment 155984 [details]
New Profile with simulators - port selection is enabled

New simulator profile with port selection enabled (default)
Comment 8 nielsrackwitz 2023-02-05 21:36:47 UTC
Created attachment 155985 [details]
Port selection enabled, ECOS CCD Tab

ECOS CCD tab does features are disabled, no option to select connected CCD simulator.