×

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

Bi-monthly release with minor bug fixes and improvements

GPhoto driver crashes

  • Posts: 29
  • Thank you received: 2
Hello,

I have noticed that since I updated INDI on my machines (on saturday for the earliest one), the GPhoto driver always crashes when I try to start it. I have tested with both the Nikon D40X and D90 cameras. I've tested it with the following configurations:
  • Raspberry Pi with Raspbian Jessie, INDI updated with today's package
  • The camera directly plugged on a laptop running the latest Ekos VM. INDI was using the saturday build, but I updated it to today's build, and it does the same

Besides, I have tested to take a picture in commandline using gphoto2, and it works, so this issue comes from INDI.

In the INDI logs, it just says
indi_gphoto_ccd: stderr EOF
then
indi_gphoto_ccd: restart #3

And in the indi_gphoto_ccd debug logs, I get the following:
INFO	7.029996 sec	: Session log file /tmp/indi_gphoto_ccd_2016-07-13T09:35:31.log
DEBUG	8.722840 sec	: Mirror lock value: 0.000000
DEBUG	8.722922 sec	: Opening gphoto
DEBUG	8.722949 sec	: Camera init.  Takes about 10 seconds.
DEBUG	9.533430 sec	: Finding exposure widget...
DEBUG	9.533642 sec	: Exposure Widget: shutterspeed2
DEBUG	9.533711 sec	: 		    0: 1/4000
DEBUG	9.533759 sec	: 		    1: 1/3200
DEBUG	9.533800 sec	: 		    2: 1/2500
DEBUG	9.533839 sec	: 		    3: 1/2000
DEBUG	9.533903 sec	: 		    4: 1/1600
DEBUG	9.533961 sec	: 		    5: 1/1250
DEBUG	9.534001 sec	: 		    6: 1/1000
DEBUG	9.534039 sec	: 		    7: 1/800
DEBUG	9.534081 sec	: 		    8: 1/640
DEBUG	9.534119 sec	: 		    9: 1/500
DEBUG	9.534157 sec	: 		   10: 1/400
DEBUG	9.534194 sec	: 		   11: 1/320
DEBUG	9.534232 sec	: 		   12: 1/250
DEBUG	9.534269 sec	: 		   13: 1/200
DEBUG	9.534306 sec	: 		   14: 1/160
DEBUG	9.534345 sec	: 		   15: 1/125
DEBUG	9.534407 sec	: 		   16: 1/100
DEBUG	9.534459 sec	: 		   17: 1/80
DEBUG	9.534498 sec	: 		   18: 1/60
DEBUG	9.534536 sec	: 		   19: 1/50
DEBUG	9.534580 sec	: 		   20: 1/40
DEBUG	9.534606 sec	: 		   21: 1/30
DEBUG	9.534625 sec	: 		   22: 1/25
DEBUG	9.534642 sec	: 		   23: 1/20
DEBUG	9.534659 sec	: 		   24: 1/15
DEBUG	9.534675 sec	: 		   25: 1/13
DEBUG	9.534691 sec	: 		   26: 1/10
DEBUG	9.534707 sec	: 		   27: 1/8
DEBUG	9.534723 sec	: 		   28: 1/6
DEBUG	9.534739 sec	: 		   29: 1/5
DEBUG	9.534755 sec	: 		   30: 1/4
DEBUG	9.534772 sec	: 		   31: 1/3
DEBUG	9.534788 sec	: 		   32: 10/25
DEBUG	9.534804 sec	: 		   33: 1/2
DEBUG	9.534820 sec	: 		   34: 10/16
DEBUG	9.534836 sec	: 		   35: 10/13
DEBUG	9.534852 sec	: 		*  36: 1
DEBUG	9.534868 sec	: 		   37: 13/10
DEBUG	9.535032 sec	: 		   38: 16/10
DEBUG	9.535078 sec	: 		   39: 2
DEBUG	9.535117 sec	: 		   40: 25/10
DEBUG	9.535155 sec	: 		   41: 3
DEBUG	9.535192 sec	: 		   42: 4
DEBUG	9.535229 sec	: 		   43: 5
DEBUG	9.535269 sec	: 		   44: 6
DEBUG	9.535308 sec	: 		   45: 8
DEBUG	9.535346 sec	: 		   46: 10
DEBUG	9.535407 sec	: 		   47: 13
DEBUG	9.535457 sec	: 		   48: 15
DEBUG	9.535496 sec	: 		   49: 20
DEBUG	9.535533 sec	: 		   50: 25
DEBUG	9.535570 sec	: 		   51: 30
DEBUG	9.535607 sec	: 		   52: Bulb

It looks like there is something wrong with the exposure widget?
Last edit: 7 years 9 months ago by Clément.
7 years 9 months ago #9265

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

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic GPhoto driver crashes

Hello,

Has anyone been able to reproduce this issue? I still have it, so I cannot use my Nikon cameras on my telescopes for the moment...
7 years 8 months ago #9369

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

Replied by Jasem Mutlaq on topic GPhoto driver crashes

