Menu

#1851 -6LIBMTP PANIC: Unable to initialize device (means: Busy , blocked by other prorgam)

pending
None
1
2021-08-02
2019-10-12
Anonymous
No

Getting the titular message when executing mtp-detect on a Creative Zen X-Fi., no Idea what it means or what to do about it.

Discussion

  • Anonymous

    Anonymous - 2019-10-24

    Gettign the same bug on Debian 10, libmtp 1.1.16 for an Google Pixel 2XL; was previously working.

    mtp-detect

    LIBMTP_Set_Debug: Setting debugging level to 12 (0x0c) (on)
    libmtp version: 1.1.16

    Listing raw device(s)
    [timestamp] [threadID] facility level [function call] <message></message>


    [ 0.014844] [000061cf] libusb: debug [libusb_get_device_list]
    [ 0.014898] [000061cf] libusb: debug [discovered_devs_append] need to increase capacity
    [ 0.014921] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.014941] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.014958] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.014969] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.014980] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.014990] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015019] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015034] [000061cf] libusb: debug [libusb_open] open 1.8
    [ 0.015084] [000061cf] libusb: debug [usbi_add_pollfd] add fd 9 events 4
    [ 0.015100] [000061cf] libusb: debug [libusb_get_config_descriptor] index 0
    [ 0.015122] [000061cf] libusb: debug [libusb_close]
    [ 0.015137] [000061cf] libusb: debug [usbi_remove_pollfd] remove fd 9
    [ 0.015162] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015177] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015187] [000061cf] libusb: debug [libusb_open] open 1.7
    [ 0.015217] [000061cf] libusb: debug [usbi_add_pollfd] add fd 9 events 4
    [ 0.015229] [000061cf] libusb: debug [libusb_get_config_descriptor] index 0
    [ 0.015248] [000061cf] libusb: debug [libusb_close]
    [ 0.015259] [000061cf] libusb: debug [usbi_remove_pollfd] remove fd 9
    [ 0.015275] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015285] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015299] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015309] [000061cf] libusb: debug [libusb_open] open 1.5
    [ 0.015335] [000061cf] libusb: debug [usbi_add_pollfd] add fd 9 events 4
    [ 0.015347] [000061cf] libusb: debug [libusb_get_config_descriptor] index 0
    [ 0.015361] [000061cf] libusb: debug [libusb_close]
    [ 0.015372] [000061cf] libusb: debug [usbi_remove_pollfd] remove fd 9
    [ 0.015387] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015398] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015411] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015421] [000061cf] libusb: debug [libusb_open] open 1.3
    [ 0.015447] [000061cf] libusb: debug [usbi_add_pollfd] add fd 9 events 4
    [ 0.015459] [000061cf] libusb: debug [libusb_get_config_descriptor] index 0
    [ 0.015473] [000061cf] libusb: debug [libusb_close]
    [ 0.015485] [000061cf] libusb: debug [usbi_remove_pollfd] remove fd 9
    [ 0.015501] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015515] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015526] [000061cf] libusb: debug [libusb_open] open 1.2
    [ 0.015554] [000061cf] libusb: debug [usbi_add_pollfd] add fd 9 events 4
    [ 0.015565] [000061cf] libusb: debug [libusb_get_config_descriptor] index 0
    [ 0.015578] [000061cf] libusb: debug [libusb_close]
    [ 0.015589] [000061cf] libusb: debug [usbi_remove_pollfd] remove fd 9
    [ 0.015603] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.015616] [000061cf] libusb: debug [libusb_get_device_descriptor]
    LIBMTP LIBMTP_Detect_Raw_Devices[698]: Device 0 (VID=18d1 and PID=4ee1) is a Google Inc Nexus/Pixel (MTP).
    Found 1 device(s):
    Google Inc: Nexus/Pixel (MTP) (18d1:4ee1) @ bus 3, dev 3
    Attempting to connect device(s)
    [ 0.015989] [000061cf] libusb: debug [libusb_get_device_list]
    [ 0.016013] [000061cf] libusb: debug [discovered_devs_append] need to increase capacity
    [ 0.016029] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.016039] [000061cf] libusb: debug [libusb_get_device_descriptor]
    [ 0.016050] [000061cf] libusb: debug [libusb_get_config_descriptor] index 0
    [ 0.016065] [000061cf] libusb: debug [libusb_open] open 3.3
    [ 0.016101] [000061cf] libusb: debug [usbi_add_pollfd] add fd 9 events 4
    [ 0.016116] [000061cf] libusb: debug [libusb_kernel_driver_active] interface 0
    [ 0.016198] [000061cf] libusb: debug [libusb_claim_interface] interface 0
    error returned by libusb_claim_interface() = -6LIBMTP configure_usb_device[2282]: LIBMTP PANIC: Unable to initialize device
    Unable to open raw device 0
    OK.

     
  • Anonymous

    Anonymous - 2019-12-17

    Seeing this on any every MTP device plugged into a Raspberry Pi 4 on Buster. Would consider it a blocker.

     
  • Marcus Meissner

    Marcus Meissner - 2019-12-21

    weird. error 6 is ENXIO (no such device or address).

    can you attach lsusb -v output of the device (you can remove the other usb devicesm, only the pixel or creative is interesting()

     
    • ZielnikkH

      ZielnikkH - 2021-08-02

      This is an appealing reasoning. I've been trying to solve the same issue for several days now. I think I have found the right answer at https://stackoverflow.com/questions/20343014/adb-doesnt-show-nexus-5-device. And the solution there works for Linux and N5X.

      It turns out to be a security measurement enforced by Google. The ordinary users can't get access to the internal data storage so easily as USB plug-and-play. USB data access remains to be a privilege for the developers - which is rational as well. The ordinary users can access Android internal data only with FTP(and other user-space APP).

       

      Last edit: ZielnikkH 2021-08-02
  • Anonymous

    Anonymous - 2020-09-13

    Also same on
    Bus 003 Device 079: ID 0e8d:2008 MediaTek Inc.

    graham@graham-MacBookPro:~$ mtp-detect
    libmtp version: 1.1.16

    Listing raw device(s)
    Device 0 (VID=0e8d and PID=2008) is a MediaTek Inc MT65xx.
    Found 1 device(s):
    MediaTek Inc: MT65xx (0e8d:2008) @ bus 3, dev 79
    Attempting to connect device(s)
    error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device
    Unable to open raw device 0
    OK.

     
  • Anonymous

    Anonymous - 2020-09-13

    Bus 003 Device 079: ID 0e8d:2008 MediaTek Inc.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x0e8d MediaTek Inc.
    idProduct 0x2008
    bcdDevice 2.23
    iManufacturer 1 HAFURY
    iProduct 2 A7
    iSerial 3 A7200402005874
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 0x0027
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 4 mtp
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 500mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 3
    bInterfaceClass 255 Vendor Specific Class
    bInterfaceSubClass 255 Vendor Specific Subclass
    bInterfaceProtocol 0
    iInterface 5 MTP
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x82 EP 2 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x001c 1x 28 bytes
    bInterval 6
    Device Qualifier (for other device speed):
    bLength 10
    bDescriptorType 6
    bcdUSB 2.00
    bDeviceClass 0
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    bNumConfigurations 1
    can't get debug descriptor: Resource temporarily unavailable
    Device Status: 0x0000
    (Bus Powered)

     
  • Marcus Meissner

    Marcus Meissner - 2020-09-13

    6 is actually LIBUSB_ERROR_BUSY, meaning another program is accessing the device already. Likely gvfs from GNOME.

     
  • Marcus Meissner

    Marcus Meissner - 2020-09-13
    • status: open --> pending
    • assigned_to: Marcus Meissner
     
  • Marcus Meissner

    Marcus Meissner - 2020-09-13
    • summary: -6LIBMTP PANIC: Unable to initialize device --> -6LIBMTP PANIC: Unable to initialize device (means: Busy , blocked by other prorgam)
     

Anonymous
Anonymous

Add attachments
Cancel