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 606759 - [v4l2src] Hangs capturing frame
[v4l2src] Hangs capturing frame
Status: RESOLVED FIXED
Product: cheese
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: 2.28
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-01-12 16:17 UTC by Bastien Nocera
Modified: 2010-01-15 18:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2010-01-12 16:17:00 UTC
gstreamer-plugins-good-0.10.17-4.fc12.x86_64
gstreamer-0.10.25.1-3.fc12.x86_64
gstreamer-plugins-base-0.10.25.1-2.fc12.x86_64

When using the "cheese-test-chooser" test program from cheese master, the capture sometimes hangs, leaving the webcam in use, and the program frozen.

Using libv4l2's debug facility (LIBV4L2_LOG_FILENAME=/tmp/log as envvar), I get loops of:
request == VIDIOC_DQBUF
result == 0
request == VIDIOC_QBUF
result == 0


Comment 1 Bastien Nocera 2010-01-12 16:32:39 UTC
Logs at level 5 at:
http://www.gnome.org/~hadess/log-bug606759.bz2

The driver is the UVC one, and the hardware is a Logitech QuickCam Pro 9000
Comment 2 Wim Taymans 2010-01-13 14:16:17 UTC
it doesn't look like it's frozen, all buffers are dropped because they are late, though. Maybe applying the effects is a bit too slow? what kind of cpu is this?
Comment 3 Bastien Nocera 2010-01-13 14:39:56 UTC
(In reply to comment #2)
> it doesn't look like it's frozen, all buffers are dropped because they are
> late, though. Maybe applying the effects is a bit too slow?

There's no effects

> what kind of cpu is
> this?

2.4 GHz P4 with hyper-threading.

The problem only happens when capturing a frame, sometimes, but never when playing back the video from the device.
Comment 4 Bastien Nocera 2010-01-15 18:19:10 UTC
Sigh. Looks like a bug in the code I added in cheese. Spotted by Fillipo.