Debian Bug report logs -
#631295
gvfs-backends: gvfsd-gphoto2 handles large image/video files very badly
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, jack@cs.york.ac.uk, Sebastien Bacher <seb128@debian.org>:
Bug#631295; Package gvfs-backends.
(Wed, 22 Jun 2011 17:39:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Jack Whitham <jack@cs.york.ac.uk>:
New Bug report received and forwarded. Copy sent to jack@cs.york.ac.uk, Sebastien Bacher <seb128@debian.org>.
(Wed, 22 Jun 2011 17:39:07 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: gvfs-backends
Version: 1.6.4-3
Severity: important
Tags: upstream
This bug can be reproduced by
1. recording a large video file (1000Mb+) using a digital camera,
2. attaching that camera to the PC,
3. open the camera folder that appears on the desktop, then
find the video file using the File Browser (nautilus),
4. copy the file onto the desktop by drag and drop.
The symptoms are as follows:
1. The entire file is copied into memory before being written to
$HOME/Desktop, potentially causing a swap storm or even crashing the PC.
Using "top" you can observe the size of the gvfsd-gphoto2 process
increasing during the copy operation.
2. The file is apparently downloaded from the camera more than once.
3. The copy progress bar appears, but sits at 0% for some time.
I have investigated the first symptom and traced it to code in
gvfsbackendgphoto2.c within the gvfs-1.6.4 source package.
The function "do_open_for_read_real" is responsible for copying each
file from the camera, which is done using code in libgphoto2.
The "gp_file_new" function is used to allocate a CameraFile object
to temporarily store the data. Unfortunately, "gp_file_new" stores the
data entirely in memory: fine for images of a few megabytes, but entirely
unsuitable for gigabyte-sized video files.
An examination of the command line tool "gphoto2", which also uses
libgphoto2, suggests that "gp_file_new_from_fd" would be a more
appropriate choice. When "gp_file_new_from_fd" is used instead,
the memory usage of gvfsd-gphoto2 remains reasonable.
However, this fix just reveals the second problem, namely that each
file will be downloaded more than once -- before the progress
bar even begins to move. Again, this is not noticeable for small
files, but it is a major annoyance for large copies. Furthermore,
large copies may never complete, as the operation appears to time out.
If the problem were limited to the first symptom, namely the apparent
misuse of "gp_file_new", then I could easily suggest a patch. But it
appears that there is a deeper design problem, namely that:
1. A file is apparently downloaded from the camera more than once.
2. The copy progress bar appears, but sits at 0% for some time, whilst
those copies complete.
Further information:
1. The latest upstream version of gvfsbackendgphoto2.c also uses
gp_file_new.
2. To my knowledge the bug is not open within Debian, but it has
apparently been reported in Ubuntu (note same symptoms):
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/782933
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/627908
-- System Information:
Debian Release: 6.0.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gvfs-backends depends on:
ii gvfs 1.6.4-3 userspace virtual filesystem - ser
ii libarchive1 2.8.4-1 Single library to read/write tar,
ii libavahi-client3 0.6.27-2+squeeze1 Avahi client library
ii libavahi-common3 0.6.27-2+squeeze1 Avahi common library
ii libavahi-glib1 0.6.27-2+squeeze1 Avahi glib integration library
ii libbluetooth3 4.66-3 Library to use the BlueZ Linux Blu
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libcdio-cdda0 0.81-4 library to read and control digita
ii libcdio-paranoia0 0.81-4 library to read digital audio CDs
ii libcdio10 0.81-4 library to read and control CD-ROM
ii libdbus-1-3 1.2.24-4 simple interprocess messaging syst
ii libdbus-glib-1-2 0.88-2.1 simple interprocess messaging syst
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libgconf2-4 2.28.1-6 GNOME configuration database syste
ii libglib2.0-0 2.24.2-1 The GLib library of C routines
ii libgphoto2-2 2.4.6-3 gphoto2 digital camera library
ii libgphoto2-port0 2.4.6-3 gphoto2 digital camera port librar
ii libgudev-1.0-0 164-3 GObject-based wrapper library for
ii libimobiledevice1 1.0.2-1 Library for communicating with the
ii libplist1 1.3-2 Library for handling Apple binary
ii libsmbclient 2:3.5.6~dfsg-3squeeze2 shared library for communication w
ii libsoup-gnome2.4- 2.30.2-1 an HTTP library implementation in
ii libsoup2.4-1 2.30.2-1 an HTTP library implementation in
ii libxml2 2.7.8.dfsg-2+squeeze1 GNOME XML library
Versions of packages gvfs-backends recommends:
ii gnome-keyring 2.30.3-5 GNOME keyring services (daemon and
Versions of packages gvfs-backends suggests:
ii obex-data-server 0.4.5-1+b1 D-Bus service for OBEX client and
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#631295; Package gvfs-backends.
(Mon, 17 Sep 2012 19:30:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Rolf Leggewie <debian-bugs@rolf.leggewie.biz>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>.
(Mon, 17 Sep 2012 19:30:02 GMT) (full text, mbox, link).
Message #10 received at 631295@bugs.debian.org (full text, mbox, reply):
severity 631295 critical
thanks
I'm setting this to critical as given sufficiently large files the bug
has the potential to crash other processes on the system or at least
severely slow them down. One can easily see that a 4GB file which is
fairly common these days would crash either the gvfs daemon or other
processes or both on one of the common netbooks. This problem seems to
be a flawed design decision made by upstream and it may not be possible
to get a fix in time for wheezy. Nonetheless, I think this is RC. The
problem doesn't only affect the gphoto2 backend but at least the DAV
backend as well.
Severity set to 'critical' from 'important'
Request was from Rolf Leggewie <foss@rolf.leggewie.biz>
to control@bugs.debian.org.
(Mon, 17 Sep 2012 19:42:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#631295; Package gvfs-backends.
(Mon, 17 Sep 2012 22:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Michael Biebl <biebl@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>.
(Mon, 17 Sep 2012 22:15:03 GMT) (full text, mbox, link).
Message #17 received at 631295@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
severity 631295 important
thanks
On 17.09.2012 21:27, Rolf Leggewie wrote:
> severity 631295 critical
> thanks
>
> I'm setting this to critical as given sufficiently large files the bug
> has the potential to crash other processes on the system or at least
> severely slow them down. One can easily see that a 4GB file which is
> fairly common these days would crash either the gvfs daemon or other
> processes or both on one of the common netbooks. This problem seems to
> be a flawed design decision made by upstream and it may not be possible
> to get a fix in time for wheezy. Nonetheless, I think this is RC. The
I don't think so. Downgrading to the original severity.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
[signature.asc (application/pgp-signature, attachment)]
Severity set to 'important' from 'critical'
Request was from Michael Biebl <biebl@debian.org>
to control@bugs.debian.org.
(Mon, 17 Sep 2012 22:15:07 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#631295; Package gvfs-backends.
(Tue, 18 Sep 2012 15:00:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Rolf Leggewie <debian-bugs@rolf.leggewie.biz>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>.
(Tue, 18 Sep 2012 15:00:03 GMT) (full text, mbox, link).
Message #24 received at 631295@bugs.debian.org (full text, mbox, reply):
On 18.09.2012 07:08, Michael Biebl wrote:
> On 17.09.2012 21:27, Rolf Leggewie wrote:
>> Nonetheless, I think this is RC.
>
> I don't think so.
OK
Would you please be so kind to explain how a voracious process consuming
all memory and forcing other applications on the machine to grind to a
halt or even crash does not fit "critical: makes unrelated software on
the system (or the whole system) break, or causes serious data loss"?
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#631295; Package gvfs-backends.
(Mon, 10 Mar 2014 23:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to althaser <althaser@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>.
(Mon, 10 Mar 2014 23:57:05 GMT) (full text, mbox, link).
Message #29 received at 631295@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hey,
Could you please still reproduce this issue with newer versions ?
thanks
regards
althaser
[Message part 2 (text/html, inline)]
Added tag(s) fixed-upstream.
Request was from Rupert Millard <rupertmillard@doctors.org.uk>
to control@bugs.debian.org.
(Sun, 28 Dec 2014 13:24:05 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#631295; Package gvfs-backends.
(Sun, 28 Dec 2014 13:27:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Rupert Millard <rupert@rupertmillard.net>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>.
(Sun, 28 Dec 2014 13:27:05 GMT) (full text, mbox, link).
Message #36 received at 631295@bugs.debian.org (full text, mbox, reply):
I can confirm that this bug is still present in the gvfs-backends
package in Wheezy, version 1.12.3-4
It has been fixed upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=642814
https://git.gnome.org/browse/gvfs/commit/?id=86162bbe4b09f517b551ff1c9207a119e91ab733
I'm sorry, but I don't really understand how to apply the fix to the
package myself - I have been reading about it all morning.
Thanks,
Rupert
Marked as fixed in versions gvfs/1.22.2-1.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Sun, 28 Dec 2014 14:33:10 GMT) (full text, mbox, link).
Marked Bug as done
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Sun, 28 Dec 2014 14:33:11 GMT) (full text, mbox, link).
Notification sent
to Jack Whitham <jack@cs.york.ac.uk>:
Bug acknowledged by developer.
(Sun, 28 Dec 2014 14:33:12 GMT) (full text, mbox, link).
Marked as fixed in versions gvfs/1.23.2-1.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Sun, 28 Dec 2014 14:33:12 GMT) (full text, mbox, link).
Marked as fixed in versions gvfs/1.19.90-1.
Request was from Laurent Bigonville <bigon@debian.org>
to control@bugs.debian.org.
(Sun, 28 Dec 2014 14:33:16 GMT) (full text, mbox, link).
Message sent on
to Jack Whitham <jack@cs.york.ac.uk>:
Bug#631295.
(Sun, 28 Dec 2014 14:33:24 GMT) (full text, mbox, link).
Message #51 received at 631295-submitter@bugs.debian.org (full text, mbox, reply):
forwarded 631295 https://bugzilla.gnome.org/show_bug.cgi?id=642814
close 631295 1.22.2-1
close 631295 1.23.2-1
thanks
Hi,
This seems to be fixed in unstable/jessie.
Cheers,
Laurent Bigonville
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 26 Jan 2015 07:29:09 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 14 06:32:18 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.