indilib / indi-3rdparty

INDI 3rd Party drivers repository
https://www.indilib.org/devices.html
GNU Lesser General Public License v2.1
129 stars 212 forks source link

INDI ASI CCD Driver "CCD_CAPTURE_FORMAT" is obtained empty in first connection #689

Open nicomedia opened 1 year ago

nicomedia commented 1 year ago

Describe the bug I have custom indi client application. I am working with "indiserver -vvv indi_asi_ccd". At first connection, "CCD_CAPTURE_FORMAT" property is obtained empty. If i stop indi client and re-run again, application could obtain "CCD_CAPTURE_FORMAT" with valid values. If i restart the indiserver again, indi client could not get the value of "CCD_CAPTURE_FORMAT" at first connection.

To Reproduce Exact steps to reproduce the behavior.

  1. Run "indiserver indi_asi_ccd"
  2. Run indi client application
  3. Get "CCD_CAPTURE_FORMAT" with empty values
  4. Kill indi client application
  5. Rerun indi client application (while indiserver is running)
  6. Get "CCD_CAPTURE_FORMAT" with correct values

Expected behavior Get "CCD_CAPTURE_FORMAT" with correct values after first connection

Log File emptyCCDcaptureFormat.txt

MarkkuSiitonen commented 2 months ago

So this bug seems to be present in the latest version of indi_sx_ccd, previous version worked just fine..

2024-09-01T18:11:45: [INFO] World Coordinate System is enabled. 2024-09-01T18:11:44: [INFO] Device configuration applied. 2024-09-01T18:11:44: [ERROR] CCD_CAPTURE_FORMAT: newSwitchVector with no valid members 2024-09-01T18:11:44: [INFO] Upload settings set to client only. 2024-09-01T18:11:44: [INFO] Loading device configuration... 2024-09-01T18:11:44: [INFO] Device configuration saved. 2024-09-01T18:11:44: [INFO] Saving device configuration...