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: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x20aa540, config:0x208f9e0) #14

Open
johnny-wang16 opened this issue May 11, 2020 · 11 comments

Comments

@johnny-wang16
Copy link

I got this error when executing the command: gst-launch-1.0 -v -m realsensesrc ! videoconvert ! autovideosink

ERROR: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x20aa540, config:0x208f9e0)
Additional debug info:
../src/gstrealsensesrc.cpp(577): gst_realsense_src_start (): /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0

I should also mentioned that when executing sudo ninja -C build install , the output is the following and I suspect it didnt build successfully :

ninja: Entering directory `build'
[5/6] Installing files.
Installing src/libgstrealsensesrc.so to /usr/local/lib/x86_64-linux-gnu/gstreamer-1.0

The gst-inspect command output seems correct tho.

The full error message can be found here:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Got message #37 from element "autovideosink0" (need-context): GstMessageNeedContext, context-type=(string)gst.gl.GLDisplay;
Got message #38 from element "autovideosink0" (have-context): GstMessageHaveContext, context=(GstContext)NULL;
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Got message #41 from element "sink" (need-context): GstMessageNeedContext, context-type=(string)gst.gl.app_context;
Got message #42 from element "sink" (element): prepare-window-handle;
Got message #43 from element "sink" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #44 from element "glcolorbalance0" (need-context): GstMessageNeedContext, context-type=(string)gst.gl.app_context;
Got message #45 from element "glcolorbalance0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #46 from element "glcolorconvertelement0" (need-context): GstMessageNeedContext, context-type=(string)gst.gl.app_context;
Got message #47 from element "glcolorconvertelement0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #48 from element "gluploadelement0" (need-context): GstMessageNeedContext, context-type=(string)gst.gl.app_context;
Got message #49 from element "gluploadelement0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #50 from element "autovideosink0-actual-sink-glimage" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #51 from element "autovideosink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #52 from element "videoconvert0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #53 from element "realsensesrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #54 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_PAUSED;
Got message #58 from element "glcolorbalance0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #59 from element "glcolorconvertelement0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #60 from element "gluploadelement0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #61 from element "videoconvert0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #63 from element "realsensesrc0" (error): GstMessageError, gerror=(GError)NULL, debug=(string)"../src/gstrealsensesrc.cpp\(577\):\ gst_realsense_src_start\ \(\):\ /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0";
ERROR: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x20aa540, config:0x208f9e0)
Additional debug info:
../src/gstrealsensesrc.cpp(577): gst_realsense_src_start (): /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0
Setting pipeline to NULL ...
Freeing pipeline ...
@TimConnelly
Copy link
Contributor

Which model camera do you have? Looks like something is wrong with the configuration passed to the Realsense code.

The build/install output looks fine.

Try setting the properties when using gst-launch, for example:
gst-launch-1.0 realsensesrc stream-type=2 align=0 imu_on=false ! videoconvert ! autovideosink
*Note that this pipeline will display color and depth frames muxed together as a single RGB format buffer so the depth won't look correct.

Thank you for being patient working through these issues!

@johnny-wang16
Copy link
Author

Hello, I am using intel realsense T265. is this a tested model? I will be switching to D435i when it arrives. I tried the command you suggested and got the following error:

ERROR: Pipeline doesn't want to pause.
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
ERROR: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x1748a00, config:0x16fecf0)
Additional debug info:
../src/gstrealsensesrc.cpanp(577): gst_realsense_src_start (): /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0
Setting pipeline to NULL ...
Freeing pipeline ...

Thank you for creating this and helping me solve the issues!

@TimConnelly
Copy link
Contributor

We have not tested with the T265. It looks like the T series outputs different stream types than the D series. It shouldn't be too difficult to update the code for T series, but maybe a bit hard to test. It's just a matter of enabling the streams, setting the CAPs as appropriate, and supporting the streams with the mux/demux code.

@johnny-wang16
Copy link
Author

Got it. Thanks for the update. So I'll probably test it when my D435i arrives. Thank you very much.

@chezh
Copy link

chezh commented Sep 25, 2020

I have a similar problem with my D415, maybe you can help me too? ))

There are some my logs:

gst-launch-1.0 -v -m realsensesrc stream-type=2 align=0 imu_on=false ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Got message #11 from element "autovideosink0-actual-sink-nvoverlay" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #12 from element "autovideosink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #13 from element "videoconvert0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #14 from element "realsensesrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #15 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_PAUSED;
Got message #18 from element "videoconvert0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #20 from element "realsensesrc0" (error): GstMessageError, gerror=(GError)NULL, debug=(string)"../src/gstrealsensesrc.cpp(580):\ gst_realsense_src_start\ ():\ /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0";
ERROR: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x55a18be790, config:0x55a186e400)
Additional debug info:
../src/gstrealsensesrc.cpp(580): gst_realsense_src_start (): /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0
Setting pipeline to NULL ...
Freeing pipeline ...

@TimConnelly
Copy link
Contributor

@chezh The D415 does not have an IMU, correct? If that's the case the fix should be straightforward.

@chezh
Copy link

chezh commented Sep 28, 2020

@TimConnelly I'm not sure that it is about IMU. I tried to set IMU off and had the same result. I noticed that list of plugin formats (RS_to_Gst_Video_Format()) does not match with my D415 output format list. Could it be a reason?

P.S. Now tried on D435, got the same result
P.P.S As i understood, there is a problem with RS pipeline start.

@TimConnelly
Copy link
Contributor

@chezh What platform are you on? We've tested mostly on Ubuntu 18.04.

What formats does the D415 put out that aren't listed in the format conversion function?

It seems there were some breaking changes from librealsense at some point. Can you tell me the version of librealsense you have installed? (apt list | grep realsense on Ubuntu).

Try this branch and let me know if it helps. https://github.com/WKDSMRT/realsense-gstreamer/tree/bugfix-pipeline-start-error

@chezh
Copy link

chezh commented Sep 29, 2020

@TimConnelly this is exactly what i needed! Thanks for help)

@olesyaksyon
Copy link

Hi, I have the same issue, I am using Raspberry Pi with Raspbian, the realsense model is T265

detailed output:

Got message #47 from element "realsensesrc0" (error): GstMessageError, gerror=(GError)NULL, debug=(string)"../src/gstrealsensesrc.cpp(589):\ gst_realsense_src_start\ ():\ /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0";
ERROR: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x60d5e0, config:0x603498)
Additional debug info:
../src/gstrealsensesrc.cpp(589): gst_realsense_src_start (): /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0

I tried to re-install the bug-fix branch, but it didn't help me(

@karbach1
Copy link

Hi, I do also have the same issue. I am using a Lattepanda with Realsense D435 without IMU on Ubuntu 20. I need to use the Bugfix-Pipeline-Start-Error branch.

When I try:

gst-launch-1.0 realsensesrc stream-type=0 align=0 imu_on=false ! videoconvert ! autovideosink

The Output is:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0: RealSense error calling rs2_pipeline_start_with_config (pipe:0x55ba99aa6ec0, config:0x55ba99a87bb0)
Additional debug info:
../src/gstrealsensesrc.cpp(578): gst_realsense_src_start (): /GstPipeline:pipeline0/GstRealsenseSrc:realsensesrc0
Setting pipeline to NULL ...
Freeing pipeline ...

Any ideas?

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

5 participants