#896 gphoto2 --auto-detect hangs

closed-fixed
gphoto2 (75)
5
2014-08-15
2011-12-10
Dennis
No

Using libgphoto2/gphoto2 version 2.4.11 and auto detect hangs. Have tried it with two usb cameras, a Canon S70 Powershot and Nikon Coolpix S220.

Are there any compile issues with gcc-4.6.2, glibc-2.14.1, binutils-2.22, coreutils-8.14 and systemd? Its been a very long time since playing with a usb camera and it did work at one time. Look through my compile logs for libgphoto2/gphoto2 and there are no compile errors, warnings, etc. I tried recompiling versions all the way back to 2.4.9.x and have the same problem.

As the summary says that's what it does and will sit there until a Ctrl-C (which seems to take two of those before it will stop. I have tried running;

gphoto2 --debug --auto-detect --debug-logfile=gphoto2.debug.log

and it shows this;

0.000010 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000040 main(2): gphoto2 2.4.11
0.000047 main(2): gphoto2 has been compiled with the following options:
0.000053 main(2): + gcc (C compiler used)
0.000059 main(2): + popt (mandatory, for handling command-line parameters)
0.000065 main(2): + exif (for displaying EXIF information)
0.000070 main(2): + cdk (for accessing configuration options)
0.000075 main(2): + aa (for displaying live previews)
0.000080 main(2): + jpeg (for displaying live previews in JPEG format)
0.000086 main(2): + readline (for easy navigation in the shell)
0.000093 main(2): libgphoto2 2.4.11
0.000100 main(2): libgphoto2 has been compiled with the following options:
0.000105 main(2): + gcc (C compiler used)
0.000112 main(2): + ltdl (for portable loading of camlibs)
0.000117 main(2): + EXIF (for special handling of EXIF files)
0.000125 main(2): libgphoto2_port 0.8.0
0.000132 main(2): libgphoto2_port has been compiled with the following options:
0.000138 main(2): + gcc (C compiler used)
0.000143 main(2): + ltdl (for portable loading of camlibs)
0.000149 main(2): + USB (libusb, for USB cameras)
0.000154 main(2): + serial (for serial cameras)
0.000160 main(2): + no resmgr (serial port access and locking)
0.000165 main(2): + no baudboy (serial port locking)
0.000170 main(2): + no ttylock (serial port locking)
0.000176 main(2): + no lockdev (serial port locking)
0.000181 main(2): CAMLIBS env var not set, using compile-time default instead
0.000187 main(2): IOLIBS env var not set, using compile-time default instead
0.000208 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.000254 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.000262 setting/gphoto2-setting.c(2): Loading settings from file "/home/dveatch/.gphoto/settings"
0.000269 setting/gphoto2-setting.c(2): Can't open settings for reading
0.000275 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.000283 setting/gphoto2-setting.c(2): Can't open settings file for reading
0.000289 setting/gphoto2-setting.c(2): Loading settings from file "/home/dveatch/.gphoto/settings"
0.000296 setting/gphoto2-setting.c(2): Can't open settings for reading
0.000477 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/libgphoto2_port/0.8.0'...
0.000575 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/disk'.
0.000700 gphoto2-port/disk(2): found fstab fsname UUID=b1234263-271a-43a6-9325-e205a7a35c87
0.000722 gphoto2-port/disk(2): found fstab fsname UUID=e50d806b-a271-4621-87b4-cba1dfcb7e81
0.000738 gphoto2-port/disk(2): found fstab fsname UUID=8f6e4ae2-120e-4530-b59c-6849704dc550
0.000748 gphoto2-port/disk(2): found fstab fsname UUID=d3794fc9-beb0-49dd-a078-16a8e5ef630a
0.000758 gphoto2-port/disk(2): found fstab fsname UUID=a1750d0a-c523-4cf6-8f84-05d535fc7b74
0.000820 gphoto2-port/disk(2): found mtab fsname rootfs
0.000833 gphoto2-port/disk(2): found mtab fsname /dev/root
0.000841 gphoto2-port/disk(2): found mtab fsname devtmpfs
0.000852 gphoto2-port/disk(2): found mtab fsname proc
0.000863 gphoto2-port/disk(2): found mtab fsname sysfs
0.000874 gphoto2-port/disk(2): found mtab fsname tmpfs
0.000885 gphoto2-port/disk(2): found mtab fsname devpts
0.000895 gphoto2-port/disk(2): found mtab fsname tmpfs
0.000905 gphoto2-port/disk(2): found mtab fsname tmpfs
0.000918 gphoto2-port/disk(2): found mtab fsname cgroup
0.000930 gphoto2-port/disk(2): found mtab fsname cgroup
0.000943 gphoto2-port/disk(2): found mtab fsname cgroup
0.000954 gphoto2-port/disk(2): found mtab fsname cgroup
0.000966 gphoto2-port/disk(2): found mtab fsname systemd-1
0.000990 gphoto2-port/disk(2): found mtab fsname systemd-1

