raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.15k stars 4.99k forks source link

dmabuf problem when using v4l2h264dec #3519

Closed igormq closed 4 years ago

igormq commented 4 years ago

Hi,

I am having some weird problems on running the v4l2h264dec (Gstreamer 1.14.5) on RPI 4 (Raspbian Buster). First the following command runs successfully for over an hour:

gst-launch-1.0 rtspsrc location="rtsp://my/path" short-header=TRUE ! rtpjitterbuffer ! rtph264depay ! h264parse ! v4l2h264dec capture-io-mode=4 ! videoconvert ! videoscale ! videorate ! video/x-raw,framerate=5/1 ! v4l2h264enc capture-io-mode=4 output-io-mode=5 extra-controls="encode,h264_i_frame_period=10,video_bitrate_mode=0,h264_level=11" ! h264parse ! video/x-h264,format=avc,alignment=au

I have already investigated a little bit, and by enabling the debug mode on the bcm2835-codec, the following message appeared in dmesg after an hour running the command above:

vc_sm_cma_vchi_rx_ack: received response 65537, throw away...

Curiously, I got more than 2k+ vcsm-cma devices attached in dma_buf by running the following command when the gstreamer command above failed:

sudo cat /sys/kernel/debug/dma_buf/bufinfo | grep attached

Is it normal?

I did not see any CMA memory leak (by running cat /proc/meminfo |grep Cma) and by running lsmod | grep ^videobuf2_dma it looked ok (videobuf2_dma_contig 20480 46 bcm2835_codec)

Then, after restart the gstreamer pipeline above (using GST_DEBUG=5), I am getting the following "error":

c:807:gst_v4l2_video_dec_decide_allocation:<v4l2h264dec0> Duration invalid, not setting latency
0:00:00.802557151   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:743:gst_v4l2_buffer_pool_start:<v4l2h264dec0:pool:src> activating pool
0:00:00.802612094   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:773:gst_v4l2_buffer_pool_start:<v4l2h264dec0:pool:src> requesting 5 MMAP buffers
0:00:00.813285622   383  0x1b856f0 DEBUG          v4l2allocator gstv4l2allocator.c:692:gst_v4l2_allocator_start:<v4l2h264dec0:pool:src:allocator> allocated 5 mmap buffers out of 5 requested
0:00:00.813437138   383  0x1b856f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:790:gst_v4l2_buffer_pool_start:<v4l2h264dec0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.813575487   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1374:gst_v4l2_buffer_pool_release_buffer:<v4l2h264dec0:pool:src> release buffer 0xb3b1fdc0
0:00:00.813702522   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1374:gst_v4l2_buffer_pool_release_buffer:<v4l2h264dec0:pool:src> release buffer 0xb3b1f820
0:00:00.813815464   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1374:gst_v4l2_buffer_pool_release_buffer:<v4l2h264dec0:pool:src> release buffer 0xb3b1fbe0
0:00:00.813949980   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1374:gst_v4l2_buffer_pool_release_buffer:<v4l2h264dec0:pool:src> release buffer 0xb3b1fe60
0:00:00.814062237   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1374:gst_v4l2_buffer_pool_release_buffer:<v4l2h264dec0:pool:src> release buffer 0xb3b1ff00
0:00:00.814167069   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:620:gst_v4l2_buffer_pool_resurect_buffer:<v4l2h264dec0:pool:src> A buffer was lost, reallocating it
0:00:00.814210438   383  0x1b856f0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:1296:gst_v4l2_buffer_pool_acquire_buffer:<v4l2h264dec0:pool:src> acquire

and the dmesg is returning the following:

