×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

QSI driver crashes after connection to camera

  • Posts: 66
  • Thank you received: 2
ubuntu 15.10 + kstars bleeding 2.6.0

Strange behavior of the QSI driver. As from the log below, it connects to the QSI camera, apparently without problems. But then it immediately crashes - as reported by a kstars pop-up warning. And of course buttons of the control panel do not perform any action (except disconnect).

I kept both system and indi updated, rebooted, but no change.

2016-06-09T07:01:23: startup: /usr/bin/indiserver -v -p 7624 -m 100 -f /tmp/indififoe2e831bd
2016-06-09T07:01:23: listening to port 7624 on fd 3
FIFO: start indi_qsi_ccd -n "QSI CCD"
With name:
FIFO: Starting driver indi_qsi_ccd
2016-06-09T07:01:23: Driver indi_qsi_ccd: pid=2377 rfd=4 wfd=7 efd=8
2016-06-09T07:01:23: Client 5: new arrival from 127.0.0.1:37840 - welcome!
2016-06-09T07:01:23: Driver indi_qsi_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2016-06-09T07:01:23: Driver indi_qsi_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2016-06-09T07:01:23: Driver indi_qsi_ccd: snooping on CCD Simulator.FILTER_SLOT
2016-06-09T07:01:23: Driver indi_qsi_ccd: snooping on CCD Simulator.FILTER_NAME
2016-06-09T07:01:28: Driver indi_qsi_ccd: stderr EOF
2016-06-09T07:01:28: Driver indi_qsi_ccd: restart #1
2016-06-09T07:01:28: Driver indi_qsi_ccd: pid=2383 rfd=4 wfd=8 efd=9
2016-06-09T07:01:28: Driver indi_qsi_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2016-06-09T07:01:28: Driver indi_qsi_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2016-06-09T07:01:28: Driver indi_qsi_ccd: snooping on CCD Simulator.FILTER_SLOT
2016-06-09T07:01:28: Driver indi_qsi_ccd: snooping on CCD Simulator.FILTER_NAME
7 years 10 months ago #8721

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

It works fine here. Please try to debug the driver
7 years 10 months ago #8725

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

  • Posts: 66
  • Thank you received: 2
The crash is still there. I tried to launch the debug version by gdb and I get the following output:

(gdb) run
Starting program: /usr/local/bin/indiserver -v indi_qsi_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2016-06-12T19:49:15: startup: /usr/local/bin/indiserver -v indi_qsi_ccd
[New process 5998]
2016-06-12T19:49:15: Driver indi_qsi_ccd: pid=5998 rfd=3 wfd=6 efd=7
2016-06-12T19:49:15: listening to port 7624 on fd 4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 5998 is executing new program: /usr/bin/indi_qsi_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on CCD Simulator.FILTER_SLOT
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on CCD Simulator.FILTER_NAME
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on .EQUATORIAL_EOD_COORD
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on .TELESCOPE_INFO
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on .FILTER_SLOT
2016-06-12T19:49:15: Driver indi_qsi_ccd: snooping on .FILTER_NAME

then it stops. Log for kstars in verbose mode is below (I just try ekos with telescope simulator and QSI ccd). Note at 21:50:26.924 the stderr EOF (is that normal?) followed by a restart #1...
At 21:50:26.924 is the last communication from indiserver probably when I get the alert that qsi driver crashes. The following line I click on the "disconnect" button of the qsi control panel...

