basler / gst-plugin-pylon

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

USB acA5472-17uc - No device on gstreamer Jetson TX2 #28

Open novaknhit opened 1 year ago

novaknhit commented 1 year ago

Hi, I have USB cam acA5472-17uc on Jetson TX2 with Ubuntu 20.04. Works with pylon sw. Installed gst-plugin-pylon, gst-inspect shows plugin and camera info, but there is no device when running gst-device-monitor-1.0, also no pipe with pylonsrc woks. Am I missing something?

thiesmoeller commented 1 year ago

Hi, currently the plugin has no DeviceProvider support to be listed using gst-device-monitor-1.0 ( this is on the backlog ... )

Can you please show what happens, if you call GST_DEBUG=pylonsrc:5 gst-launch-1.0 pylonsrc ! videoconvert ! autovideosink ?

What is the pipeline configuration, that is failing on your side?

novaknhit commented 1 year ago

I tried it with same pipeline you wrote, except the debug. Error enclosed.

[Warn  0.018210 GenTLProducer::Core] No explicit support for this platform, trying generic pipeline handler. Some features might not work as expected.
0:00:00.968154779  [334m63219   [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Sequencer Set Next" on device "2676:ba02:2:3:3": "Sequencer Set Next" has more than 1 selectors, ignoring!
0:00:00.970143993  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Sequencer Trigger Source" on device "2676:ba02:2:3:3": "Sequencer Trigger Source" has more than 1 selectors, ignoring!
0:00:00.972121590  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Sequencer Trigger Activation" on device "2676:ba02:2:3:3": "Sequencer Trigger Activation" has more than 1 selectors, ignoring!
0:00:02.311231461  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Color Transformation Value" on device "2676:ba02:2:3:3": "Color Transformation Value" has more than 1 selectors, ignoring!
0:00:02.314588736  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Acquisition Start" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:02.314792736  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Acquisition Stop" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:03.258429627  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Generate Software Trigger" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:04.330295916  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "LUT Value" on device "2676:ba02:2:3:3": "LUT Value" has more than 1 selectors, ignoring!
0:00:04.330561676  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "LUT Value All" on device "2676:ba02:2:3:3": Unsupported node of type 7
0:00:04.737186448  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Software Signal Pulse" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:04.837388843  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Counter Reset" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:04.980806124  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "User Set Load" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:04.981129228  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "User Set Save" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:05.212309881  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Timestamp Latch" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:05.408171221  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Device Reset" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:06.017816139  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "File Access Buffer" on device "2676:ba02:2:3:3": Unsupported node of type 7
0:00:06.018354954  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "File Access Offset" on device "2676:ba02:2:3:3": "File Access Offset" has more than 1 selectors, ignoring!
0:00:06.018785642  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "File Access Length" on device "2676:ba02:2:3:3": "File Access Length" has more than 1 selectors, ignoring!
0:00:06.019092489  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "File Operation Status" on device "2676:ba02:2:3:3": "File Operation Status" has more than 1 selectors, ignoring!
0:00:06.019330185  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "File Operation Result" on device "2676:ba02:2:3:3": "File Operation Result" has more than 1 selectors, ignoring!
0:00:06.450535308  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "File Operation Execute" on device "2676:ba02:2:3:3": "File Operation Execute" has more than 1 selectors, ignoring!
0:00:06.465141913  [334m63219 [00m   0x55ad417060  [32;01mFIXME   [00m  [00m            pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: [00m Unable to install property "Vignetting Correction Load" on device "2676:ba02:2:3:3": Unsupported node of type 4
[Warn  6.652265 GenTLProducer::Core] No explicit support for this platform, trying generic pipeline handler. Some features might not work as expected.
[Warn  6.636931 GenTLProducer::Core] No explicit support for this platform, trying generic pipeline handler. Some features might not work as expected.
0:00:07.554624945  [334m63219 [00m   0x55ad417060  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> [00m Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.556763982  [334m63219 [00m   0x55ad417060  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> [00m Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.558543116  [334m63219 [00m   0x55ad417060  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> [00m Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.558881419  [334m63219 [00m   0x55ad417060  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> [00m Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.617521405  [334m63219 [00m   0x55ad417060  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:659:gst_pylon_src_start:<pylonsrc0> [00m Attempting to create camera device with the following configuration:
    name: (null)
    serial number: (null)
    index: -1
    user set: (null) 
    PFS filepath: (null). If defined, the PFS file will override the user set configuration.
[Warn  7.522968 GenTLProducer::Core] No explicit support for this platform, trying generic pipeline handler. Some features might not work as expected.
[Warn  7.508423 GenTLProducer::Core] No explicit support for this platform, trying generic pipeline handler. Some features might not work as expected.
0:00:08.497102444  [334m63219 [00m   0x55ad1c1aa0  [37mDEBUG   [00m  [00m            pylonsrc gstpylonsrc.c:451:gst_pylon_src_get_caps:<pylonsrc0> [00m Camera returned caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2 }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]; video/x-bayer, format=(string){ rggb }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]
0:00:08.497291340  [334m63219 [00m   0x55ad1c1aa0  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:462:gst_pylon_src_get_caps:<pylonsrc0> [00m Returning caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2 }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]; video/x-bayer, format=(string){ rggb }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]
0:00:08.505284801  [334m63219 [00m   0x55ad1c1aa0  [37mDEBUG   [00m  [00m            pylonsrc gstpylonsrc.c:508:gst_pylon_src_fixate:<pylonsrc0> [00m Fixating caps video/x-raw, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ], format=(string){ YUY2, RGB, BGR, GRAY8 }
0:00:08.505392225  [334m63219 [00m   0x55ad1c1aa0  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:538:gst_pylon_src_fixate:<pylonsrc0> [00m Fixated caps to video/x-raw, width=(int)5472, height=(int)3648, framerate=(fraction)30/1, format=(string)YUY2
0:00:08.505443169  [334m63219 [00m   0x55ad1c1aa0  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:558:gst_pylon_src_set_caps:<pylonsrc0> [00m Setting new caps: video/x-raw, width=(int)5472, height=(int)3648, framerate=(fraction)30/1, format=(string)YUY2
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming stopped, reason not-negotiated (-4)
0:00:08.751552890  [334m63219 [00m   0x55ad417060  [36mINFO    [00m  [00m            pylonsrc gstpylonsrc.c:715:gst_pylon_src_stop:<pylonsrc0> [00m Stopping camera device
thiesmoeller commented 1 year ago

did a quick edit to your last message ( correct markup for multiline preformatted is triple quotes ``` multiline content ```

.. just to be sure, that this is not due to your large image sensor which can't be displayed on your screen:

gst-launch-1.0 pylonsrc ! video/x-raw,width=640,height=480,format=RGB ! videoconvert ! autovideosink

novaknhit commented 1 year ago

.. just to be sure, that this is not due to your large image sensor which can't be displayed on your screen:

gst-launch-1.0 pylonsrc ! video/x-raw,width=640,height=480,format=RGB ! videoconvert ! autovideosink

same error

thiesmoeller commented 1 year ago

.. test sequence :-) :

your output works: gst-launch-1.0 videotestsrc ! video/x-raw,width=640,height=480,format=RGB ! videoconvert ! autovideosink

It seems that you have drivers for Basler MIPI cameras installed. please disable as a test the driver search path in your current shell:

export GENICAM_GENTL64_PATH=""

before calling

GST_DEBUG=pylonsrc:7 gst-launch-1.0 pylonsrc ! video/x-raw,width=640,height=480,format=RGB ! videoconvert ! autovideosink

novaknhit commented 1 year ago

Sorry for delay ...

jetson@jetson:~$ export GENICAM_GENTL64_PATH=""
jetson@jetson:~$ GST_DEBUG=pylonsrc:7 gst-launch-1.0 pylonsrc ! video/x-raw,width=640,height=480,format=RGB ! videoconvert ! autovideosink
0:00:00.916914050 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Sequencer Set Next" on device "2676:ba02:2:3:3": "Sequencer Set Next" has more than 1 selectors, ignoring!
0:00:00.918509505 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Sequencer Trigger Source" on device "2676:ba02:2:3:3": "Sequencer Trigger Source" has more than 1 selectors, ignoring!
0:00:00.920855680 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Sequencer Trigger Activation" on device "2676:ba02:2:3:3": "Sequencer Trigger Activation" has more than 1 selectors, ignoring!
0:00:02.317702054 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Color Transformation Value" on device "2676:ba02:2:3:3": "Color Transformation Value" has more than 1 selectors, ignoring!
0:00:02.322424804 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Acquisition Start" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:02.322654500 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Acquisition Stop" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:03.262647576 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Generate Software Trigger" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:04.349196119 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "LUT Value" on device "2676:ba02:2:3:3": "LUT Value" has more than 1 selectors, ignoring!
0:00:04.349433367 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "LUT Value All" on device "2676:ba02:2:3:3": Unsupported node of type 7
0:00:04.767492928 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Software Signal Pulse" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:04.878683070 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Counter Reset" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:05.010030929 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "User Set Load" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:05.010181585 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "User Set Save" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:05.249787747 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Timestamp Latch" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:05.456709385 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Device Reset" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:06.073586461 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "File Access Buffer" on device "2676:ba02:2:3:3": Unsupported node of type 7
0:00:06.073862013 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "File Access Offset" on device "2676:ba02:2:3:3": "File Access Offset" has more than 1 selectors, ignoring!
0:00:06.074044285 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "File Access Length" on device "2676:ba02:2:3:3": "File Access Length" has more than 1 selectors, ignoring!
0:00:06.074204861 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "File Operation Status" on device "2676:ba02:2:3:3": "File Operation Status" has more than 1 selectors, ignoring!
0:00:06.074344285 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "File Operation Result" on device "2676:ba02:2:3:3": "File Operation Result" has more than 1 selectors, ignoring!
0:00:06.531111119 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "File Operation Execute" on device "2676:ba02:2:3:3": "File Operation Execute" has more than 1 selectors, ignoring!
0:00:06.562790108 23814   0x55a33aac60 FIXME               pylonsrc gstpylonfeaturewalker.cpp:260:install_properties: Unable to install property "Vignetting Correction Load" on device "2676:ba02:2:3:3": Unsupported node of type 4
0:00:06.890161755 23814   0x55a33aac60 LOG                 pylonsrc gstchildinspector.cpp:290:gst_child_inspector_properties_to_string:<_2676_ba02_2_3_3-0> Getting properties to string
0:00:07.654472152 23814   0x55a33aac60 LOG                 pylonsrc gstchildinspector.cpp:290:gst_child_inspector_properties_to_string:<_2676_ba02_2_3_3_streamgrabber0> Getting properties to string
0:00:07.669524079 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.669649359 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.671443758 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.673110221 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:07.673316365 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:439:gst_pylon_src_get_caps:<pylonsrc0> Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
Setting pipeline to PAUSED ...
nvbuf_utils: Could not get EGL display connection
0:00:07.731049579 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:659:gst_pylon_src_start:<pylonsrc0> Attempting to create camera device with the following configuration:
    name: (null)
    serial number: (null)
    index: -1
    user set: (null) 
    PFS filepath: (null). If defined, the PFS file will override the user set configuration.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:08.588790673 23814   0x55a3154aa0 DEBUG               pylonsrc gstpylonsrc.c:451:gst_pylon_src_get_caps:<pylonsrc0> Camera returned caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2 }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]; video/x-bayer, format=(string){ rggb }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]
0:00:08.588915761 23814   0x55a3154aa0 INFO                pylonsrc gstpylonsrc.c:462:gst_pylon_src_get_caps:<pylonsrc0> Returning caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2 }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]; video/x-bayer, format=(string){ rggb }, width=(int)[ 8, 5496 ], height=(int)[ 6, 3672 ], framerate=(fraction)[ 125000/18641351, 1000000/1 ]
0:00:08.598354764 23814   0x55a3154aa0 DEBUG               pylonsrc gstpylonsrc.c:508:gst_pylon_src_fixate:<pylonsrc0> Fixating caps video/x-raw, format=(string)RGB, width=(int)640, height=(int)480, framerate=(fraction)[ 125000/18641351, 1000000/1 ]
0:00:08.598420364 23814   0x55a3154aa0 INFO                pylonsrc gstpylonsrc.c:538:gst_pylon_src_fixate:<pylonsrc0> Fixated caps to video/x-raw, format=(string)RGB, width=(int)640, height=(int)480, framerate=(fraction)30/1
0:00:08.598451084 23814   0x55a3154aa0 INFO                pylonsrc gstpylonsrc.c:558:gst_pylon_src_set_caps:<pylonsrc0> Setting new caps: video/x-raw, format=(string)RGB, width=(int)640, height=(int)480, framerate=(fraction)30/1
0:00:08.631359768 23814   0x55a3154aa0 LOG                 pylonsrc gstpylonsrc.c:622:gst_pylon_src_decide_allocation:<pylonsrc0> decide_allocation
0:00:08.679944507 23814   0x55a3154aa0 LOG                 pylonsrc gstpylonmeta.cpp:208:gst_buffer_add_pylon_meta: Adding Pylon chunk meta to buffer 0x55a382f5a0
0:00:08.680160667 23814   0x55a3154aa0 LOG                 pylonsrc gstpylonsrc.c:893:gst_pylon_src_create:<pylonsrc0> Created buffer buffer: 0x55a382f5a0, pts 0:00:00.129101555, dts 99:99:99.999999999, dur 0:00:00.033333333, size 921600, offset 1, offset_end 2, flags 0x0
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.129841844
Setting pipeline to NULL ...
0:00:08.681466491 23814   0x55a33aac60 LOG                 pylonsrc gstpylonsrc.c:738:gst_pylon_src_unlock:<pylonsrc0> unlock
0:00:08.681616378 23814   0x55a33aac60 INFO                pylonsrc gstpylonsrc.c:715:gst_pylon_src_stop:<pylonsrc0> Stopping camera device
Freeing pipeline ...
0:00:08.750480146 23814   0x55a33aac60 LOG                 pylonsrc gstpylonsrc.c:405:gst_pylon_src_finalize:<pylonsrc0> finalize
jetson@jetson:~$ 
novaknhit commented 1 year ago

Also, this is doing some other error, image resolution in pylon changes from native and output is only dark image (RGB 0,0,0 on all pixels), after reboot is image in pylon back OK.

thiesmoeller commented 1 year ago

... this "nvbuf_utils: Could not get EGL display connection" error is also when you run testsrc?

thiesmoeller commented 1 year ago

Hi @novaknhit, did you made progress on this issue? Have you solved the "could not get EGL display connection"`?

aureleq commented 7 months ago

Hi @thiesmoeller, I'm having a similar issue on Jetson Nano with the basler acA1440-220um. Would you have any idea on how to debug it? I see it might be related to the #90 issue

0:00:03.726886042  7333   0x55891d46c0 INFO                pylonsrc gstpylonsrc.cpp:560:gst_pylon_src_get_caps:<pylonsrc0> Camera not open yet, returning src template caps video/x-raw, format=(string){ GRAY8, RGB, BGR, YUY2, UYVY }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-bayer, format=(string){ rggb, bggr, gbgr, grgb }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
Setting pipeline to PAUSED ...
0:00:03.790080018  7333   0x55891d46c0 INFO                pylonsrc gstpylonsrc.cpp:778:gst_pylon_src_start:<pylonsrc0> Attempting to create camera device with the following configuration:
    name: (null)
    serial number: (null)
    index: -1
    user set: (null) 
    PFS filepath: (null) 
    Enable correction: True.
If defined, the PFS file will override the user set configuration.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:04.941703743  7333   0x5589c428f0 DEBUG               pylonsrc gstpylonsrc.cpp:570:gst_pylon_src_get_caps:<pylonsrc0> Camera returned caps video/x-raw, format=(string){ GRAY8 }, width=(int)[ 4, 1456 ], height=(int)[ 1, 1088 ], framerate=(fraction)[ 500000/79536431, 1000000/1 ]; video/x-bayer, format=(int){  }, width=(int)[ 4, 1456 ], height=(int)[ 1, 1088 ], framerate=(fraction)[ 500000/79536431, 1000000/1 ]
0:00:04.942022239  7333   0x5589c428f0 INFO                pylonsrc gstpylonsrc.cpp:581:gst_pylon_src_get_caps:<pylonsrc0> Returning caps video/x-raw, format=(string){ GRAY8 }, width=(int)[ 4, 1456 ], height=(int)[ 1, 1088 ], framerate=(fraction)[ 500000/79536431, 1000000/1 ]; video/x-bayer, format=(int){  }, width=(int)[ 4, 1456 ], height=(int)[ 1, 1088 ], framerate=(fraction)[ 500000/79536431, 1000000/1 ]
0:00:04.953465290  7333   0x5589c428f0 DEBUG               pylonsrc gstpylonsrc.cpp:624:gst_pylon_src_fixate:<pylonsrc0> Fixating caps video/x-raw, width=(int)[ 4, 1456 ], height=(int)[ 1, 1088 ], framerate=(fraction)[ 500000/79536431, 1000000/1 ], format=(string)GRAY8
0:00:04.953931029  7333   0x5589c428f0 INFO                pylonsrc gstpylonsrc.cpp:654:gst_pylon_src_fixate:<pylonsrc0> Fixated caps to video/x-raw, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, format=(string)GRAY8
0:00:04.954102127  7333   0x5589c428f0 INFO                pylonsrc gstpylonsrc.cpp:672:gst_pylon_src_set_caps:<pylonsrc0> Setting new caps: video/x-raw, width=(int)1440, height=(int)1080, framerate=(fraction)30/1, format=(string)GRAY8
0:00:04.958301068  7333   0x5589c428f0 INFO                pylonsrc gstpylon.cpp:860:gst_pylon_set_configuration: Set Feature Width: 1440
0:00:04.959997979  7333   0x5589c428f0 INFO                pylonsrc gstpylon.cpp:864:gst_pylon_set_configuration: Set Feature Height: 1080
0:00:04.966144878  7333   0x5589c428f0 INFO                pylonsrc gstpylon.cpp:935:gst_pylon_set_configuration: Set Feature AcquisitionFrameRate: 30.000000
0:00:04.967056407  7333   0x5589c428f0 DEBUG               pylonsrc gstpylonobject.cpp:262:gst_pylon_object_get_pylon_feature: Get Feature MaxNumBuffer: 16
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.111397480
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:05.008896082  7333   0x55891d46c0 INFO                pylonsrc gstpylonsrc.cpp:833:gst_pylon_src_stop:<pylonsrc0> Stopping camera device
Setting pipeline to NULL ...
Freeing pipeline ...
aureleq commented 7 months ago

Issue is fixed on my side. I wasn't running the command in an X11 environment...