Bug 776214

Summary: gphoto2 PTP General Error uploading to Galaxy Nexus in PTP mode
Product: [openSUSE] openSUSE 12.2 Reporter: Will Stephenson <wstephenson>
Component: X11 ApplicationsAssignee: Marcus Meissner <meissner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: axel.braun, meissner
Version: RC 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: libgphoto2 logfile

Description Will Stephenson 2012-08-16 16:32:24 UTC
(gdb) run
Starting program: /usr/bin/gphoto2 -l
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
                                                                                                                                                     
Program received signal SIGSEGV, Segmentation fault.
libusb_get_bus_number (dev=0x302e382e302f7472) at core.c:688
688     core.c: No such file or directory.
Missing separate debuginfos, use: zypper install cdk-debuginfo-4.9.13-155.1.2.x86_64 fontconfig-debuginfo-2.9.0-3.1.2.x86_64 gd-debuginfo-2.0.36.RC1-73.1.4.x86_64 glibc-debuginfo-2.15-22.6.4.x86_64 libX11-6-debuginfo-1.5.0-2.1.2.x86_64 libXau6-debuginfo-1.0.7-2.1.2.x86_64 libXpm4-debuginfo-3.5.10-2.1.2.x86_64 libexif12-debuginfo-0.6.21-1.1.1.x86_64 libexpat1-debuginfo-2.1.0-2.1.3.x86_64 libfreetype6-debuginfo-2.4.9-4.1.2.x86_64 libjpeg62-debuginfo-62.0.0-15.3.1.x86_64 liblockdev1-debuginfo-1.0.3_git201003141408-20.1.2.x86_64 libltdl7-debuginfo-2.4.2-5.1.2.x86_64 libncurses5-debuginfo-5.9-12.2.1.x86_64 libpng14-14-debuginfo-1.4.11-2.1.2.x86_64 libpopt0-debuginfo-1.16-14.1.2.x86_64 libreadline6-debuginfo-6.2-51.3.1.x86_64 libxcb1-debuginfo-1.8.1-2.1.2.x86_64 zlib-debuginfo-1.2.7-2.1.2.x86_64
(gdb) bt
#0  libusb_get_bus_number (dev=0x302e382e302f7472) at core.c:688
#1  0x00007ffff5d54b00 in gp_port_usb_find_device_by_class_lib (port=0x631430, class=666, subclass=-1, protocol=-1) at libusb1.c:1076
#2  0x00007ffff708b9c7 in gp_port_usb_find_device_by_class (port=port@entry=0x631430, mainclass=mainclass@entry=666, subclass=subclass@entry=-1, 
    protocol=<optimized out>) at gphoto2-port.c:832
#3  0x00007ffff7298029 in gp_abilities_list_detect_usb (port=0x631430, ability=<synthetic pointer>, list=0x62a110) at gphoto2-abilities-list.c:375
#4  gp_abilities_list_detect (list=0x62a110, info_list=info_list@entry=0x629af0, l=l@entry=0x7ffff5808010, context=context@entry=0x6288d0)
    at gphoto2-abilities-list.c:442
#5  0x0000000000407489 in main (argc=2, argv=0x7fffffffdcc8, envp=<optimized out>) at main.c:2034
Comment 1 Marcus Meissner 2012-08-16 17:00:38 UTC
i fixed this via online update after rc2.

please check...
Comment 2 Will Stephenson 2012-08-17 02:08:16 UTC
This fix? This is the version that is crashing.   However, I don't see a newer libgphoto2 or libusb* in any of the update/12.2* repos.

wstephenson@whistler:~/Downloads> rpm -q --changelog libgphoto2|head
* Thu Jul 19 2012 meissner@suse.com
- added 2.4 branch fixes
  - libusb1: do not crash immediately (avoid global context usage)
  - canon: --wait-for-event append \0 to filename
  - ptp2: new USB ids, fixed Canon EOS thumbnail retrieval
Comment 3 Marcus Meissner 2012-08-17 07:09:44 UTC
it also needs
-------------------------------------------------------------------
Wed Aug  1 12:31:43 UTC 2012 - meissner@suse.com

- fixed one missed gp_devs = NULL which led to more crashes
  bnc#771743



is only in the openSUSE:12.2  GA tree, not in updates (as we no longer publish beta updates)
Comment 4 Will Stephenson 2012-08-18 02:56:13 UTC
Ok, and the GA tree isn't published to distribution/12.2/repo/oss/ yet?
Comment 5 Will Stephenson 2012-08-18 03:16:44 UTC
Created attachment 502786 [details]
libgphoto2 logfile

So the latest version fixes the segfault, but file upload fails with a General Error
Comment 6 Marcus Meissner 2012-08-18 09:36:41 UTC
no, ga tree is also not final. not sure if the tree after-rc2 was published yet somewhere, but I doubt it.
Comment 7 Axel Braun 2012-11-02 15:13:44 UTC
Actually, running 12.2 final with KDE4 and all patches applied, I cant download pictures, neither in MTP nor in PTP mode (using digikam or dolphin). 
Google Nexus running Android 4.1.2. Connected viy US, the device is shown, but no content. Is this related to this bug or shall I file a new one? Thanks
Comment 8 Marcus Meissner 2013-09-27 14:48:11 UTC
should be better with 12.3 and newer libgphoto2 2.5 at least