This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-TDA4VM: Demo setting

Part Number: SK-TDA4VM

Hello,

Let me confirm about below.

* When I run following model, I found error message.
* ONR-OD-8220-yolox-s-lite-mmdet-coco-640x640

Since I could run following model, I suspect I need to change image size for inference.
* TFL-OD-2020-ssdLite-mobDet-DSP-coco-320x320

Both first and second models are implemented by default on edge AI img file. However, is my understanding even if we use such models, I need to change python scripts themselves not only custom configuration file(yaml file) correct ?
(Or, is there case that not only change script, but also change source code(It means that I need to rebuild) ?)

Best Regards,

  • Hi Machida-san,

    Could you post the full error message? Using below config file I was able to run ONR-OD-8220-yolox-s-lite-mmdet-coco-640x640 model on current 8.2 release of the SDK.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/object_5F00_detection.yaml

    Regards,

    Takuma

  • Hello Fujiwara-san,

    Thank you for your reply and post configuration file.
    Here is error message. And it seems that I understand input condition does not something meet for using model.
    According to your configuration file, you use jpg image file not input from USB camera.
    Why did you use image file not video file(not only captured video but also USB camera) ? 

    --Error message--
    [ 546.595113] usb 1-1.1: reset high-speed USB device number 3 using xhci-hcd
    Traceback (most recent call last):
    File "./app_edgeai.py", line 71, in <module>
    main(sys.argv)
    File "./app_edgeai.py", line 42, in main
    config = yaml.safe_load(f)
    File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 162, in safe_load
    return load(stream, SafeLoader)
    File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
    File "/usr/lib/python3.8/site-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
    File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
    File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
    File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 438, in parse_block_mapping_key
    raise ParserError("while parsing a block mapping", self.marks[-1],
    yaml.parser.ParserError: while parsing a block mapping
    in "../configs/my_configuration.yaml", line 44, column 9
    expected <block end>, but found '<block mapping start>'
    in "../configs/my_configuration.yaml", line 47, column 10
    --

    BR,

  • Hi Machida-san,

    There is no particular reason for my example configuration file using file input. I have also been able to run with live input as well using below yaml file. For reference, the webcam that we use during testing and development is Logitech C270/C920/C922. 

    The error does look like it is related to the input. Could you try running the following command and post the logs:

    GST_DEBUG=4 gst-launch-1.0 v4l2src device=/dev/video2 io-mode=2 ! autovideosink

    As a warning, the video will look choppy on the screen (if the command works) but this is expected.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/4101.object_5F00_detection.yaml

    Regards,

    Takuma

  • Hello Fujiwara-san,

    Attached is log when I performed command which you described.
    Could you please confirm it ?

    BR,

    root@tda4vm-sk:/opt/edge_ai_apps# ls
    PROCESSOR-SDK-LINUX-SK-TDA4VM_manifest.html  download_models.sh
    apps_cpp				     edge_ai_apps_manifest.html
    apps_python				     init_script.sh
    configs					     internal_docs
    data					     scripts
    docker					     setup_script.sh
    docs					     tests
    
    root@tda4vm-sk:/opt/edge_ai_apps# GST_DEBUG=4 gst-launch-1.0 v4l2src device=/dev//video2 io-mode=2 ! autovideosink
    0:00:00.008271820  1464     0x25a11e00 INFO                GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.3
    0:00:00.008335660  1464     0x25a11e00 INFO                GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib
    0:00:00.008362645  1464     0x25a11e00 INFO                GST_INIT gst.c:605:init_pre: Linux tda4vm-sk 5.10.100-g7a7a3af903 #1 SMP PREEMPT Mon Apr 18 21:26:24 UTC 2022 aarch64
    0:00:00.015293975  1464     0x25a11e00 INFO                GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
    0:00:00.017689100  1464     0x25a11e00 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
    0:00:00.017958545  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
    0:00:00.018094225  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
    0:00:00.018110915  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1
    0:00:00.018139135  1464     0x25a11e00 INFO            GST_REGISTRY gstregistry.c:1733:ensure_current_registry: reading registry cache: /home/root/.cache/gstreamer-1.0/registry.aarch64.bin
    0:00:00.067993235  1464     0x25a11e00 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/root/.cache/gstreamer-1.0/registry.aarch64.bin in 0.049803 seconds
    0:00:00.068070965  1464     0x25a11e00 INFO            GST_REGISTRY gstregistry.c:1592:scan_and_update_registry: Validating plugins from registry cache: /home/root/.cache/gstreamer-1.0/registry.aarch64.bin
    0:00:00.075708020  1464     0x25a11e00 INFO            GST_REGISTRY gstregistry.c:1340:gst_registry_scan_path_level:<registry0> cached info for /usr/lib/gstreamer-1.0/libgstvideo4linux2.so is stale
    0:00:00.000071335  1465      0x39f1800 INFO                GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.3
    0:00:00.000126610  1465      0x39f1800 INFO                GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib
    0:00:00.000146445  1465      0x39f1800 INFO                GST_INIT gst.c:605:init_pre: Linux tda4vm-sk 5.10.100-g7a7a3af903 #1 SMP PREEMPT Mon Apr 18 21:26:24 UTC 2022 aarch64
    0:00:00.000486155  1465      0x39f1800 INFO                GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
    0:00:00.001086590  1465      0x39f1800 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
    0:00:00.001332000  1465      0x39f1800 INFO      GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
    0:00:00.001460385  1465      0x39f1800 INFO      GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
    0:00:00.001476775  1465      0x39f1800 INFO      GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1
    0:00:00.001501135  1465      0x39f1800 INFO            GST_REGISTRY gstregistry.c:1768:ensure_current_registry: registry reading and updating done, result = 1
    0:00:00.001513380  1465      0x39f1800 INFO                GST_INIT gst.c:806:init_post: GLib runtime version: 2.62.6
    0:00:00.001524205  1465      0x39f1800 INFO                GST_INIT gst.c:808:init_post: GLib headers version: 2.62.6
    0:00:00.001532580  1465      0x39f1800 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
    [   53.059898] usb 1-1.1: reset high-speed USB device number 3 using xhci-hcd
    0:00:00.546017130  1465      0x39f1800 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstvideo4linux2.so" loaded
    0:00:00.634977825  1464     0x25a11e00 INFO            GST_REGISTRY gstregistry.c:1700:scan_and_update_registry: Registry cache changed. Writing new registry cache
    0:00:00.635012370  1464     0x25a11e00 INFO            GST_REGISTRY gstregistrybinary.c:369:priv_gst_registry_binary_write_cache: Building binary registry cache image
    0:00:00.672770595  1464     0x25a11e00 INFO            GST_REGISTRY gstregistrybinary.c:401:priv_gst_registry_binary_write_cache: Writing binary registry cache
    0:00:00.801508880  1464     0x25a11e00 INFO            GST_REGISTRY gstregistrybinary.c:262:gst_registry_binary_cache_finish: Wrote binary registry cache
    0:00:00.801574510  1464     0x25a11e00 INFO            GST_REGISTRY gstregistry.c:1709:scan_and_update_registry: Registry cache written successfully
    0:00:00.801590020  1464     0x25a11e00 INFO            GST_REGISTRY gstregistry.c:1768:ensure_current_registry: registry reading and updating done, result = 1
    0:00:00.801604375  1464     0x25a11e00 INFO                GST_INIT gst.c:806:init_post: GLib runtime version: 2.62.6
    0:00:00.801617710  1464     0x25a11e00 INFO                GST_INIT gst.c:808:init_post: GLib headers version: 2.62.6
    0:00:00.801626605  1464     0x25a11e00 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
    0:00:00.801714600  1464     0x25a11e00 INFO            GST_PIPELINE gstparse.c:336:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video2 io-mode=2 ! autovideosink '
    0:00:00.810282530  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstvideo4linux2.so" loaded
    0:00:00.810318625  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "v4l2src"
    0:00:00.811407385  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseSrc@0x25dd02a0> adding pad 'src'
    0:00:00.815971580  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstautodetect.so" loaded
    0:00:00.816003160  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "autovideosink"
    0:00:00.816160010  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<autovideosink0> adding pad 'sink'
    0:00:00.826244260  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstcoreelements.so" loaded
    0:00:00.826278935  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:360:gst_element_factory_create: creating element "fakesink" named "fake-video-sink"
    0:00:00.826468055  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseSink@0x25de0410> adding pad 'sink'
    0:00:00.826535045  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad fake-video-sink:sink
    0:00:00.826554020  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link sink:proxypad0 and fake-video-sink:sink
    0:00:00.826569955  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2585:gst_pad_link_full: linked sink:proxypad0 and fake-video-sink:sink, successful
    0:00:00.826581175  1464     0x25a11e00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
    0:00:00.826623645  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "pipeline"
    0:00:00.826729435  1464     0x25a11e00 INFO            GST_PIPELINE grammar.y:648:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstAutoVideoSink named autovideosink0 (0/0) with caps "(NULL)"
    0:00:00.826746795  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element autovideosink0:(any)
    0:00:00.826763740  1464     0x25a11e00 INFO                GST_PADS gstutils.c:1034:gst_pad_check_link: trying to link v4l2src0:src and autovideosink0:sink
    0:00:00.826818965  1464     0x25a11e00 INFO                GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: v4l2src0 and autovideosink0 in same bin, no need for ghost pads
    0:00:00.826841125  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link v4l2src0:src and autovideosink0:sink
    0:00:00.826865945  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2585:gst_pad_link_full: linked v4l2src0:src and autovideosink0:sink, successful
    0:00:00.826876040  1464     0x25a11e00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
    0:00:00.826886300  1464     0x25a11e00 INFO               GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<v4l2src0:src> Received event on flushing pad. Discarding
    Setting pipeline to PAUSED ...
    0:00:00.826991480  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<autovideosink0> current NULL pending VOID_PENDING, desired next READY
    0:00:00.827009755  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<fake-video-sink> completed state change to NULL
    0:00:00.827031460  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking sink:proxypad0(0x25ddc130) and fake-video-sink:sink(0x25dd42d0)
    0:00:00.827047225  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked sink:proxypad0 and fake-video-sink:sink
    0:00:00.827059840  1464     0x25a11e00 INFO           GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<autovideosink0> removed child "fake-video-sink"
    0:00:00.827080770  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3264:gst_element_dispose:<fake-video-sink> 0x25de0410 dispose
    0:00:00.827092710  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<fake-video-sink> removing pad 'sink'
    0:00:00.827118405  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3309:gst_element_dispose:<fake-video-sink> 0x25de0410 parent class dispose
    0:00:00.827131135  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3341:gst_element_finalize:<fake-video-sink> 0x25de0410 finalize
    0:00:00.827142490  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3346:gst_element_finalize:<fake-video-sink> 0x25de0410 finalize parent
    0:00:00.831328155  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstkms.so" loaded
    0:00:00.831366840  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:360:gst_element_factory_create: creating element "kmssink" named "autovideosink0-actual-sink-kms"
    0:00:00.831735460  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseSink@0x25de82f0> adding pad 'sink'
    0:00:00.831803870  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad autovideosink0-actual-sink-kms:sink
    0:00:00.842187340  1464     0x25a11e00 INFO                 kmssink gstkmssink.c:366:log_drm_version:<autovideosink0-actual-sink-kms> DRM v1.0.0 [tidss �\ TI Keystone DSS �\ 20180215]
    0:00:00.842241455  1464     0x25a11e00 INFO                 kmssink gstkmssink.c:411:get_drm_caps:<autovideosink0-actual-sink-kms> prime import (?) / prime export (?) / async page flip (?)
    0:00:00.842344725  1464     0x25a11e00 WARN                 kmssink gstkmssink.c:892:gst_kms_sink_start:<autovideosink0-actual-sink-kms> error: Could not get allowed GstCaps of device
    0:00:00.842357555  1464     0x25a11e00 WARN                 kmssink gstkmssink.c:892:gst_kms_sink_start:<autovideosink0-actual-sink-kms> error: driver does not provide mode settings configuration
    0:00:00.842388675  1464     0x25a11e00 INFO        GST_ERROR_SYSTEM gstelement.c:2153:gst_element_message_full_with_details:<autovideosink0-actual-sink-kms> posting message: Could not get allowed GstCaps of device
    0:00:00.842453000  1464     0x25a11e00 INFO        GST_ERROR_SYSTEM gstelement.c:2180:gst_element_message_full_with_details:<autovideosink0-actual-sink-kms> posted error message: Could not get allowed GstCaps of device
    0:00:00.842498355  1464     0x25a11e00 WARN                basesink gstbasesink.c:5367:gst_base_sink_change_state:<autovideosink0-actual-sink-kms> error: Failed to start
    0:00:00.842520625  1464     0x25a11e00 INFO        GST_ERROR_SYSTEM gstelement.c:2153:gst_element_message_full_with_details:<autovideosink0-actual-sink-kms> posting message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
    0:00:00.842538765  1464     0x25a11e00 INFO        GST_ERROR_SYSTEM gstelement.c:2180:gst_element_message_full_with_details:<autovideosink0-actual-sink-kms> posted error message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
    0:00:00.842551825  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2973:gst_element_change_state:<autovideosink0-actual-sink-kms> have FAILURE change_state return
    0:00:00.842564205  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2560:gst_element_abort_state:<autovideosink0-actual-sink-kms> aborting state from NULL to READY
    0:00:00.842597245  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<autovideosink0-actual-sink-kms> completed state change to NULL
    0:00:00.867546210  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstopengl.so" loaded
    0:00:00.867584785  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:360:gst_element_factory_create: creating element "glimagesink" named "autovideosink0-actual-sink-glimage"
    0:00:00.868130565  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "glupload"
    0:00:00.868325445  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseTransform@0x25dec160> adding pad 'sink'
    0:00:00.868354475  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseTransform@0x25dec160> adding pad 'src'
    0:00:00.868377290  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "glcolorconvert"
    0:00:00.868535830  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseTransform@0x25dec4d0> adding pad 'sink'
    0:00:00.868560760  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseTransform@0x25dec4d0> adding pad 'src'
    0:00:00.868581355  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "glcolorbalance"
    0:00:00.868725005  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseTransform@0x25df0110> adding pad 'sink'
    0:00:00.868750440  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseTransform@0x25df0110> adding pad 'src'
    0:00:00.868828595  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element gluploadelement0:src to element glcolorconvertelement0:sink
    0:00:00.868843975  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad gluploadelement0:src
    0:00:00.868856350  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad glcolorconvertelement0:sink
    0:00:00.868868900  1464     0x25a11e00 INFO                GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: gluploadelement0 and glcolorconvertelement0 in same bin, no need for ghost pads
    0:00:00.868893085  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link gluploadelement0:src and glcolorconvertelement0:sink
    0:00:00.868914570  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<gluploadelement0:sink> pad has no peer
    0:00:00.875824795  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<glcolorconvertelement0:src> pad has no peer
    0:00:00.876162225  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2585:gst_pad_link_full: linked gluploadelement0:src and glcolorconvertelement0:sink, successful
    0:00:00.876174685  1464     0x25a11e00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
    0:00:00.876187285  1464     0x25a11e00 INFO               GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<gluploadelement0:src> Received event on flushing pad. Discarding
    0:00:00.876210065  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element glcolorconvertelement0:src to element glcolorbalance0:sink
    0:00:00.876222905  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad glcolorconvertelement0:src
    0:00:00.876233935  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad glcolorbalance0:sink
    0:00:00.876244810  1464     0x25a11e00 INFO                GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: glcolorconvertelement0 and glcolorbalance0 in same bin, no need for ghost pads
    0:00:00.876261440  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link glcolorconvertelement0:src and glcolorbalance0:sink
    0:00:00.876277305  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<gluploadelement0:sink> pad has no peer
    0:00:00.884086460  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<glcolorbalance0:src> pad has no peer
    0:00:00.884148335  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2585:gst_pad_link_full: linked glcolorconvertelement0:src and glcolorbalance0:sink, successful
    0:00:00.884159640  1464     0x25a11e00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
    0:00:00.884169515  1464     0x25a11e00 INFO               GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<glcolorconvertelement0:src> Received event on flushing pad. Discarding
    0:00:00.884187910  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad gluploadelement0:sink
    0:00:00.884237735  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link sink:proxypad1 and gluploadelement0:sink
    0:00:00.884252215  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2585:gst_pad_link_full: linked sink:proxypad1 and gluploadelement0:sink, successful
    0:00:00.884261495  1464     0x25a11e00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
    0:00:00.884282025  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstGLSinkBin@0x25d47020> adding pad 'sink'
    0:00:00.884332385  1464     0x25a11e00 INFO       gstcontrolbinding gstcontrolbinding.c:139:gst_control_binding_constructor:<glcolorbalance0> trying to put property 'contrast' under control
    0:00:00.884357945  1464     0x25a11e00 INFO       gstcontrolbinding gstcontrolbinding.c:139:gst_control_binding_constructor:<glcolorbalance0> trying to put property 'brightness' under control
    0:00:00.884379480  1464     0x25a11e00 INFO       gstcontrolbinding gstcontrolbinding.c:139:gst_control_binding_constructor:<glcolorbalance0> trying to put property 'hue' under control
    0:00:00.884401245  1464     0x25a11e00 INFO       gstcontrolbinding gstcontrolbinding.c:139:gst_control_binding_constructor:<glcolorbalance0> trying to put property 'saturation' under control
    0:00:00.884595380  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseSink@0x25df4550> adding pad 'sink'
    0:00:00.884654000  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element glcolorbalance0:src to element sink:sink
    0:00:00.884668040  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad glcolorbalance0:src
    0:00:00.884679010  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad sink:sink
    0:00:00.884690380  1464     0x25a11e00 INFO                GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: glcolorbalance0 and sink in same bin, no need for ghost pads
    0:00:00.884707900  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link glcolorbalance0:src and sink:sink
    0:00:00.884732105  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<(NULL):sink> pad has no peer
    0:00:00.892913035  1464     0x25a11e00 INFO                GST_PADS gstpad.c:2585:gst_pad_link_full: linked glcolorbalance0:src and sink:sink, successful
    0:00:00.892944630  1464     0x25a11e00 INFO               GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
    0:00:00.892959860  1464     0x25a11e00 INFO               GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<glcolorbalance0:src> Received event on flushing pad. Discarding
    0:00:00.893020500  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad autovideosink0-actual-sink-glimage:sink
    0:00:00.899084030  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<sink> current NULL pending VOID_PENDING, desired next READY
    0:00:00.899132665  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<autovideosink0-actual-sink-glimage:sink> pad has no peer
    0:00:00.899146470  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:115:pad_query:<sink:sink> pad peer query failed
    0:00:00.899156735  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:176:_gst_context_query:<sink> posting need context message
    0:00:00.899190435  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<autovideosink0-actual-sink-glimage:sink> pad has no peer
    0:00:00.899203905  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:115:pad_query:<sink:sink> pad peer query failed
    0:00:00.899212870  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:176:_gst_context_query:<sink> posting need context message
    0:00:00.899235085  1464     0x25a11e00 INFO               gldisplay gstgldisplay.c:284:gst_gl_display_new: creating a display, user choice:(NULL) (platform: (NULL))
    0:00:00.899786105  1464     0x25a11e00 INFO               gldisplay gstgldisplay_wayland.c:161:gst_gl_display_wayland_new: Failed to open Wayland display connection.
    0:00:00.900071625  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:240:gst_gl_element_propagate_display_context:<sink> posting have context (0x259f7de0) message with display (0x25d1a070)
    0:00:00.900121055  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<autovideosink0-actual-sink-glimage:sink> pad has no peer
    0:00:00.900136200  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:115:pad_query:<sink:sink> pad peer query failed
    0:00:00.900146760  1464     0x25a11e00 INFO             GST_CONTEXT gstglutils.c:176:_gst_context_query:<sink> posting need context message
    0:00:00.900185065  1464     0x25a11e00 INFO               glcontext gstglcontext.c:332:gst_gl_context_new: creating a context for display <gldisplayegl0>, user choice:(null)
    0:00:00.900259415  1464     0x25a11e00 INFO                glwindow gstglwindow.c:247:gst_gl_window_new: creating a window, user choice:(null)
    0:00:00.900272890  1464     0x25a11e00 WARN                glwindow gstglwindow.c:288:gst_gl_window_new: Could not create window. user specified (null), creating dummy window
    0:00:00.900449230  1464     0x25c2f680 INFO               glcontext gstglcontext.c:1233:gst_gl_context_create_thread:<glcontextegl0> Attempting to create opengl context. user chosen api(s) (any), compiled api support (gles2) display api (opengl opengl3 gles2)
    0:00:00.900575565  1464     0x25c2f680 WARN               glcontext gstglcontext.c:1240:gst_gl_context_create_thread:<glcontextegl0> Failed to create context
    0:00:00.900601240  1464     0x25a11e00 INFO               glcontext gstglcontext.c:1042:gst_gl_context_create:<glcontextegl0> gl thread created
    0:00:00.900619750  1464     0x25a11e00 WARN             glimagesink gstglimagesink.c:1010:_ensure_gl_setup:<sink> error: Failed to initialize egl: EGL_NOT_INITIALIZED
    0:00:00.900642030  1464     0x25a11e00 INFO        GST_ERROR_SYSTEM gstelement.c:2153:gst_element_message_full_with_details:<sink> posting message: Failed to initialize egl: EGL_NOT_INITIALIZED
    0:00:00.900668485  1464     0x25a11e00 INFO        GST_ERROR_SYSTEM gstelement.c:2180:gst_element_message_full_with_details:<sink> posted error message: Failed to initialize egl: EGL_NOT_INITIALIZED
    0:00:00.900682525  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2973:gst_element_change_state:<sink> have FAILURE change_state return
    0:00:00.900695175  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2560:gst_element_abort_state:<sink> aborting state from NULL to READY
    0:00:00.900710845  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2968:gst_bin_change_state_func:<autovideosink0-actual-sink-glimage> child 'sink' failed to go to state 2(READY)
    0:00:00.900745750  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<sink> completed state change to NULL
    0:00:00.900763925  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<glcolorbalance0> completed state change to NULL
    0:00:00.900781320  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<glcolorconvertelement0> completed state change to NULL
    0:00:00.900797255  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<gluploadelement0> completed state change to NULL
    0:00:00.900816535  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2973:gst_element_change_state:<autovideosink0-actual-sink-glimage> have FAILURE change_state return
    0:00:00.900860845  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<sink> current NULL pending VOID_PENDING, desired next NULL
    0:00:00.900874880  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2621:gst_bin_element_set_state:<sink> skipping transition from NULL to  NULL
    0:00:00.900888080  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2952:gst_bin_change_state_func:<autovideosink0-actual-sink-glimage> child 'sink' changed state to 1(NULL) successfully
    0:00:00.900904390  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<glcolorbalance0> current NULL pending VOID_PENDING, desired next NULL
    0:00:00.900916845  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2621:gst_bin_element_set_state:<glcolorbalance0> skipping transition from NULL to  NULL
    0:00:00.900929730  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2952:gst_bin_change_state_func:<autovideosink0-actual-sink-glimage> child 'glcolorbalance0' changed state to 1(NULL) successfully
    0:00:00.900944940  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<glcolorconvertelement0> current NULL pending VOID_PENDING, desired next NULL
    0:00:00.900957340  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2621:gst_bin_element_set_state:<glcolorconvertelement0> skipping transition from NULL to  NULL
    0:00:00.900970280  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2952:gst_bin_change_state_func:<autovideosink0-actual-sink-glimage> child 'glcolorconvertelement0' changed state to 1(NULL) successfully
    0:00:00.900985485  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2503:gst_bin_element_set_state:<gluploadelement0> current NULL pending VOID_PENDING, desired next NULL
    0:00:00.900997340  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2621:gst_bin_element_set_state:<gluploadelement0> skipping transition from NULL to  NULL
    0:00:00.901009775  1464     0x25a11e00 INFO              GST_STATES gstbin.c:2952:gst_bin_change_state_func:<autovideosink0-actual-sink-glimage> child 'gluploadelement0' changed state to 1(NULL) successfully
    0:00:00.901023015  1464     0x25a11e00 INFO              GST_STATES gstelement.c:2688:gst_element_continue_state:<autovideosink0-actual-sink-glimage> completed state change to NULL
    0:00:00.901052110  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking glcolorbalance0:src(0x25dd5300) and sink:sink(0x25dd5550)
    0:00:00.901074915  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked glcolorbalance0:src and sink:sink
    0:00:00.901093425  1464     0x25a11e00 INFO           GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<autovideosink0-actual-sink-glimage> removed child "sink"
    0:00:00.901126865  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking glcolorconvertelement0:src(0x25dd4e60) and glcolorbalance0:sink(0x25dd50b0)
    0:00:00.901145635  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked glcolorconvertelement0:src and glcolorbalance0:sink
    0:00:00.901164020  1464     0x25a11e00 INFO           GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<autovideosink0-actual-sink-glimage> removed child "glcolorbalance0"
    0:00:00.901182555  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3264:gst_element_dispose:<glcolorbalance0> 0x25df0110 dispose
    0:00:00.901195090  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<glcolorbalance0> removing pad 'sink'
    0:00:00.901215385  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<glcolorbalance0> removing pad 'src'
    0:00:00.901232455  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3309:gst_element_dispose:<glcolorbalance0> 0x25df0110 parent class dispose
    0:00:00.901267080  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3341:gst_element_finalize:<glcolorbalance0> 0x25df0110 finalize
    0:00:00.901279760  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3346:gst_element_finalize:<glcolorbalance0> 0x25df0110 finalize parent
    0:00:00.901298480  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking gluploadelement0:src(0x25dd49c0) and glcolorconvertelement0:sink(0x25dd4c10)
    0:00:00.901317525  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked gluploadelement0:src and glcolorconvertelement0:sink
    0:00:00.901336230  1464     0x25a11e00 INFO           GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<autovideosink0-actual-sink-glimage> removed child "glcolorconvertelement0"
    0:00:00.901353940  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3264:gst_element_dispose:<glcolorconvertelement0> 0x25dec4d0 dispose
    0:00:00.901365730  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<glcolorconvertelement0> removing pad 'sink'
    0:00:00.901381260  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<glcolorconvertelement0> removing pad 'src'
    0:00:00.901397985  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3309:gst_element_dispose:<glcolorconvertelement0> 0x25dec4d0 parent class dispose
    0:00:00.901410640  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3341:gst_element_finalize:<glcolorconvertelement0> 0x25dec4d0 finalize
    0:00:00.901422495  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3346:gst_element_finalize:<glcolorconvertelement0> 0x25dec4d0 finalize parent
    0:00:00.901443825  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking sink:proxypad1(0x25ddc390) and gluploadelement0:sink(0x25dd4770)
    0:00:00.901458680  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked sink:proxypad1 and gluploadelement0:sink
    0:00:00.901471560  1464     0x25a11e00 INFO           GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<autovideosink0-actual-sink-glimage> removed child "gluploadelement0"
    0:00:00.901488200  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3264:gst_element_dispose:<gluploadelement0> 0x25dec160 dispose
    0:00:00.901499770  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<gluploadelement0> removing pad 'sink'
    0:00:00.901515045  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<gluploadelement0> removing pad 'src'
    0:00:00.901539070  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3309:gst_element_dispose:<gluploadelement0> 0x25dec160 parent class dispose
    0:00:00.901557400  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3341:gst_element_finalize:<gluploadelement0> 0x25dec160 finalize
    0:00:00.901569510  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3346:gst_element_finalize:<gluploadelement0> 0x25dec160 finalize parent
    0:00:00.901582135  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3264:gst_element_dispose:<autovideosink0-actual-sink-glimage> 0x25d47020 dispose
    0:00:00.901593610  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<autovideosink0-actual-sink-glimage> removing pad 'sink'
    0:00:00.901613675  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3309:gst_element_dispose:<autovideosink0-actual-sink-glimage> 0x25d47020 parent class dispose
    0:00:00.901626550  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3341:gst_element_finalize:<autovideosink0-actual-sink-glimage> 0x25d47020 finalize
    0:00:00.901637685  1464     0x25a11e00 INFO         GST_REFCOUNTING gstelement.c:3346:gst_element_finalize:<autovideosink0-actual-sink-glimage> 0x25d47020 finalize parent
    0:00:00.907402370  1464     0x25a11e00 INFO      GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstwaylandsink.so" loaded
    0:00:00.907436510  1464     0x25a11e00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:360:gst_element_factory_create: creating element "waylandsink" named "autovideosink0-actual-sink-wayland"
    0:00:00.907662890  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:671:gst_element_add_pad:<GstBaseSink@0x25e08270> adding pad 'sink'
    0:00:00.907697785  1464     0x25a11e00 INFO        GST_ELEMENT_PADS gstelement.c:928:gst_element_get_static_pad: found pad autovideosink0-actual-sink-wayland:sink
    0:00:00.907760090  1464     0x25a11e00 INFO                GST_PADS gstpad.c:4237:gst_pad_peer_query:<autovideosink0-actual-sink-wayland:sink> pad has no peer
    Caught SIGSEGV
    #0  0x0000ffffae842834 in waitpid () from /lib/libpthread.so.0
    #1  0x0000ffffae8f2188 in g_on_error_stack_trace ()
    #2  0x0000000000403fc8 in _start ()
    Spinning.  Please run 'gdb gst-launch-1.0 1464' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
    ^C
    root@tda4vm-sk:/opt/edge_ai_apps# [  132.645927] IPv6: MLD: clamping QRV from 1 to 2!
    [  257.652170] IPv6: MLD: clamping QRV from 1 to 2!
    [  382.658335] IPv6: MLD: clamping QRV from 1 to 2!
    

  • Hi Machida-san,

    Looking at the logs, it seems the issue is not with the camera, but instead with the display.

    Could you run kmsprint. This should list out display information if a display is connected. If none are detected, could you try switching out cables/displays?

    Regards,

    Takuma

  • Hello Fujiwara-san,

    I'm sorry, when I ran gstreamer debug command, I did not connect display.
    I connected my display and ran gstreamer debug command.
    Here is result of this. And also, I ran "kmsprint" just in case. Then it seems output is recognized correctly.

    BR,BootLog--20220829_DebugLog_e2e_v2.txt 

  • Hello Fujiwara-san,

    I re-tryed "ONR-OD-8220-yolox-s-lite-mmdet-coco-640x640" demo, then, I could confirm expected result.
    Maybe, the reason is indentation. I use configuration script by changing comment out line. When I changed input source, then indentation might be changed.
    Anyway, I could run both image input and camera input case. Thank you for your support.

    BR,