basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
42 stars 10 forks source link

Caught SIGSEGV Jetson NX #55

Closed arun-kumark closed 1 year ago

arun-kumark commented 1 year ago

Describe the bug I am trying to execute the simple pipeline gst-launch-1.0 pylonsrc cam::ExposureTime=20000 cam::Gain=10.3 ! "video/x-raw,width=640,height=480,framerate=10/1,format=GRAY8" ! videoconvert ! autovideosink

As a result, I see the following SIGSEGV arun@arun:~/DeepStream-Yolo$ gst-launch-1.0 pylonsrc cam::ExposureTime=20000 cam::Gain=10.3 ! "video/x-raw,width=640,height=480,framerate=10/1,format=GRAY8" ! videoconvert ! autovideosink Caught SIGSEGV Spinning. Please run 'gdb gst-launch-1.0 19979' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core

Environment

I see that its not able to find the pylon on system, but I already installed the Pylon7 from Basler. I am not sure why this crash ! Could you please help to make the things back to normal again.

thanks Arun

SMA2016a commented 1 year ago

do you use GigE or USB Camera? The camera parameters need to be optimized for smooth data transfer.

try to pass the following setting capture-error=skip at pylonsrc

arun-kumark commented 1 year ago

Thanks for the suggestion SMA2016a, The problem was the network configuration in Pylon viewer and Network settings. Solving the configuration issue result in good pipeline running. I want to convert the following Pipeline in Python code for my Basler Camera. Do you have suggestion how to write and convert this pipeline to Python file? gst-launch-1.0 pylonsrc capture-error=skip pfs-location=example-file-name.pfs cam::ExposureTime=20000 cam::Gain=10.3 ! "video/x-raw(memory:NVMM)" ! videoconvert ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch-size=1 width=640 height=480 ! nvinfer config-file-path=/home/arun/Documents/DeepStream-Yolo/config_infer_primary_yoloV5.txt unique-id=1 ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink sync=0

thanks in advance !