FS#42550 - [bluez] Files sent via bluetooth to another device are corrupted on target device

Attached to Project: Arch Linux
Opened by Tomasz Przybył (FadeMind) - Saturday, 25 October 2014, 11:45 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 14 December 2014, 20:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Files sending from PC to another device via Bluetooth are damaged and not openable on target device.

Packages versions:
* bluez 5.24-1
* bluez-libs 5.24-1
* bluedevil 1:2.0rc1-2
* libbluedevil 1:2.0rc1-2
* Kernel 3.17.1-1-ARCH | NOTE: This issue present on all kernels.

Bluetooth Device:

Bus 001 Device 005: ID 13d3:3362 IMC Networks
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 1 Bluetooth
bMaxPacketSize0 64
idVendor 0x13d3 IMC Networks
idProduct 0x3362
bcdDevice 0.02
iManufacturer 1 Atheros Communications
iProduct 2 Bluetooth USB Host Controller
iSerial 3 Alaska Day 2006
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 177
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 4 BT HCI
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 2
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 3
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x 25 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 4
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x 33 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x 33 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 5
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x 49 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x 49 bytes
bInterval 1
Device Status: 0x0001
Self Powered


dmesg info:
[tomasz@arch ~]$ dmesg |grep Bluetooth
[ 10.935620] Bluetooth: Core ver 2.19
[ 10.935645] Bluetooth: HCI device and connection manager initialized
[ 10.935653] Bluetooth: HCI socket layer initialized
[ 10.935655] Bluetooth: L2CAP socket layer initialized
[ 10.935662] Bluetooth: SCO socket layer initialized
[ 16.195650] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 16.195656] Bluetooth: BNEP filters: protocol multicast
[ 16.195668] Bluetooth: BNEP socket layer initialized
[ 31.256901] Bluetooth: RFCOMM TTY layer initialized
[ 31.256916] Bluetooth: RFCOMM socket layer initialized
[ 31.256923] Bluetooth: RFCOMM ver 1.11

service status:
[tomasz@arch ~]$ sudo systemctl status bluetooth -l
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since sob 2014-10-25 13:17:28 CEST; 13min ago
Docs: man:bluetoothd(8)
Main PID: 586 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─586 /usr/lib/bluetooth/bluetoothd

paź 25 13:18:04 arch bluetoothd[586]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSource
paź 25 13:18:04 arch bluetoothd[586]: Endpoint registered: sender=:1.33 path=/MediaEndpoint/A2DPSink
paź 25 13:24:13 arch bluetoothd[586]: Unable to get io data for File Transfer: getpeername: Transport endpoint is not connected (107)
paź 25 13:24:23 arch bluetoothd[586]: Unable to get io data for File Transfer: getpeername: Transport endpoint is not connected (107)
paź 25 13:24:24 arch bluetoothd[586]: connect error: Connection refused (111)
paź 25 13:24:26 arch bluetoothd[586]: connect error: Connection refused (111)
paź 25 13:25:49 arch bluetoothd[586]: connect error: Connection refused (111)
paź 25 13:25:52 arch bluetoothd[586]: connect error: Connection refused (111)
paź 25 13:26:02 arch bluetoothd[586]: connect error: Connection refused (111)
paź 25 13:26:06 arch bluetoothd[586]: connect error: Connection refused (111)

Steps to reproduce:
Connect mobile phone with PC via Bluetooth. Send for example jpg or png image file via Bluetooth to mobile phone device. You need to open the image sent in your phone.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 14 December 2014, 20:47 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Saturday, 25 October 2014, 16:45 GMT
Doesn't seem to be a packaging issue. Please ask in #bluez-users IRC channel if this is an upstream bug or a user setup problem.
Comment by Tomasz Przybył (FadeMind) - Saturday, 25 October 2014, 17:41 GMT
I found similar issue reported here: https://bugzilla.redhat.com/show_bug.cgi?id=747575 It is upstream bluez obex issue regression IMO.

NOTE: Files sending FROM mobile device to PC are fine - readable.
Comment by Tomasz Przybył (FadeMind) - Sunday, 14 December 2014, 20:04 GMT
Fixed in lastest bluedevil 1:2.0-2 with lastest bluez 5.26-1.

Loading...