yarp icon indicating copy to clipboard operation
yarp copied to clipboard

yarpview segfaults when testing h264

Open S-Dafarra opened this issue 2 years ago • 2 comments

Describe the bug I tried to follow https://www.yarp.it/latest//group__carrier__h264__howto.html to test the usage of h264 with yarp. When I try to connect the server to yarpview, yarpview crashes with segfault.

To Reproduce Run the following on different terminals

T1

gst-launch-1.0 -v videotestsrc ! "video/x-raw, format=(string)I420, width=(int)640, height=(int)480" ! x264enc ! h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink host=127.0.0.1 port=101234

T2

yarpserver

T3

yarpview

T4

yarp register /gst h264 127.0.0.1 101234
yarp connect /gst /yarpview/img:i h264

Expected behavior yarpview should not crash. I tried running

gst-launch-1.0 -v udpsrc port=101234 caps="application/x-rtp, media=(string)video, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! avdec_h264! autovideosink

and I can see the image showed in https://www.yarp.it/latest//group__carrier__h264__howto.html

Screenshots If applicable, add screenshots to help explain your problem.

Configuration (please complete the following information):

  • OS: Ubuntu 20.04
  • yarp version: 3.7.0
  • compiler: gcc

Additional context Add any other context about the problem here.

S-Dafarra avatar Jul 18 '22 16:07 S-Dafarra

I checked if it was a problem of yarpview by using

yarpdev --device fakeFrameGrabber --name /grabber

but in this case there are no issues.

S-Dafarra avatar Jul 18 '22 16:07 S-Dafarra

clone of #2289

randaz81 avatar Aug 07 '23 17:08 randaz81