[ 8643.249608] bcm2835-codec bcm2835-codec: bcm2835_codec_release: Releasing instance 8908ec9a
[ 8643.250746] bcm2835-codec bcm2835-codec: bcm2835_codec_release: Releasing instance 8908ec9a
[ 8643.251807] bcm2835-codec bcm2835-codec: bcm2835_codec_release: Releasing instance 8908ec9a
[ 8643.877011] bcm2835-codec bcm2835-codec: Setting format for type 10, wxh: 0x0, fmt: H264, size 524288
[ 8643.877018] bcm2835-codec bcm2835-codec: Calulated bpl as 0, size 524288
[ 8643.885966] bcm2835-codec bcm2835-codec: Setting format for type 10, wxh: 1280x720, fmt: H264, size 524288
[ 8643.885978] bcm2835-codec bcm2835-codec: Calulated bpl as 0, size 524288
[ 8643.896251] bcm2835-codec bcm2835-codec: bcm2835_codec_create_component: component created as ril.video_decode
[ 8643.897007] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb c2622887
[ 8643.897561] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb c5f6ff48
[ 8643.898248] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_prepare: type: 10 ptr c2622887
[ 8643.898298] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_queue: type: 10 ptr c2622887 vbuf->flags 0, seq 0, bytesused 16443
[ 8643.898323] bcm2835-codec bcm2835-codec: bcm2835_codec_start_streaming: type: 10 count 1
[ 8643.903362] bcm2835-codec bcm2835-codec: Setting format for type 9, wxh: 1280x720, fmt: YU12, size 1382400
[ 8643.903374] bcm2835-codec bcm2835-codec: Calulated bpl as 1280, size 1382400
[ 8643.903632] bcm2835-codec bcm2835-codec: Set format for type 9, wxh: 1280x720, fmt: 32315559, size 1382400
[ 8643.910052] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb 558f36e4
[ 8643.912115] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb 5fed24c9
[ 8643.914063] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb dc97ce4e
[ 8643.916099] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb 9afe9a3f
[ 8643.918840] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_init: ctx:d9fefe4c, vb 24f88829
[ 8643.919544] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_prepare: type: 9 ptr 558f36e4
[ 8643.919646] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_prepare: type: 9 ptr 5fed24c9
[ 8643.919741] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_prepare: type: 9 ptr dc97ce4e
[ 8643.919832] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_prepare: type: 9 ptr 9afe9a3f
[ 8643.919921] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_prepare: type: 9 ptr 24f88829
[ 8643.920044] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_queue: type: 9 ptr 558f36e4 vbuf->flags 0, seq 0, bytesused 1382400
[ 8643.920057] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_queue: type: 9 ptr 5fed24c9 vbuf->flags 0, seq 0, bytesused 1382400
[ 8643.920068] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_queue: type: 9 ptr dc97ce4e vbuf->flags 0, seq 0, bytesused 1382400
[ 8643.920078] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_queue: type: 9 ptr 9afe9a3f vbuf->flags 0, seq 0, bytesused 1382400
[ 8643.920089] bcm2835-codec bcm2835-codec: bcm2835_codec_buf_queue: type: 9 ptr 24f88829 vbuf->flags 0, seq 0, bytesused 1382400
[ 8643.920099] bcm2835-codec bcm2835-codec: bcm2835_codec_start_streaming: type: 9 count 5
[ 8643.920382] bcm2835-codec bcm2835-codec: device_run: off we go

and the gstreamer just freezes (not is happening). When I finish it, the following messages are returned from dmesg:

[ 8643.920648] vc_sm_cma_vchi_rx_ack: received response 65658, throw away...
[ 8729.869398] vc_sm_cma_import_dmabuf: imported vc_sm_cma_get_buffer failed -512
[ 8729.869406] bcm2835_mmal_vchiq: vchiq_mmal_submit_buffer: vc_sm_import_dmabuf_fd failed, ret -512
[ 8729.869412] bcm2835-codec bcm2835-codec: device_run: Submitted ip buffer len 16443, pts 459119, flags 0004
[ 8729.869416] bcm2835-codec bcm2835-codec: device_run: Failed submitting ip buffer
[ 8729.869607] vc_sm_cma_import_dmabuf: imported vc_sm_cma_get_buffer failed -12
[ 8729.869612] bcm2835_mmal_vchiq: vchiq_mmal_submit_buffer: vc_sm_import_dmabuf_fd failed, ret -12
[ 8729.869616] bcm2835-codec bcm2835-codec: device_run: Failed submitting op buffer
[ 8729.869622] bcm2835-codec bcm2835-codec: device_run: Submitted src c2622887, dst 558f36e4
[ 8729.869629] bcm2835-codec bcm2835-codec: device_run: off we go
[ 8729.869822] vc_sm_cma_import_dmabuf: imported vc_sm_cma_get_buffer failed -12
[ 8729.869826] bcm2835_mmal_vchiq: vchiq_mmal_submit_buffer: vc_sm_import_dmabuf_fd failed, ret -12
[ 8729.869830] bcm2835-codec bcm2835-codec: device_run: Failed submitting op buffer
[ 8729.869835] bcm2835-codec bcm2835-codec: device_run: Submitted src   (null), dst 5fed24c9
[ 8729.869841] bcm2835-codec bcm2835-codec: device_run: off we go
[ 8729.869979] vc_sm_cma_import_dmabuf: imported vc_sm_cma_get_buffer failed -12
[ 8729.869983] bcm2835_mmal_vchiq: vchiq_mmal_submit_buffer: vc_sm_import_dmabuf_fd failed, ret -12
[ 8729.869987] bcm2835-codec bcm2835-codec: device_run: Failed submitting op buffer
[ 8729.869991] bcm2835-codec bcm2835-codec: device_run: Submitted src   (null), dst dc97ce4e
[ 8729.869997] bcm2835-codec bcm2835-codec: device_run: off we go
[ 8729.870134] vc_sm_cma_import_dmabuf: imported vc_sm_cma_get_buffer failed -12
[ 8729.870138] bcm2835_mmal_vchiq: vchiq_mmal_submit_buffer: vc_sm_import_dmabuf_fd failed, ret -12
[ 8729.870142] bcm2835-codec bcm2835-codec: device_run: Failed submitting op buffer
[ 8729.870146] bcm2835-codec bcm2835-codec: device_run: Submitted src   (null), dst 9afe9a3f
[ 8729.870152] bcm2835-codec bcm2835-codec: device_run: off we go
[ 8729.870289] vc_sm_cma_import_dmabuf: imported vc_sm_cma_get_buffer failed -12
[ 8729.870293] bcm2835_mmal_vchiq: vchiq_mmal_submit_buffer: vc_sm_import_dmabuf_fd failed, ret -12
[ 8729.870297] bcm2835-codec bcm2835-codec: device_run: Failed submitting op buffer
[ 8729.870301] bcm2835-codec bcm2835-codec: device_run: Submitted src   (null), dst 24f88829
[ 8729.873438] bcm2835-codec bcm2835-codec: bcm2835_codec_release: Releasing instance d9fefe4c
[ 8729.873453] bcm2835-codec bcm2835-codec: bcm2835_codec_stop_streaming: type: 9 - return buffers
[ 8729.873611] bcm2835-codec bcm2835-codec: bcm2835_codec_stop_streaming: done
[ 8729.873615] ------------[ cut here ]------------
[ 8729.873640] WARNING: CPU: 3 PID: 28727 at drivers/media/common/videobuf2/videobuf2-core.c:1688 __vb2_queue_cancel+0x158/0x1c8 [videobuf2_common]
[ 8729.873644] Modules linked in: veth xt_conntrack ipt_MASQUERADE nf_conntrack_netlink nft_counter xt_addrtype nft_compat nft_chain_nat_ipv4 nf_nat_ipv4 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink br_netfilter bridge overlay bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc brcmfmac brcmutil vc4 cfg80211 drm_kms_helper rfkill snd_soc_core raspberrypi_hwmon hwmon v3d snd_compress bcm2835_codec(C) snd_bcm2835(C) bcm2835_v4l2(C) snd_pcm_dmaengine gpu_sched v4l2_mem2mem snd_pcm v4l2_common bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig drm snd_timer videobuf2_memops syscopyarea videobuf2_v4l2 sysfillrect sysimgblt videobuf2_common snd fb_sys_fops drm_panel_orientation_quirks videodev media vc_sm_cma(C) rpivid_mem uio_pdrv_genirq uio ip_tables x_tables
[ 8729.873732]  ipv6
[ 8729.873740] CPU: 3 PID: 28727 Comm: rtpjitterbuffer Tainted: G        WC        4.19.108-v7l+ #1298
[ 8729.873743] Hardware name: BCM2835
[ 8729.873762] [<c0212e04>] (unwind_backtrace) from [<c020d5e0>] (show_stack+0x20/0x24)
[ 8729.873772] [<c020d5e0>] (show_stack) from [<c09c1ae8>] (dump_stack+0xe0/0x124)
[ 8729.873782] [<c09c1ae8>] (dump_stack) from [<c0222548>] (__warn+0x104/0x11c)
[ 8729.873790] [<c0222548>] (__warn) from [<c0222698>] (warn_slowpath_null+0x50/0x58)
[ 8729.873803] [<c0222698>] (warn_slowpath_null) from [<bf231104>] (__vb2_queue_cancel+0x158/0x1c8 [videobuf2_common])
[ 8729.873824] [<bf231104>] (__vb2_queue_cancel [videobuf2_common]) from [<bf231bdc>] (vb2_core_queue_release+0x28/0x48 [videobuf2_common])
[ 8729.873841] [<bf231bdc>] (vb2_core_queue_release [videobuf2_common]) from [<bf24f5d8>] (vb2_queue_release+0x18/0x1c [videobuf2_v4l2])
[ 8729.873857] [<bf24f5d8>] (vb2_queue_release [videobuf2_v4l2]) from [<bf3885a8>] (v4l2_m2m_ctx_release+0x24/0x38 [v4l2_mem2mem])
[ 8729.873873] [<bf3885a8>] (v4l2_m2m_ctx_release [v4l2_mem2mem]) from [<bf3b8d9c>] (bcm2835_codec_release+0x64/0xcc [bcm2835_codec])
[ 8729.873911] [<bf3b8d9c>] (bcm2835_codec_release [bcm2835_codec]) from [<bf17b5b8>] (v4l2_release+0x48/0x8c [videodev])
[ 8729.873946] [<bf17b5b8>] (v4l2_release [videodev]) from [<c03d6aa8>] (__fput+0xa4/0x1e8)
[ 8729.873955] [<c03d6aa8>] (__fput) from [<c03d6c5c>] (____fput+0x18/0x1c)
[ 8729.873964] [<c03d6c5c>] (____fput) from [<c02426dc>] (task_work_run+0xbc/0xe0)
[ 8729.873974] [<c02426dc>] (task_work_run) from [<c0226be8>] (do_exit+0x44c/0xc18)
[ 8729.873982] [<c0226be8>] (do_exit) from [<c022744c>] (do_group_exit+0x4c/0xe4)
[ 8729.873990] [<c022744c>] (do_group_exit) from [<c0233780>] (get_signal+0x1a4/0x8cc)
[ 8729.873996] [<c0233780>] (get_signal) from [<c020c92c>] (do_signal+0x274/0x474)
[ 8729.874002] [<c020c92c>] (do_signal) from [<c020cd38>] (do_work_pending+0xdc/0xf4)
[ 8729.874008] [<c020cd38>] (do_work_pending) from [<c0201034>] (slow_work_pending+0xc/0x20)
[ 8729.874011] Exception stack(0xd9f0bfb0 to 0xd9f0bff8)
[ 8729.874016] bfa0:                                     00000000 40045612 0103d010 00000000
[ 8729.874021] bfc0: 00f62368 fbad8000 b4f1eac0 00000036 b63ae004 0103d010 b6f57968 b58ff930
[ 8729.874026] bfe0: b58fdac8 b58fdab8 b6399c2b b6c9bf42 00070030 00000006
[ 8729.874055] ---[ end trace 7e68411832b7ee1c ]---
[ 8729.874063] videobuf2_common: driver bug: stop_streaming operation is leaving buf 558f36e4 in active state
[ 8729.874071] videobuf2_common: driver bug: stop_streaming operation is leaving buf 5fed24c9 in active state
[ 8729.874078] videobuf2_common: driver bug: stop_streaming operation is leaving buf dc97ce4e in active state
[ 8729.874085] videobuf2_common: driver bug: stop_streaming operation is leaving buf 9afe9a3f in active state
[ 8729.874091] videobuf2_common: driver bug: stop_streaming operation is leaving buf 24f88829 in active state
[ 8729.874099] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb 558f36e4
[ 8729.874105] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb 5fed24c9
[ 8729.874110] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb dc97ce4e
[ 8729.874117] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb 9afe9a3f
[ 8729.874121] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb 24f88829
[ 8729.874129] bcm2835-codec bcm2835-codec: bcm2835_codec_stop_streaming: type: 10 - return buffers
[ 8729.878187] bcm2835-codec bcm2835-codec: bcm2835_codec_stop_streaming: done
[ 8729.878193] ------------[ cut here ]------------
[ 8729.878219] WARNING: CPU: 0 PID: 28727 at drivers/media/common/videobuf2/videobuf2-core.c:1688 __vb2_queue_cancel+0x158/0x1c8 [videobuf2_common]
[ 8729.878223] Modules linked in: veth xt_conntrack ipt_MASQUERADE nf_conntrack_netlink nft_counter xt_addrtype nft_compat nft_chain_nat_ipv4 nf_nat_ipv4 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink br_netfilter bridge overlay bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc brcmfmac brcmutil vc4 cfg80211 drm_kms_helper rfkill snd_soc_core raspberrypi_hwmon hwmon v3d snd_compress bcm2835_codec(C) snd_bcm2835(C) bcm2835_v4l2(C) snd_pcm_dmaengine gpu_sched v4l2_mem2mem snd_pcm v4l2_common bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig drm snd_timer videobuf2_memops syscopyarea videobuf2_v4l2 sysfillrect sysimgblt videobuf2_common snd fb_sys_fops drm_panel_orientation_quirks videodev media vc_sm_cma(C) rpivid_mem uio_pdrv_genirq uio ip_tables x_tables
[ 8729.878309]  ipv6
[ 8729.878318] CPU: 0 PID: 28727 Comm: rtpjitterbuffer Tainted: G        WC        4.19.108-v7l+ #1298
[ 8729.878321] Hardware name: BCM2835
[ 8729.878337] [<c0212e04>] (unwind_backtrace) from [<c020d5e0>] (show_stack+0x20/0x24)
[ 8729.878345] [<c020d5e0>] (show_stack) from [<c09c1ae8>] (dump_stack+0xe0/0x124)
[ 8729.878355] [<c09c1ae8>] (dump_stack) from [<c0222548>] (__warn+0x104/0x11c)
[ 8729.878362] [<c0222548>] (__warn) from [<c0222698>] (warn_slowpath_null+0x50/0x58)
[ 8729.878376] [<c0222698>] (warn_slowpath_null) from [<bf231104>] (__vb2_queue_cancel+0x158/0x1c8 [videobuf2_common])
[ 8729.878398] [<bf231104>] (__vb2_queue_cancel [videobuf2_common]) from [<bf231bdc>] (vb2_core_queue_release+0x28/0x48 [videobuf2_common])
[ 8729.878415] [<bf231bdc>] (vb2_core_queue_release [videobuf2_common]) from [<bf24f5d8>] (vb2_queue_release+0x18/0x1c [videobuf2_v4l2])
[ 8729.878430] [<bf24f5d8>] (vb2_queue_release [videobuf2_v4l2]) from [<bf3885b0>] (v4l2_m2m_ctx_release+0x2c/0x38 [v4l2_mem2mem])
[ 8729.878446] [<bf3885b0>] (v4l2_m2m_ctx_release [v4l2_mem2mem]) from [<bf3b8d9c>] (bcm2835_codec_release+0x64/0xcc [bcm2835_codec])
[ 8729.878483] [<bf3b8d9c>] (bcm2835_codec_release [bcm2835_codec]) from [<bf17b5b8>] (v4l2_release+0x48/0x8c [videodev])
[ 8729.878518] [<bf17b5b8>] (v4l2_release [videodev]) from [<c03d6aa8>] (__fput+0xa4/0x1e8)
[ 8729.878527] [<c03d6aa8>] (__fput) from [<c03d6c5c>] (____fput+0x18/0x1c)
[ 8729.878535] [<c03d6c5c>] (____fput) from [<c02426dc>] (task_work_run+0xbc/0xe0)
[ 8729.878544] [<c02426dc>] (task_work_run) from [<c0226be8>] (do_exit+0x44c/0xc18)
[ 8729.878551] [<c0226be8>] (do_exit) from [<c022744c>] (do_group_exit+0x4c/0xe4)
[ 8729.878558] [<c022744c>] (do_group_exit) from [<c0233780>] (get_signal+0x1a4/0x8cc)
[ 8729.878564] [<c0233780>] (get_signal) from [<c020c92c>] (do_signal+0x274/0x474)
[ 8729.878570] [<c020c92c>] (do_signal) from [<c020cd38>] (do_work_pending+0xdc/0xf4)
[ 8729.878576] [<c020cd38>] (do_work_pending) from [<c0201034>] (slow_work_pending+0xc/0x20)
[ 8729.878580] Exception stack(0xd9f0bfb0 to 0xd9f0bff8)
[ 8729.878585] bfa0:                                     00000000 40045612 0103d010 00000000
[ 8729.878590] bfc0: 00f62368 fbad8000 b4f1eac0 00000036 b63ae004 0103d010 b6f57968 b58ff930
[ 8729.878595] bfe0: b58fdac8 b58fdab8 b6399c2b b6c9bf42 00070030 00000006
[ 8729.878599] ---[ end trace 7e68411832b7ee1d ]---
[ 8729.878606] videobuf2_common: driver bug: stop_streaming operation is leaving buf c2622887 in active state
[ 8729.878615] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb c2622887
[ 8729.878620] bcm2835-codec bcm2835-codec: bcm2835_codec_buffer_cleanup: ctx:d9fefe4c, vb c5f6ff48

because the v4l2h264dec was not able to flush everything:

0:01:09.617667940   441   0xf681a0 DEBUG         v4l2bufferpool gstv4l2bufferpool.c:960:gst_v4l2_buffer_pool_flush_start:<v4l2h264dec0:pool:sink> start flushing

Can you guys help me here?

Thanks in advance!

System Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:

https://pastebin.com/xHQzf9SQ

fjleon1980 commented 4 years ago

@igormq any reason you closed this issue? I have https://github.com/raspberrypi/firmware/issues/1298 and https://github.com/raspberrypi/firmware/issues/1384 opened for what i believe it's the same underlying issue. In my case, chromium is freezing watching videos