2016-06-12T21:50:17.808 - DEBG - Ekos: "Starting INDI services..."
2016-06-12T21:50:17.808 - DEBG - INDI: Starting local drivers...
2016-06-12T21:50:17.822 - DEBG - INDI: INDI Server started locally on port 7625
2016-06-12T21:50:17.822 - DEBG - INDIListener: Adding a new client manager to IN
DI listener..
2016-06-12T21:50:17.822 - DEBG - INDI: Connecting to local INDI server on port
7625 ...
2016-06-12T21:50:17.823 - DEBG - Connection to INDI server is successful
2016-06-12T21:50:17.823 - DEBG - Ekos: "INDI services started on port 7625. Ple
ase connect devices."
2016-06-12T21:50:17.826 - DEBG - Received new device Telescope Simulator
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: startup: /u
sr/bin/indiserver -v -p 7625 -m 100 -f /tmp/indififoe58aa907 "
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: listening t
o port 7625 on fd 3"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "FIFO: start indi_simulator_teles
cope -n "Telescope Simulator""
2016-06-12T21:50:17.832 - DEBG - INDI Server: "With name: "
2016-06-12T21:50:17.832 - DEBG - INDI Server: "FIFO: Starting driver indi_simul
ator_telescope"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_simulator_telescope: pid=6037 rfd=4 wfd=7 efd=8"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "FIFO: start indi_qsi_ccd -n "QSI
CCD""
2016-06-12T21:50:17.832 - DEBG - INDI Server: "With name: "
2016-06-12T21:50:17.832 - DEBG - INDI Server: "FIFO: Starting driver indi_qsi_c
cd"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: pid=6038 rfd=5 wfd=10 efd=11"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Client 6: n
ew arrival from 127.0.0.1:37680 - welcome!"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on Telescope Simulator.TELESCOPE_INFO"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on CCD Simulator.FILTER_SLOT"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on CCD Simulator.FILTER_NAME"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on .EQUATORIAL_EOD_COORD"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on .TELESCOPE_INFO"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on .FILTER_SLOT"
2016-06-12T21:50:17.832 - DEBG - INDI Server: "2016-06-12T19:50:17: Driver indi
_qsi_ccd: snooping on .FILTER_NAME"
2016-06-12T21:50:17.832 - DEBG - INDI Server: ""
2016-06-12T21:50:17.836 - DEBG - Received new device QSI CCD
2016-06-12T21:50:17.836 - DEBG - INDIListener: Processing device Telescope Simu
lator
2016-06-12T21:50:17.836 - DEBG - Ekos received a new device: Telescope Simulato
r
2016-06-12T21:50:17.836 - DEBG - < Telescope Simulator >: < CONNECTION >
2016-06-12T21:50:17.838 - DEBG - < Telescope Simulator >: < DRIVER_INFO >
2016-06-12T21:50:17.840 - DEBG - < Telescope Simulator >: < DEBUG >
2016-06-12T21:50:17.840 - DEBG - < Telescope Simulator >: < CONFIG_PROCESS >
2016-06-12T21:50:17.841 - DEBG - < Telescope Simulator >: < DEVICE_PORT >
2016-06-12T21:50:17.857 - DEBG - INDIListener: Processing device QSI CCD
2016-06-12T21:50:17.857 - DEBG - Ekos received a new device: QSI CCD
2016-06-12T21:50:17.857 - DEBG - < QSI CCD >: < CONNECTION >
2016-06-12T21:50:17.859 - DEBG - < QSI CCD >: < DRIVER_INFO >
2016-06-12T21:50:17.864 - DEBG - < QSI CCD >: < DEBUG >
2016-06-12T21:50:17.865 - DEBG - < QSI CCD >: < CONFIG_PROCESS >
2016-06-12T21:50:17.866 - DEBG - < QSI CCD >: < ACTIVE_DEVICES >
2016-06-12T21:50:25.134 - DEBG - QSI CCD : "Attempting to find QSI CCD... "
2016-06-12T21:50:26.723 - DEBG - QSI CCD : "CCD is online. Retrieving basic dat
a. "
2016-06-12T21:50:26.723 - DEBG - QSI CCD is connected.
2016-06-12T21:50:26.723 - DEBG - Managed Devices: 2 Remote Devices: 0
2016-06-12T21:50:26.723 - DEBG - Connected Devices: 1 nDevices: 0
2016-06-12T21:50:26.743 - DEBG - < QSI CCD >: < CCD_EXPOSURE >
2016-06-12T21:50:26.811 - DEBG - Ekos: "QSI CCD is online."
2016-06-12T21:50:26.812 - DEBG - < QSI CCD >: < CCD_ABORT_EXPOSURE >
2016-06-12T21:50:26.813 - DEBG - < QSI CCD >: < CCD_FRAME >
2016-06-12T21:50:26.815 - DEBG - < QSI CCD >: < CCD_BINNING >
2016-06-12T21:50:26.816 - DEBG - < QSI CCD >: < CCD_TEMPERATURE >
2016-06-12T21:50:26.818 - DEBG - < QSI CCD >: < CCD_INFO >
2016-06-12T21:50:26.820 - DEBG - < QSI CCD >: < CCD_COMPRESSION >
2016-06-12T21:50:26.821 - DEBG - < QSI CCD >: < CCD1 >
2016-06-12T21:50:26.822 - DEBG - < QSI CCD >: < TELESCOPE_TIMED_GUIDE_NS >
2016-06-12T21:50:26.824 - DEBG - < QSI CCD >: < TELESCOPE_TIMED_GUIDE_WE >
2016-06-12T21:50:26.824 - DEBG - Ekos: "Guider port from QSI CCD is ready."
2016-06-12T21:50:26.828 - DEBG - < QSI CCD >: < CCD_FRAME_TYPE >
2016-06-12T21:50:26.828 - DEBG - < QSI CCD >: < CCD_FRAME_RESET >
2016-06-12T21:50:26.828 - DEBG - < QSI CCD >: < CCD_RAPID_GUIDE >
2016-06-12T21:50:26.829 - DEBG - < QSI CCD >: < WCS_CONTROL >
2016-06-12T21:50:26.830 - DEBG - < QSI CCD >: < UPLOAD_MODE >
2016-06-12T21:50:26.831 - DEBG - < QSI CCD >: < UPLOAD_SETTINGS >
2016-06-12T21:50:26.837 - DEBG - < QSI CCD >: < CCD_COOLER >
2016-06-12T21:50:26.839 - DEBG - < QSI CCD >: < CCD_SHUTTER >
2016-06-12T21:50:26.845 - DEBG - < QSI CCD >: < CCD_COOLER_POWER >
2016-06-12T21:50:26.847 - DEBG - < QSI CCD >: < FILTER_SLOT >
2016-06-12T21:50:26.847 - DEBG - Ekos: "QSI CCD filter is online."
2016-06-12T21:50:26.849 - DEBG - < QSI CCD >: < FILTER_WHEEL_MOTION >
2016-06-12T21:50:26.851 - DEBG - QSI CCD : "The CCD Temperature is 25.760000. "
2016-06-12T21:50:26.864 - DEBG - QSI CCD : "QSI Series 600 Camera "
2016-06-12T21:50:26.865 - DEBG - QSI CCD : "The filter count is 5 "
2016-06-12T21:50:26.865 - DEBG - < QSI CCD >: < Gain >
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: stderr EOF"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: restart #1"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: pid=6045 rfd=5 wfd=11 efd=12"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on Telescope Simulator.TELESCOPE_INFO"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on CCD Simulator.FILTER_SLOT"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on CCD Simulator.FILTER_NAME"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on .EQUATORIAL_EOD_COORD"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on .TELESCOPE_INFO"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on .FILTER_SLOT"
2016-06-12T21:50:26.924 - DEBG - INDI Server: "2016-06-12T19:50:26: Driver indi
_qsi_ccd: snooping on .FILTER_NAME"
2016-06-12T21:50:26.924 - DEBG - INDI Server: ""
2016-06-12T21:50:32.575 - DEBG - QSI CCD is disconnected.

