After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 545229 - Copy files from bluetooth device: Error in stream protocol: end of stream"
Copy files from bluetooth device: Error in stream protocol: end of stream"
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: [obsolete] obexftp backend
0.2.x
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-07-28 21:56 UTC by Miguel
Modified: 2015-03-04 15:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
/usr/lib/gvfs/gvfsd -r > output. Log file is the command line information (5.69 KB, text/plain)
2008-07-28 21:58 UTC, Miguel
Details
/usr/lib/gvfs/gvfsd -r > output (4.98 KB, text/plain)
2008-07-28 21:59 UTC, Miguel
Details
Entire Output (13.54 KB, text/plain)
2008-08-12 17:16 UTC, Miguel
Details
Whilst browsing a Windows Mobile phone over bluetooth the connection dies (17.65 KB, text/plain)
2009-03-04 11:53 UTC, Christopher Brown
Details

Description Miguel 2008-07-28 21:56:23 UTC
Please describe the problem:


Binary package hint: bluez-gnome

1) In bluetooth manager (bluez bluetooth applet 0.25), right-click - browse device.
2) I choose my Windows Mobile 5 smartphone
3) I see my smartphone's shared folder

4) If I try to copy a file bigger than 5k FROM the device TO my Ubuntu Hardy, I get the message:

Error in stream protocol: end of stream

Small, 1k files are transfered without a problem

Steps to reproduce:
1) In bluetooth manager (bluez bluetooth applet 0.25), right-click - browse device.
2) I choose my Windows Mobile 5 smartphone
3) I see my smartphone's shared folder

4) Try to copy a file bigger than 5k FROM the device TO the desktop

Actual results:
Error message - Error in stream protocol: end of stream

Expected results:
File copied without a problem

Does this happen every time?
Yes

Other information:
Comment 1 Miguel 2008-07-28 21:58:12 UTC
Created attachment 115458 [details]
/usr/lib/gvfs/gvfsd -r > output. Log file is the command line information

This is the command line information when I perform:

/usr/lib/gvfs/gvfsd -r > output

And 
1) Browse device in Bluetooth applet
2) dowload a file bigger than 5k
Comment 2 Miguel 2008-07-28 21:59:14 UTC
Created attachment 115459 [details]
/usr/lib/gvfs/gvfsd -r > output

This is the output file of the same command when trying to copy a file bigger than 5k
Comment 3 Bastien Nocera 2008-07-28 22:04:03 UTC
I'd need the output of:
/usr/libexec/gvfsd-obexftp 'host=[AA:BB:CC:DD:EE:FF]'
actually (replace AA:BB:CC:DD:EE:FF with the Bluetooth address of your phone).

This is most likely a problem with obex-data-server, but we should see better debug from that output.

Which version of gvfs and obex-data-server as well?
Comment 4 Miguel 2008-07-28 22:19:26 UTC
$ /usr/lib/gvfs/gvfsd-obexftp 'host=[00:17:83:01:43:97]'
setting 'host' to '[00:17:83:01:43:97]'
Added new job source 0x8075808 (GVfsBackendObexftp)
Queued new job 0x8077c18 (GVfsJobMount)
+ do_mount
send_reply, failed: 1
Mount failed: Connect failed