Read Before you Post Questions . Specifically on #3 Debugging INDI Crashes
7 years 8 months ago #9376

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

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic GPhoto driver crashes

The program indeed segfaults, below is the GDB backtrace.
The segfault happens when the program tries to access the attribute format_widget, which is a null pointer; with a breakpoint before the segfault, printing the attribute returns 0x0:
(gdb) print gphoto->format_widget
$3 = (gphoto_widget *) 0x0
#0  0x0001f87c in gphoto_open (shutter_release_port=0x0)
    at /home/pi/Packages/indi-gphoto/indi-gphoto/indi-gphoto/gphoto_driver.cpp:935
#1  0x00017880 in GPhotoCCD::Connect (this=0x36230)
    at /home/pi/Packages/indi-gphoto/indi-gphoto/indi-gphoto/gphoto_ccd.cpp:575
#2  0x76eedc3c in INDI::DefaultDevice::ISNewSwitch (this=this@entry=0x36230, dev=dev@entry=0x361d8 "GPhoto CCD",
    name=name@entry=0x41c60 "CONNECTION", states=states@entry=0x41e28, names=names@entry=0x41e38, n=1, n@entry=107192)
    at /home/pi/Packages/libindi/libindi/libindi/libs/indibase/defaultdevice.cpp:215
#3  0x76efae58 in INDI::CCD::ISNewSwitch (this=this@entry=0x36230, dev=dev@entry=0x361d8 "GPhoto CCD",
    name=name@entry=0x41c60 "CONNECTION", states=states@entry=0x41e28, names=names@entry=0x41e38, n=1, n@entry=100864)
    at /home/pi/Packages/libindi/libindi/libindi/libs/indibase/indiccd.cpp:1520
#4  0x0001a2b8 in GPhotoCCD::ISNewSwitch (this=0x36230, dev=0x361d8 "GPhoto CCD", name=0x41c60 "CONNECTION",
    states=0x41e28, names=0x41e38, n=1) at /home/pi/Packages/indi-gphoto/indi-gphoto/indi-gphoto/gphoto_ccd.cpp:515
#5  0x00018a00 in ISNewSwitch (dev=0x361d8 "GPhoto CCD", name=0x41c60 "CONNECTION", states=0x41e28, names=0x41e38,
    num=num@entry=1) at /home/pi/Packages/indi-gphoto/indi-gphoto/indi-gphoto/gphoto_ccd.cpp:94
#6  0x76ee514c in dispatch (root=0x360a0, msg=msg@entry=0x7effeed4 "")
    at /home/pi/Packages/libindi/libindi/libindi/indidriver.c:1005
#7  0x76ee5794 in clientMsgCB (fd=<optimized out>, arg=<optimized out>)
    at /home/pi/Packages/libindi/libindi/libindi/indidriver.c:855
#8  0x76ee89a8 in callCallback (rfdp=0x7efff314) at /home/pi/Packages/libindi/libindi/libindi/eventloop.c:346
#9  oneLoop () at /home/pi/Packages/libindi/libindi/libindi/eventloop.c:432
#10 0x76ee8b7c in eventLoop () at /home/pi/Packages/libindi/libindi/libindi/eventloop.c:105
#11 0x76eded28 in main (ac=0, av=<optimized out>) at /home/pi/Packages/libindi/libindi/libindi/indidrivermain.c:97
#12 0x7692d294 in __libc_start_main (main=0x7efff544, argc=1990533120, argv=0x7692d294 <__libc_start_main+276>,
    init=<optimized out>, fini=0x227e8 <__libc_csu_fini>, rtld_fini=0x76fdf408 <_dl_fini>, stack_end=0x7efff544)
    at libc-start.c:287
#13 0x00015d44 in _start ()
7 years 8 months ago #9379

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

Replied by Jasem Mutlaq on topic GPhoto driver crashes

Fixed. Check tomorrow's PPA.
7 years 8 months ago #9383

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

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic GPhoto driver crashes

I have tested it on Ekos VM, it works now, thank you!

However it looks like the Raspbian packages have not been updated since the 14th July. Are Raspbian builds configured in the Travis CI?
7 years 8 months ago #9393

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

  • Posts: 3
  • Thank you received: 0

Replied by Desprez on topic GPhoto driver crashes

File Attachment:

File Name: log_22-59-17.txt
File Size:12 KB
Hi
I have updated the INDI GPHOTO2 driver (version 2.5.9-3). Since Kstars detected INDI driver indi_sphoto_ccd crashed when i start INDI from Ekos and close Kstars
How ti fix this issue ?

Thanks for your help !
Last edit: 6 years 7 months ago by Desprez.
6 years 7 months ago #19075
Attachments:

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

  • Posts: 3
  • Thank you received: 0

Replied by Desprez on topic GPhoto driver crashes

Solved
I have intalled the update tool synaptic and then i have updated also Kstar, other INDI driver and basis packages
Now it work well and Gphoto seem more stable with my EOS 1000D (just a little drouble to do the first preview from Ekos but nothing blocking)
6 years 7 months ago #19100

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

Time to create page: 1.036 seconds