Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Gstreamer pipeline crash in libcamerasrc #228

Open
sarathy86 opened this issue Jan 4, 2025 · 1 comment
Open

Random Gstreamer pipeline crash in libcamerasrc #228

sarathy86 opened this issue Jan 4, 2025 · 1 comment

Comments

@sarathy86
Copy link

Random Gstreamer pipeline crash in libcamerasrc using with RPi5 and IMX477 HQCam.

Below is the error i am getting in log

** (node:27357): CRITICAL **: 03:04:26.117: void GstLibcameraSrcState::requestCompleted(libcamera::Request*): assertion 'wrap->request_.get() == request' failed

Below is the pipeline i am using

gst-launch-1.0 libcamerasrc ! video/x-raw,colorimetry=bt709,format=NV12,width=3840,height=3040,framerate=10/1 ! queue name=q1 ! videoconvert ! jpegenc quality=80 ! multifilesink max-files=1 location=/mnt/ramdisk/tmp.jpg

Can someone point to the reason for this assertion? Any race condition could cause this?

I suspect requestCompleted gets called before queuedRequests_.push(std::move(wrap)), is there a rare possibility of that with thread switching in place?

@naushir
Copy link
Collaborator

naushir commented Jan 6, 2025

Unfortunately I know next to nothing about gstreamer and the libcamerasrc component. I think this might be worth posting to the libcamera developer mailing list. You will get more capable eyes looking at it and helping you out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants