`ERROR... <nvdsinfer_context_impl.cpp:1067> [UID = 0]: Unique ID not set`

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson
• DeepStream Version
5.0.1-1
• JetPack Version (valid for Jetson only)
# R32 (release), REVISION: 5.1, GCID: 27362550, BOARD: t210ref, EABI: aarch64, DATE: Wed May 19 18:07:59 UTC 2021
• TensorRT Version
7.1.3.0-1+cuda10.2

• Issue Type( questions, new requirements, bugs)
DeepStream does not seem to like the unique id I’ve assigned a pgie. I have two pgies, one has uid 171 and the other with uid 418. I’ve tried to look at nvdsinfer_context_impl.cpp:1067 but this seems to not be in the latest DeepStream source as of writing. Can the source used to build the package be provided with the package in the future? Bundling source for another (old?) version is confusing.

edit: it appears the file is there, but not where the log points to
edit: i’m dumb, apparently. this machine has 5.0 installed

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

  • create pipeline with two pgies (they run in sequence. one monitors image capture quality which is used to drop buffer and the second detects disease).
  • assign a two unique uids via GObject propreties on nvinfer elements (unique-id) and check they’re set.
  • get this error when trying to start the pipeline:
0:00:00.610151863 e[331m12726e[00m     0x2f992000 e[31;01mERROR  e[00m e[00m             nvinfer gstnvinfer.cpp:613:gst_nvinfer_logger:<dr>e[00m NvDsInferContext[UID 0]: Error in NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1067> [UID = 0]: Unique ID not set
0:00:00.611247358 e[331m12726e[00m     0x2f992000 e[33;01mWARN   e[00m e[00m             nvinfer gstnvinfer.cpp:809:gst_nvinfer_start:<dr>e[00m error: Failed to create NvDsInferContext instance
0:00:00.611288088 e[331m12726e[00m     0x2f992000 e[33;01mWARN   e[00m e[00m             nvinfer gstnvinfer.cpp:809:gst_nvinfer_start:<dr>e[00m error: Config file path: /path/to/blabla.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
0:00:00.611334027 e[331m12726e[00m     0x2f992000 e[36mINFO   e[00m e[00;01;31;47m    GST_ERROR_SYSTEM gstelement.c:2145:gst_element_message_full_with_details:<dr>e[00m posting message: Failed to create NvDsInferContext instance
0:00:00.611379705 e[331m12726e[00m     0x2f992000 e[36mINFO   e[00m e[00;01;31;47m    GST_ERROR_SYSTEM gstelement.c:2172:gst_element_message_full_with_details:<dr>e[00m posted error message: Failed to create NvDsInferContext instance

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

This is for a proprietary app. Issue concerns nvinfer.

I have also tried setting the gie-unique-id property via the config file. Same error.

Ok. I fixed it by not setting the gobject property unique-id and only setting it in the config file. It seems if i set it on the element itself directly it fails. This seems to be a bug but I can’t confirm since I don’t have access to the source.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

Glad to know you fixed it. thanks for the update.