Obex-data-server version - 0.3.1ubuntu1
gvfs - 0.2.5ubuntu1
Comment 5 Bastien Nocera 2008-07-28 22:45:13 UTC
Make sure you unmount the original mount you created through the bluetooth applet...
Comment 6 Miguel 2008-07-28 23:02:22 UTC
(In reply to comment #5)
> Make sure you unmount the original mount you created through the bluetooth
> applet...
> 

I'm sorry, how do I do that?
Comment 7 Bastien Nocera 2008-07-28 23:10:08 UTC
"killall gvfsd-obexftp" or select "unmount" in the share's right-click menu.
Comment 8 Miguel 2008-07-28 23:25:38 UTC
Might this be the info you need then?

:~$ /usr/lib/gvfs/gvfsd-obexftp 'host=[00:17:83:01:43:97]'
setting 'host' to '[00:17:83:01:43:97]'
Added new job source 0x8075808 (GVfsBackendObexftp)
Queued new job 0x8077c18 (GVfsJobMount)
+ do_mount
  do_mount: 00:17:83:01:43:97 mounted
send_reply, failed: 0
- do_mount
register_mount_callback, mount_reply: 0x807c538, error: (nil)

Comment 9 Bastien Nocera 2008-07-28 23:53:30 UTC
(In reply to comment #8)
> Might this be the info you need then?

Yes, but you need to reproduce the problem as well. There should be more output when you browse and then copy that bigger file to the disk.
Comment 10 Miguel 2008-08-12 17:13:38 UTC
Sorry for the delay in replying.

The relevant output when I try to download a 10kB file is:

Queued new job 0x8080db0 (GVfsJobQueryInfo)
+ do_query_info, filename: /consumos.XLS
+ _query_file_info_helper, filename: /consumos.XLS
- _query_file_info_helper
send_reply(0x8080db0), failed=0 ()
- do_query_info
backend_dbus_handler org.gtk.vfs.Mount:QueryInfo
Queued new job 0x8080e00 (GVfsJobQueryInfo)
+ do_query_info, filename: /consumos.XLS
+ _query_file_info_helper, filename: /consumos.XLS
- _query_file_info_helper
send_reply(0x8080e00), failed=0 ()
- do_query_info
backend_dbus_handler org.gtk.vfs.Mount:OpenForRead
Queued new job 0x8082d38 (GVfsJobOpenForRead)
+ do_open_for_read, filename: /consumos.XLS
+ _query_file_info_helper, filename: /consumos.XLS
- _query_file_info_helper
** Message: transfer of consumos.XLS to /tmp/gvfsobexftp-tmp-BNSYFU started
** Message: filename: /consumos.XLS (consumos.XLS) copying to /tmp/gvfsobexftp-tmp-BNSYFU (retval 1)
- do_open_for_read, filename: /consumos.XLS
send_reply(0x8082d38), failed=0 ()
Added new job source 0x8075e80 (GVfsReadChannel)
backend_dbus_handler org.gtk.vfs.Mount:QueryInfo
Queued new job 0x8080e50 (GVfsJobQueryInfo)
+ do_query_info, filename: /consumos.XLS
+ _query_file_info_helper, filename: /consumos.XLS
- _query_file_info_helper
send_reply(0x8080e50), failed=0 ()
- do_query_info
Queued new job 0x8082d80 (GVfsJobRead)
job_read send reply, 4090 bytes
Queued new job 0x8082dc8 (GVfsJobRead)
** Message: ErrorOccurred
** Message: Error name: org.openobex.Error.Failed
** Message: Error message: Operation failed (unexpected response)
** Message: Unhandled error, file a bug
Comment 11 Miguel 2008-08-12 17:16:06 UTC
Created attachment 116439 [details]
Entire Output

Entire output of the following actions:

1) $ /usr/lib/gvfs/gvfsd-obexftp 'host=[00:17:83:01:43:97]'
2) Browse device in bluetooth manager
3) Copy a 10kB file and paste it into my desktop
Comment 12 Christopher Brown 2009-03-04 11:53:20 UTC
Created attachment 130009 [details]
Whilst browsing a Windows Mobile phone over bluetooth the connection dies

I am also seeing this on Fedora 10 browsing to a Windows Mobile phone.

kernel 2.6.29-0.148.rc6.fc11.i586
GNOME 2.24.2

Log attached if it helps.
Comment 13 Miguel 2009-06-09 10:35:23 UTC
On Ubuntu 9.04 the limit grows to about 50k: a 100k file cannot be transferred. Although smaller files can be transferred, the problem persists.
Comment 14 João Seixas 2009-06-22 04:31:16 UTC
Same thing here. I'm using a HTC mobile with WindowsMobile on it.

The funny thing is that it's possible to send huge files from the desktop to the phone. The error only occurs when sending big files from the phone to the desktop, in the "browse device" option.
Comment 15 Ondrej Holy 2015-03-04 15:39:32 UTC
Obexftp backend has been obsoleted in GNOME 3.10, because it is incompatible with Bluez 5, however limited bluetooth support is currently built-in in GNOME desktop.