Hello Ladislav,

I think this might be a general issue with the INDI GPhoto CCD driver, as I have tried to use both Canon EOS 450D and Canon EOS R7, running under both ManjaroLinux and ArchLinux with kstars 3.6.6, both with libindi-2.0.4 and libindi-gphoto 2.0.4.
Connecting the DSLRs works fine, also video preview work using the ' Streaming' 'Stream on' button; but a crash of the INDI GPhoto driver can be reproduced all the time on clicking the 'Record (Frames)' button. After showing a dialog box that the INDI GPhoto driver crashed and a countdown to zero also kstars crashes.

On kstars stdout I see two INDI GPhoto related messages:

  Dispatch command error(-1): INDI: Could not find property DRIVER_INFO in GPhoto CCD
  Dispatch command error(-1): INDI: Could not find property CCD_EXPOSURE in GPhoto CCD

I have re-built kstars from git with debug infos using the AUR (aur.archlinux.org) kstars-git, libindi-git and libindi-gphoto-git recipes:
* kstars 3.6.8 beta (= kstars-git 1:cfc274ad1-1)
* libindi-git v2.0.4.7.gb38785840-1
* libindi-gphoto-git v2.0.4.7.g4056c204-1

Re-runnind under gdb gave me this stacktrace (which occurs as soon as I clicked on 'Record (Frames)' in the GPhoto CCD 'Streaming' tab:
Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in  ()
#1  0x0000555555bac6ea in ISD::ConcreteDevice::getNumber(QString const&) const
	(this=this@entry=0x55555a240e80, name=...)
	at /usr/src/debug/kstars-git/kstars/kstars/indi/indiconcretedevice.cpp:107
#2  0x0000555555bc2c7c in ISD::CameraChip::isCapturing() (this=this@entry=0x555558abd3b0)
	at /usr/src/debug/kstars-git/kstars/kstars/indi/indicamerachip.cpp:532
#3  0x0000555555d2d570 in Ekos::Capture::refreshCameraSettings() (this=0x555558fafb50)
	at /usr/src/debug/kstars-git/kstars/kstars/ekos/capture/capture.cpp:708
#4  0x00007ffff4ed0b37 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff4ed2db7 in  () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff4ec35ee in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#7  0x00007ffff5b7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff4e9bbf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#9  0x00007ffff4eea26b in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#10 0x00007ffff4eea85a in  () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff3cb2f19 in g_main_dispatch (context=0x7fffe8000ec0) at ../glib/glib/gmain.c:3476
#12 0x00007ffff3d112b7 in g_main_context_dispatch_unlocked (context=0x7fffe8000ec0) at ../glib/glib/gmain.c:4284
#13 g_main_context_iterate_unlocked.isra.0
	(context=context@entry=0x7fffe8000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
	at ../glib/glib/gmain.c:4349
#14 0x00007ffff3cb1112 in g_main_context_iteration (context=0x7fffe8000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#15 0x00007ffff4eeaa1c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
	at /usr/lib/libQt5Core.so.5
#16 0x00007ffff4e9a904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#17 0x00007ffff4e9bda3 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#18 0x0000555555741845 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
	at /usr/src/debug/kstars-git/kstars/kstars/main.cpp:386
(gdb) 

The logfile looks like this:
INFO    0.002644 sec    : Session log file /home/klaus/.indi/logs/2023-10-08/indi_gphoto_ccd/indi_gphoto_ccd_19:24:33.log
INFO    0.740674 sec    : GPhoto CCD is online.
INFO    0.740713 sec    : Detected Canon.Inc Model Canon EOS R7.
INFO    1.022860 sec    : World Coordinate System is enabled.
INFO    1.023798 sec    : Session log file /home/klaus/.indi/logs/2023-10-08/indi_gphoto_ccd/indi_gphoto_ccd_19:24:33.log
INFO    1.023831 sec    : Upload settings set to client only.
INFO    1.025588 sec    : Capture target set to Internal RAM
INFO    1.025601 sec    : Images downloaded from camera will saved in the camera internal storage.
INFO    1.025619 sec    : Force BULB is enabled. All expsures shall be captured in BULB mode except for subsecond captures.
INFO    68.592097 sec   : Starting the video stream with target exposure 0.100000 s (Max theoritical FPS 10)
INFO    85.002103 sec   : Starting video record (Frame count): 5.
INFO    85.002200 sec   : Record file is /home/klaus/indi_2023-10-08/indi_record_2023-10-08@19-25-58.ser
INFO    85.178698 sec   : Waiting for all buffered frames to be recorded

Maybe that helps in tracking down the problem?

Kind regards,
Klaus

Read More...