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

[Bug]: restarting-writers causes SIGSEGV #610

Open
1 task done
stephematician opened this issue Jan 9, 2025 · 1 comment
Open
1 task done

[Bug]: restarting-writers causes SIGSEGV #610

stephematician opened this issue Jan 9, 2025 · 1 comment
Assignees
Labels

Comments

@stephematician
Copy link
Contributor

stephematician commented Jan 9, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Detail

Updated restarting-wrirers.sh due to outdated syntax:

@@ -15,7 +15,7 @@ run_writers() {
 }
 
 #v4l2-ctl -d $device -c keep_format=1 || exit 1
-./utils/v4l2loopback-ctl set-caps "video/x-raw, format=UYVY, width=640, height=480, framerate=(fraction)25/1" $device || exit 1
+./utils/v4l2loopback-ctl set-caps "$device" 'UYVY:640x480@25/1' || exit 1
 v4l2-ctl -d "$device" -c sustain_framerate=0 || exit 1

Then tried to run script:

user@home:~/v4l2loopback/$ sudo modprobe v4l2loopback /dev/video10
user@home:~/v4l2loopback/$ sudo ./examples/restarting-writer.sh /dev/video10
Using /dev/video10
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.040314196
Setting pipeline to NULL ...
Caught SIGSEGV

gst-launch version:

user@home:~/$ gst-launch-1.0 --version
gst-launch-1.0 version 1.24.2
GStreamer 1.24.2
https://launchpad.net/ubuntu/+source/gstreamer1.0

v4l2loopback version

v0.13.2-13-ge750af9

kernel version

Linux zephyrus-g15 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

OS Version

Ubuntu MATE 24.04 noble

Which CPU are you using?

amd64/x86_64 ("64bit Intel")

@stephematician
Copy link
Contributor Author

Will be addressed with #611 (almost ready). Now shows test source, then a blank (green) screen every few seconds, then the test source again, and so on until finally the green screen.

I have also successfully set a timeout image that appears rather than the green screen - will put (required) changes to v4l2loopback-ctl in separate PR.

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

No branches or pull requests

2 participants