Russ Williams replied to the topic 'Webcam / Linux / Newb / Crash!' in the forum. 2 years ago

Looking back over my original posting, I realized that I ran the debugger on kstars and not the driver.

So here's gdb output debugging indi-webcam_ccd:

$ gdb --ex run --eval-command="set follow-fork-mode child" --args indiserver -v indi_webcam_ccd
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from indiserver...
Reading symbols from /usr/lib/debug/.build-id/94/154eaa44e49c5279c5d375a1a8bfcd6d12889e.debug...
Starting program: /usr/bin/indiserver -v indi_webcam_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2022-10-30T16:56:46: startup: /usr/bin/indiserver -v indi_webcam_ccd
[Detaching after fork from child process 43999]
2022-10-30T16:56:46: Driver indi_webcam_ccd: pid=43999 rfd=6 wfd=6 efd=7
2022-10-30T16:56:46: listening to port 7624 on fd 5
2022-10-30T16:56:46: Local server: listening on local domain at: @/tmp/indiserver
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Telescope Simulator.EQUATORIAL_COORD
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Telescope Simulator.GEOGRAPHIC_COORD
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Telescope Simulator.TELESCOPE_PIER_SIDE
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Rotator Simulator.ABS_ROTATOR_ANGLE
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Focuser Simulator.ABS_FOCUS_POSITION
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on Focuser Simulator.FOCUS_TEMPERATURE
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on CCD Simulator.FILTER_SLOT
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on CCD Simulator.FILTER_NAME
2022-10-30T16:56:46: Driver indi_webcam_ccd: snooping on SQM.SKY_QUALITY

Launch kstars
Open ekos window
'Start' ekos
pop-up window:
"indi server is running, do you want to kill it?" -- Hit "Cancel" to keep the one that's running


2022-10-30T16:57:46: Client 9: new arrival from local pid 44106 (user: 1000:1000) - welcome!
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] fd:4 capabilities:84a00001
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] Current input_channel: 0, input_name: Camera 1, input_std: 0
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] The V4L2 driver changed the pixel format from 0x32315559 to 0x56595559
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] Trying to set codec:rawvideo pix_fmt:yuv420p
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] The V4L2 driver changed the pixel format from 0x32315559 to 0x56595559
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] Trying to set codec:rawvideo pix_fmt:yuv420p
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] The V4L2 driver changed the pixel format from 0x32315659 to 0x56595559
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] Trying to set codec:rawvideo pix_fmt:yuv422p
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] The V4L2 driver changed the pixel format from 0x50323234 to 0x56595559
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] Trying to set codec:rawvideo pix_fmt:yuyv422
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] Setting time per frame to 1/30
2022-10-30T16:58:21: Driver indi_webcam_ccd: [video4linux2,v4l2 @ 0x5555555b77c0] All info found
2022-10-30T16:58:21: Driver indi_webcam_ccd: Impossible IPState 4
2022-10-30T16:58:21: Client 10: new arrival from local pid 44106 (user: 1000:1000) - welcome!
2022-10-30T16:58:21: Driver indi_webcam_ccd: read: Connection reset by peer
<delProperty device="INDI Webcam"/>
2022-10-30T16:58:21: Driver indi_webcam_ccd: restart #0
[Detaching after fork from child process 44228]
2022-10-30T16:58:21: Driver indi_webcam_ccd: pid=44228 rfd=7 wfd=7 efd=11
2022-10-30T16:58:21: Client 9: read EOF
2022-10-30T16:58:21: Client 9: shut down complete - bye!
2022-10-30T16:58:21: Client 10: read EOF
2022-10-30T16:58:21: Client 10: shut down complete - bye!
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Telescope Simulator.EQUATORIAL_COORD
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Telescope Simulator.TELESCOPE_INFO
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Telescope Simulator.GEOGRAPHIC_COORD
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Telescope Simulator.TELESCOPE_PIER_SIDE
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Rotator Simulator.ABS_ROTATOR_ANGLE
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Focuser Simulator.ABS_FOCUS_POSITION
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on Focuser Simulator.FOCUS_TEMPERATURE
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on CCD Simulator.FILTER_SLOT
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on CCD Simulator.FILTER_NAME
2022-10-30T16:58:21: Driver indi_webcam_ccd: snooping on SQM.SKY_QUALITY

<END> note: gdb did not "break"

Now I'm getting confused. Indiserver is still running? Driver is not "crashing" but shutting itself down?

What is the peer in "connection reset by peer"?

and why is "IPstate 4" impossible?

Read More...