Gstreamer playback memory allocation failure when using USB3.0 highspeed - Apalis IMX8 with Ixora carrier board

Hi,

I am facing some issues when using the HS USB3.0 with a usb camera, pipeline works fine with all USB ports execpt the high speed one.

Linux apalis-imx8-06804745 5.15.77-6.1.0+git.349786b46e61 #1 SMP PREEMPT Wed Dec 28 09:58:45 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

here is the pipeline:

gst-launch-1.0 -v v4l2src device=/dev/video4 ! video/x-raw,width=1920,height=1080,framerate=30/1,format=YUY2 ! videoconvert ! autovideosink

the log:

/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)YUY2, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)2:4:5:1
0:00:00.876181031 883 0xaaab042bdd20 ERROR v4l2bufferpool gstv4l2bufferpool.c:730:gst_v4l2_buffer_pool_streamon:v4l2src0:pool0:src error with STREAMON 12 (Cannot allocate memory)
0:00:00.876284282 883 0xaaab042bdd20 ERROR bufferpool gstbufferpool.c:556:gst_buffer_pool_set_active:v4l2src0:pool0:src start failed
0:00:00.876366533 883 0xaaab042bdd20 WARN v4l2src gstv4l2src.c:759:gst_v4l2src_decide_allocation: error: Failed to allocate required memory.
0:00:00.876432158 883 0xaaab042bdd20 WARN v4l2src gstv4l2src.c:759:gst_v4l2src_decide_allocation: error: Buffer pool activation failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
…/git/sys/v4l2/gstv4l2src.c(759): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
0:00:00.876901787 883 0xaaab042bdd20 WARN basesrc gstbasesrc.c:3347:gst_base_src_prepare_allocation: Subclass failed to decide allocation
Execution ended after 0:00:00.298290840
Setting pipeline to NULL …
0:00:00.877034662 883 0xaaab042bdd20 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop: error: Internal data stream error.
0:00:00.877116788 883 0xaaab042bdd20 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline …

I need to use this port due camera capabilities.

thanks for your help.
Cheers,
Andre

Hi @andresilva, sorry for the delay.

Do you have any updates in your issue?
If you need any help, contact us!

Regards
Larissa Souza

Hi Larissa, how are you ?

I was talking to Bruno already, it seems to be an issue with my camera module not the Apalis/Ixora/Linux as I thought, for some reason the camera is failing to run on the USB SS port with capabilities I need, when changing to another module it works. I am in contact with camera’s vendor already. I am just waiting for them to make sure of it.

cheers,
Andre

1 Like