umlaeute / v4l2loopback

v4l2-loopback device
GNU General Public License v2.0
3.71k stars 528 forks source link

error "buffer 0 was not queued, this indicate a driver bug" #383

Open step- opened 3 years ago

step- commented 3 years ago

A gstreame pipeline involving a video test source and two loopback devices prints error message "buffer 0 was not queued, this indicate a driver bug" to my tmux terminal.

Versions:

v4l2-ctl --list-devices
Dummy video device (0x0000) (platform:v4l2loopback-000):
        /dev/video2

Dummy video device (0x0001) (platform:v4l2loopback-001):
        /dev/video3

Dualpix HD720p for Notebooks: D (usb-0000:00:1d.0-1.5.4):
        /dev/video0
        /dev/video1
~ # date +%s.%N; gst-launch-1.0 videotestsrc \! tee name=t \! queue \! v4l2sink device=/dev/video2 t. \! queue \! v4l2sink device=/dev/video2; date +%s.%N
1606653019.590470227
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

Nothing prints to this tmux terminal until I switch focus to another window; when I do this error message starts printing apparently endlessly...

0:00:45.631844629 31964      0x167e190 ERROR          v4l2allocator gstv4l2allocator.c:1304:gst_v
4l2_allocator_dqbuf:<v4l2sink1:pool:sink:allocator> buffer 0 was not queued, this indicate a driver bug.
0:00:45.664912792 31964      0x167e190 ERROR          v4l2allocator gstv4l2allocator.c:1304:gst_v

It keeps repeating until I switch focus back and hit ^C

4l2_allocator_dqbuf:<v4l2sink1:pool:sink:allocator> buffer 0 was not queued, this indicate a driver bug.
^Chandling interrupt.

Interrupt: Stopping pipeline ...
Execution ended after 0:00:47.215840918
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:47.247666197 31964      0x167e1e0 ERROR          v4l2allocator gstv4l2allocator.c:1304:gst_v
4l2_allocator_dqbuf:<v4l2sink0:pool:sink:allocator> buffer 0 was not queued, this indicate a driver bug.
Setting pipeline to NULL ...
Freeing pipeline ...
~ #

Thank you.

cout commented 3 years ago

I am writing my first gstreamer application and I was getting this same error. The pipeline consists of appsrc, videoconvert, and v42lsink.

The error went away when I set is-live to true for the appsrc.

step- commented 3 years ago

Thank you. I can't confirm either way because I no longer have that video hardware at my disposal.

DennisZhangOiler commented 5 days ago

Hi @step- and @cout , this could be a hardware issue, check this link.