teltek / Galicaster

The Galicaster Project is an open initiative to provide flexible, state-of-the-art solutions for recording educational multimedia contents like lectures and conferences
galicaster.teltek.es
Other
35 stars 31 forks source link

Intermittent error when stopping record #444

Open MikeColeGuru opened 8 years ago

MikeColeGuru commented 8 years ago

Effects: 2.0.x branch

I am getting an intermittent error when I stop recording.

gst-resource-error-quark: Device '/dev/v4l/by-id/usb-Magewell_XI100DUSB-HDMI_A201160517003-video-index0' is busy (4) (gstv4l2object.c(3451): gst_v4l2_object_set_format_full (): /GstPipeline:galicaster_recorder/galicaster+recorder+bins+v4l2+GCv4l2:galicaster+recorder+bins+v4l2+gcv4l2-5/GstBin:bin7/GstV4l2Src:gc-v4l2-src: Call to S_FMT failed for YV12 @ 1920x1080: Device or resource busy)

It looks like it happens after it starts ingesting and tries to display the preview window once again. It doesn't happen all of the time but when it does happen I have to exit the program and start it up again. It also happens on several v4l devices.

I get this on the command line

\ (run_galicaster.py:6663): CRITICAL **: gst_v4l2_buffer_pool_process: assertion 'gst_buffer_pool_is_active (bpool)' failed libv4l2: error setting pixformat: Device or resource busy

galicaster-log-part.txt

conf.txt

testprofile.txt

Alfro commented 8 years ago

I think this issue is related to #298. We are currently having an issue with gstreamer and v4l2 when doing several recordings in a row.

denzuko commented 8 years ago

Have you guys looked into the ulimits? I've been working with @MikeColeGuru at our makerspace to come up with a fix. From what he initially told me it sounds like there's a lot of open file locks that never get closed out.

This is on my backlog so if there is anything I discover I'll be updating here as well.

Alfro commented 8 years ago

@denzuko I think this and #298 should be fixed for the next GStreamer 1.8 release. https://bugzilla.gnome.org/show_bug.cgi?id=772521