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

error: Datapath-v4l2 error on galicaster init #520

Open
andiempettJISC opened this issue Apr 28, 2017 · 6 comments
Open

error: Datapath-v4l2 error on galicaster init #520

andiempettJISC opened this issue Apr 28, 2017 · 6 comments
Labels

Comments

@andiempettJISC
Copy link
Collaborator

rarely, when galicaster starts up and there's NO video signal, the datapath v4l2 drivers fail to start correctly giving a green screen, try to record this an the pipeline fails with an error:

to replicate have a capture agent with datapath connected but with no video signal so you see the datapath timer. keep restarting galicaster. green screen should appear after 10+ trys

galicaster      2017-04-28 14:12:12,775 ERROR   recorder/service        Handle error (Driver error)
galicaster      2017-04-28 14:12:12,829 ERROR   recorder/service        Handle error (Driver error)
galicaster      2017-04-28 14:12:12,830 INFO    opencast/service        Init opencast client
galicaster      2017-04-28 14:12:12,839 INFO    opencast/service        Set status idle to server
galicaster      2017-04-28 14:12:12,840 INFO    opencast/client Sending state idle
galicaster      2017-04-28 14:12:12,842 ERROR   recorder/recorder       gst-resource-error-quark: Cannot 
identify device '/dev/video0'. (3) (v4l2_calls.c(606): gst_v4l2_open (): /GstPipeline:galicaster_recorder
/galicaster+recorder+bins+v4l2+GCv4l2:galicaster+recorder+bins+v4l2+gcv4l2-0/GstBin:bin0/GstV4l2Src:gc-v4
l2-src:
system error: No such file or directory)
galicaster      2017-04-28 14:12:12,842 ERROR   recorder/service        Handle error (gst-resource-error-
quark: Cannot identify device '/dev/video0'. (3) (v4l2_calls.c(606): gst_v4l2_open (): /GstPipeline:galic
aster_recorder/galicaster+recorder+bins+v4l2+GCv4l2:galicaster+recorder+bins+v4l2+gcv4l2-0/GstBin:bin0/Gs
tV4l2Src:gc-v4l2-src:
system error: No such file or directory))

attached is the syslog
datapath-v4l2-error.txt

reloading the profile gets rid of this error
attempted to install latest 16.04 and drivers with no success. reloading profile (restarting galicaster) helps
screenshot from 2017-04-28 15 30 42

@smarquard
Copy link

It may be worth testing this with gstreamer 1.10.

@ppettit
Copy link
Collaborator

ppettit commented Apr 28, 2017

you can also try switching to the hwe kernel/xorg with sudo apt-get install linux-generic-hwe-16.04 xserver-xorg-hwe-16.04 which gives you a 4.8 kernel. i've not seen this issue (yet!) with that and datapath driver 7.14.0.254

@ppettit
Copy link
Collaborator

ppettit commented May 18, 2017

not sure if this is related, but i've been doing some more testing and occasionally (less than 1 in 10) on startup i get the following message in the log and a black rather than green screen (though maybe that is more to do with the graphics hardware/drivers?):

galicaster      2017-05-18 12:45:49,831 ERROR   recorder/recorder       Timeout getting recorder status, current status: (<enum GST_STATE_CHANGE_ASYNC of type Gst.StateChangeReturn>, state=<enum GST_STATE_PAUSED of type Gst.State>, pending=<enum GST_STATE_PLAYING of type Gst.State>)
galicaster      2017-05-18 12:45:49,831 ERROR   recorder/service        Handle error (Timeout getting recorder status, current status: (<enum GST_STATE_CHANGE_ASYNC of type Gst.StateChangeReturn>, state=<enum GST_STATE_PAUSED of type Gst.State>, pending=<enum GST_STATE_PLAYING of type Gst.State>))

dumping the gstreamer graph, everything looks the same as when it works except all the nodes are in the NULL state instead of PLAYING.

it is fixed by pressing the 'swap' button to reload the profile.

there is nothing (other than the usual junk from the datapath driver about unknown pixel formats) in the system logs.

@smarquard
Copy link

"Timeout getting recorder status" is fixed in #493 (at least we haven't seen it again since updating to a version that included that change).

@ppettit
Copy link
Collaborator

ppettit commented May 18, 2017

thanks @smarquard that seems to have fixed it here too. sorry for butting in here.

@andiempettJISC
Copy link
Collaborator Author

i can confirm gst 1.10+ and possibly newer kernels fix this (also fix random muted audio bug)

@Alfro Alfro added the bug label Jun 10, 2019
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

4 participants