[Bug 772521] v4l2src: Regression bug with consecutive recordings

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Nov 18 20:39:39 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=772521

--- Comment #17 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
I've given it a shot here. No kernel crash either and failure sometimes. What I
understand is that whenever a buffer could not be queued (QBUF fail) on a
capture pool, the buffer endup being leaked. I'm not sure how to fix this. I
have a major rework in mind, but didn't find the time yet.

Though, this case should never occur. I have enable some kernel traces:
  echo 0xff > /sys/module/videobuf2_core/parameters/debug 

And find out that it fails to queue becaue:
  vb2-core: vb2_core_qbuf: invalid buffer state 5

 * @VB2_BUF_STATE_ACTIVE:    buffer queued in driver and possibly used
 *                in a hardware operation

I believe there is a race in the sequence of streamon/off. Also there is an
extra routrip from on to off and on again which I didn't notice before.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list