I'm on Linux 15.10 and I keep indi synced to the last version....
7 years 10 months ago #8803

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

I see you are running from /usr/local, did you compile it yourself? If you're using the PPA, make sure to delete everything in /usr/local/bin, /usr/local/lib, /usr/local/share, /usr/local/include
7 years 10 months ago #8804

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

  • Posts: 66
  • Thank you received: 2
ok, that's right there was a confusion between ppa and recompiled version, I got rid of both, reinstalled the whole indi and kstars distribution + dependencies and retried.

No improvement. I just note that in addition the system log by the dmesg command records the segmentation fault of the driver:
[42643.735891] usb 1-1.2: Product: QSI 600 Series Camera
[42643.735893] usb 1-1.2: Manufacturer: QSI
[42643.735895] usb 1-1.2: SerialNumber: 00601295
[42676.925427] indi_qsi_ccd[18530]: segfault at 1 ip 00007f9aba8e5462 sp 00007fff561048f0 error 4 in libc-2.21.so[7f9aba897000+1c0000]
7 years 10 months ago #8813

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

  • Posts: 66
  • Thank you received: 2
I decided to upgrade to Linux 16.04, thinking to a problem with the libc library. I was really thinking that starting from scratch would help. But no, nothing changes and the crash occurs as before.
I found the "crash" log that I attach here - but its interpretation goes beyond my level of understanding :blink:

from /var/crash/_usr_bin_indi_qsi_ccd.1000.crash

File Attachment:

File Name: _usr_bin_i...rash.txt
File Size:316 KB
7 years 10 months ago #8817
Attachments:

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

  • Posts: 712
  • Thank you received: 174
Jasem, this looks exactly the same as on Mac. It does work with AstroImager built-in driver and doesn't with INDI driver. The only difference I see is that the first one uses FTD2XX while the later FTDI. Maybe check this. Peter
The following user(s) said Thank You: Paolo
7 years 10 months ago #8822

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

It was traced to an SDK bug which is fixed now (with help from Peter). So hopefully it will work in the next daily build.
The following user(s) said Thank You: Paolo
7 years 10 months ago #8830

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

  • Posts: 66
  • Thank you received: 2
Very good news thank you!
7 years 10 months ago #8831

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

  • Posts: 66
  • Thank you received: 2
Tested, I confirm that now it's working perfectly again!
Paolo
7 years 10 months ago #8847

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

Time to create page: 0.592 seconds