I did notice it cannot create the needed .gphoto sub-dir but manually creating it has no effect and just removes those creation errors. I can insert the memory cards out of either camera into my Sandisk multi-card reader and that works fine, so at this point I am at a loss what is going on here. Lastly I get the same results as root.

Discussion

  • Dennis
    Dennis
    2011-12-10

    Hmm. Seems I was not waiting long enough and the debug log is incomplete. It should be a near instantaneous response but after 4 minutes my camera battery died... waiting for it to recharge and hopefully will capture a more complete output.

     
    • assigned_to: nobody --> marcusmeissner
    • status: open --> pending
     
  • gphoto2 --auto-detect should in general not hang. :)

    that it hangs can only happen if a mountpoint is not reacting, as gphoto2 also
    scans mountpoints for presence of cameras or memory cards from cameras.

    So it is likely not due to the camera.

    You can check if it hangs also without the camera.

     
  • Dennis
    Dennis
    2011-12-10

    Yes it does hang without a camera. It takes about 30 minutes for things to happen and here is what it shows with no camera;

    0.000013 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
    0.000051 main(2): gphoto2 2.4.11
    0.000058 main(2): gphoto2 has been compiled with the following options:
    0.000062 main(2): + gcc (C compiler used)
    0.000066 main(2): + popt (mandatory, for handling command-line parameters)
    0.000071 main(2): + exif (for displaying EXIF information)
    0.000075 main(2): + cdk (for accessing configuration options)
    0.000079 main(2): + aa (for displaying live previews)
    0.000083 main(2): + jpeg (for displaying live previews in JPEG format)
    0.000087 main(2): + readline (for easy navigation in the shell)
    0.000093 main(2): libgphoto2 2.4.11
    0.000098 main(2): libgphoto2 has been compiled with the following options:
    0.000102 main(2): + gcc (C compiler used)
    0.000107 main(2): + ltdl (for portable loading of camlibs)
    0.000111 main(2): + EXIF (for special handling of EXIF files)
    0.000117 main(2): libgphoto2_port 0.8.0
    0.000123 main(2): libgphoto2_port has been compiled with the following options:
    0.000127 main(2): + gcc (C compiler used)
    0.000131 main(2): + ltdl (for portable loading of camlibs)
    0.000135 main(2): + USB (libusb, for USB cameras)
    0.000139 main(2): + serial (for serial cameras)
    0.000143 main(2): + no resmgr (serial port access and locking)
    0.000147 main(2): + no baudboy (serial port locking)
    0.000151 main(2): + no ttylock (serial port locking)
    0.000155 main(2): + no lockdev (serial port locking)
    0.000160 main(2): CAMLIBS env var not set, using compile-time default instead
    0.000164 main(2): IOLIBS env var not set, using compile-time default instead
    0.000185 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
    0.000222 setting/gphoto2-setting.c(2): Loading settings from file "/home/dveatch/.gphoto/settings"
    0.000421 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/libgphoto2_port/0.8.0'...
    0.000513 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/disk'.
    0.000630 gphoto2-port/disk(2): found fstab fsname UUID=b1234263-271a-43a6-9325-e205a7a35c87
    0.000652 gphoto2-port/disk(2): found fstab fsname UUID=e50d806b-a271-4621-87b4-cba1dfcb7e81
    0.000661 gphoto2-port/disk(2): found fstab fsname UUID=8f6e4ae2-120e-4530-b59c-6849704dc550
    0.000669 gphoto2-port/disk(2): found fstab fsname UUID=d3794fc9-beb0-49dd-a078-16a8e5ef630a
    0.000678 gphoto2-port/disk(2): found fstab fsname UUID=a1750d0a-c523-4cf6-8f84-05d535fc7b74
    0.000741 gphoto2-port/disk(2): found mtab fsname rootfs
    0.000752 gphoto2-port/disk(2): found mtab fsname /dev/root
    0.000759 gphoto2-port/disk(2): found mtab fsname devtmpfs
    0.000768 gphoto2-port/disk(2): found mtab fsname proc
    0.000776 gphoto2-port/disk(2): found mtab fsname sysfs
    0.000786 gphoto2-port/disk(2): found mtab fsname tmpfs
    0.000796 gphoto2-port/disk(2): found mtab fsname devpts
    0.000804 gphoto2-port/disk(2): found mtab fsname tmpfs
    0.000813 gphoto2-port/disk(2): found mtab fsname tmpfs
    0.000824 gphoto2-port/disk(2): found mtab fsname cgroup
    0.000834 gphoto2-port/disk(2): found mtab fsname cgroup
    0.000844 gphoto2-port/disk(2): found mtab fsname cgroup
    0.000853 gphoto2-port/disk(2): found mtab fsname cgroup
    0.000863 gphoto2-port/disk(2): found mtab fsname systemd-1
    0.000886 gphoto2-port/disk(2): found mtab fsname systemd-1
    2120.155340 gphoto2-port/disk(2): found mtab fsname systemd-1
    2120.155373 gphoto2-port/disk(2): found mtab fsname mqueue
    2120.155385 gphoto2-port/disk(2): found mtab fsname securityfs
    2120.155399 gphoto2-port/disk(2): found mtab fsname tmpfs
    2120.155409 gphoto2-port/disk(2): found mtab fsname /dev/sdc1
    2120.155417 gphoto2-port/disk(2): found mtab fsname /dev/sdb1
    2120.155425 gphoto2-port/disk(2): found mtab fsname tmpfs
    2120.155435 gphoto2-port/disk(2): found mtab fsname /dev/sda2
    2120.155443 gphoto2-port/disk(2): found mtab fsname binfmt_misc
    2120.155514 gphoto2-port-info-list(2): Could not load port driver list: 'Unspecified error'.
    2120.155524 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
    2120.155615 gphoto2-port-info-list(2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
    2120.155632 gphoto2-port-info-list(2): Loaded '' ('^ptpip') from '/usr/lib/libgphoto2_port/0.8.0/ptpip'.
    2120.155638 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/serial'.
    2120.155764 gphoto2-port-info-list(2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    2120.155774 gphoto2-port-info-list(2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    2120.155779 gphoto2-port-info-list(2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    2120.155784 gphoto2-port-info-list(2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    2120.155789 gphoto2-port-info-list(2): Loaded '' ('^serial') from '/usr/lib/libgphoto2_port/0.8.0/serial'.
    2120.155794 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usb'.
    2120.156977 gphoto2-port-info-list(2): Loaded '' ('^usb:') from '/usr/lib/libgphoto2_port/0.8.0/usb'.
    2120.156988 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:001,003') from '/usr/lib/libgphoto2_port/0.8.0/usb'.
    2120.156993 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:004,002') from '/usr/lib/libgphoto2_port/0.8.0/usb'.
    2120.156998 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usbdiskdirect'.
    2120.157198 gphoto2-port-info-list(2): Loaded 'USB Mass Storage direct IO' ('usbdiskdirect:/dev/sdd') from '/usr/lib/libgphoto2_port/0.8.0/usbdiskdirect'.
    2120.157207 gphoto2-port-info-list(2): Called for filename '/usr/lib/libgphoto2_port/0.8.0/usbscsi'.
    2120.157448 gphoto2-port-info-list(2): Loaded 'USB Mass Storage raw SCSI' ('usbscsi:/dev/sg4') from '/usr/lib/libgphoto2_port/0.8.0/usbscsi'.
    2120.157473 gphoto2-port-info-list(2): Counting entries (13 available)...
    2120.157479 gphoto2-port-info-list(2): 9 regular entries available.
    2120.157484 gphoto2-port-info-list(2): Counting entries (13 available)...
    2120.157489 gphoto2-port-info-list(2): 9 regular entries available.
    2120.157570 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/lib/libgphoto2/2.4.11'...
    2120.157749 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/adc65'.
    2120.157762 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/agfa_cl20'.
    2120.157767 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/aox'.
    2120.157771 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/ax203'.
    2120.157776 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/barbie'.
    2120.157780 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/canon'.
    2120.157784 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/casio_qv'.
    2120.157788 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/clicksmart310'.
    2120.157793 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/digigr8'.
    2120.157797 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/digita'.
    2120.157801 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/dimagev'.
    2120.157805 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/dimera3500'.
    2120.157809 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/directory'.
    2120.157814 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/enigma13'.
    2120.157818 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/fuji'.
    2120.157822 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/gsmart300'.
    2120.157826 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/hp215'.
    2120.157831 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/iclick'.
    2120.157835 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/jamcam'.
    2120.157839 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/jd11'.
    2120.157843 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/jl2005a'.
    2120.157848 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/jl2005c'.
    2120.157852 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/kodak_dc120'.
    2120.157860 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/kodak_dc210'.
    2120.157864 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/kodak_dc240'.
    2120.157868 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/kodak_dc3200'.
    2120.157873 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/kodak_ez200'.
    2120.157877 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/konica'.
    2120.157881 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/konica_qm150'.
    2120.157886 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/largan'.
    2120.157890 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/lg_gsm'.
    2120.157894 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/mars'.
    2120.157898 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/mustek'.
    2120.157903 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/panasonic_coolshot'.
    2120.157907 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/panasonic_dc1000'.
    2120.157911 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/panasonic_dc1580'.
    2120.157916 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/panasonic_l859'.
    2120.157920 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/pccam300'.
    2120.157924 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/pccam600'.
    2120.157928 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/polaroid_pdc320'.
    2120.157933 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/polaroid_pdc640'.
    2120.157937 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/polaroid_pdc700'.
    2120.157941 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/ptp2'.
    2120.157945 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/ricoh'.
    2120.157950 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/ricoh_g3'.
    2120.157954 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/samsung'.
    2120.157958 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sierra'.
    2120.157963 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sipix_blink2'.
    2120.157967 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sipix_web2'.
    2120.157972 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/smal'.
    2120.157976 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sonix'.
    2120.157980 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sony_dscf1'.
    2120.157985 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sony_dscf55'.
    2120.157989 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/soundvision'.
    2120.157993 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/spca50x'.
    2120.157998 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sq905'.
    2120.158002 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/st2205'.
    2120.158006 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/stv0674'.
    2120.158011 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/stv0680'.
    2120.158015 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/sx330z'.
    2120.158019 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/topfield'.
    2120.158023 gphoto2-abilities-list(2): Found '/usr/lib/libgphoto2/2.4.11/toshiba_pdrm11'.
    2120.158032 gp-abilities-list(2): Found 62 camera drivers.
    2120.171774 gphoto2-port-info-list(2): Counting entries (13 available)...
    2120.171790 gphoto2-port-info-list(2): 9 regular entries available.
    2120.171795 gphoto2-port(2): Creating new device...
    2120.171803 gphoto2-port-info-list(2): Getting info of entry 0 (13 available)...
    2120.171870 gphoto2-port(2): Setting settings...
    2120.171878 gphoto2-port-info-list(2): Getting info of entry 1 (13 available)...
    2120.171947 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    2120.171956 gphoto2-port(2): Setting settings...
    2120.171961 gphoto2-port-info-list(2): Getting info of entry 2 (13 available)...
    2120.172022 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    2120.172035 gphoto2-port(2): Setting settings...
    2120.172040 gphoto2-port-info-list(2): Getting info of entry 3 (13 available)...
    2120.172101 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    2120.172109 gphoto2-port(2): Setting settings...
    2120.172114 gphoto2-port-info-list(2): Getting info of entry 4 (13 available)...
    2120.172173 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
    2120.172181 gphoto2-port(2): Setting settings...
    2120.172186 gphoto2-port-info-list(2): Getting info of entry 5 (13 available)...
    2120.172885 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
    2120.172894 gphoto2-port(2): Setting settings...
    2120.172900 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
    2120.172907 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
    2120.173107 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
    2120.173248 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
    2120.173259 gphoto2-port-info-list(2): Getting info of entry 6 (13 available)...
    2120.173918 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
    2120.173927 gphoto2-port(2): Setting settings...
    2120.173933 libusb(2): gp_port_usb_update(old int=0, conf=-1, alt=-1), (new int=0, conf=-1, alt=-1)
    2120.173939 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
    2120.174135 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
    2120.174277 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
    2120.174287 gphoto2-port-info-list(2): Getting info of entry 7 (13 available)...
    2120.174365 gphoto2-port(2): Setting settings...
    2120.174373 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
    2120.174438 gphoto2-port-info-list(2): Getting info of entry 8 (13 available)...
    2120.174510 gphoto2-port(2): Setting settings...
    2120.174518 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
    2120.175250 gphoto2-port(2): Freeing port...
    2120.175261 gphoto2-port(2): Closing port...
    2120.175492 gp-camera(2): Freeing camera...
    2120.175501 gphoto2-port(2): Freeing port...
    2120.175510 gphoto2-filesystem(2): resetting filesystem
    2120.175515 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
    2120.175519 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
    2120.175523 gphoto2-filesystem(2): Internally deleting all folders from '/'...
    2120.175527 gphoto2-filesystem(2): Lookup folder '/'...
    2120.175532 gphoto2-filesystem(2): Found! / is 0x19d83e0
    2120.175536 gphoto2-filesystem(2): Recurse delete folder 0x19d83e0//

     
  • Dennis
    Dennis
    2011-12-10

    • status: pending --> open
     
  • it is hanging while accessing one systemd mount.

    0.000886 gphoto2-port/disk(2): found mtab fsname systemd-1
    2120.155340 gphoto2-port/disk(2): found mtab fsname systemd-1

    can you attach output of
    cat /proc/mounts

     
    • status: open --> pending
     
  • Dennis
    Dennis
    2011-12-10

    • status: pending --> open
     
  • Dennis
    Dennis
    2011-12-10

    rootfs / rootfs rw 0 0
    /dev/root / ext4 rw,relatime,barrier=1,data=ordered 0 0
    devtmpfs /dev devtmpfs rw,relatime,size=6151688k,nr_inodes=1537922,mode=755 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
    tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
    tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
    cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=//lib/systemd/systemd-cgroups-agent,name=systemd 0 0
    cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
    cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
    cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
    systemd-1 /dev/mqueue autofs rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
    systemd-1 /dev/hugepages autofs rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
    systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
    mqueue /dev/mqueue mqueue rw,relatime 0 0
    securityfs /sys/kernel/security securityfs rw,relatime 0 0
    tmpfs /media tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
    /dev/sdc1 /var ext4 rw,relatime,barrier=1,data=ordered 0 0
    /dev/sdb1 /home ext4 rw,relatime,barrier=1,data=ordered 0 0
    tmpfs /var/run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
    /dev/sda2 /boot ext4 rw,relatime,barrier=1,data=ordered 0 0
    binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0

     
    • status: open --> pending
     
  • systemd-1 /dev/hugepages autofs
    rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0

    that one hangs for 2120 seconds.

    in the future version we will filter out those mounts, so it should not happen anymore.

    as workaround yuou can remove the disk driver by removign it from the installation, it is under
    /usr/lib/libgphoto2_port/0.8.0/disk.so

     
  • Dennis
    Dennis
    2011-12-14

    • status: pending --> open
     
  • Dennis
    Dennis
    2011-12-14

    2120 seconds would explain a few things. So I recompiled libgphoto2 and removed /usr/lib/libgphoto2_port/0.8.0/disk.so.

    Then I recompile gphoto2 and auto detect worked just fine.

    Then I recompiled digikam and when accessing the camera it crashes with;

    dveatch@sidney ~ $ digikam
    QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
    UPnP device entered: "uuid:28802880-2880-1880-a880-002369342b57"
    UPnP device entered: "uuid:00230023-6934-2056-2b56-002369342b55"
    QSqlDatabasePrivate::removeDatabase: connection 'ConnectionTest' is still in use, all queries will cease to work.
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    digikam(23495) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
    KCrash: Application 'digikam' crashing...
    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
    sock_file=/home/dveatch/.kde/socket-sidney/kdeinit4__0

    [1]+ Stopped digikam
    dveatch@sidney ~ $ QSocketNotifier: Invalid socket 14 and type 'Read', disabling...

    [1]+ Exit 253 digikam

     
    • status: open --> closed-fixed
    • milestone: --> do_not_use_this_camlib/canon
     
  • we now skip these filesystems during detection, so it should not happen anymore.