Keep getting error when using NvSciSyncAttrListSetAttrs() function

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Issue Description
I use C++ to implment the sample code of iep.

    err = NvSciSyncAttrListCreate(syncModule, &cpuWaiterAttrList);
    bool cpuWaiter = true;
    NvSciSyncAttrKeyValuePair keyValue[2];
    memset(keyValue, 0, sizeof(keyValue));
    keyValue[0].attrKey = NvSciSyncAttrKey_NeedCpuAccess;
    keyValue[0].value = (void*) &cpuWaiter;
    keyValue[0].len = sizeof(cpuWaiter);
    NvSciSyncAccessPerm cpuPerm = NvSciSyncAccessPerm_WaitOnly;
    keyValue[1].attrKey = NvSciSyncAttrKey_RequiredPerm;
    keyValue[1].value = (void*) &cpuPerm;
    keyValue[1].len = sizeof(cpuPerm);

    err = NvSciSyncAttrListSetAttrs(cpuWaiterAttrList, keyValue, 2);

I keep getting bad parameter error of the function NvSciSyncAttrListSetAttrs

Dear @rlu1 ,
Could you share the syslog and full error log when encountering error?


sysmlog.log (92.7 KB)

I can use the original sample c code. But when I put it in the c++ code there is error.
.cfg is the correct configuration for encoding h264 video. I already tested it with the sample code of iep.

i have checked all the parameters that passed to the NvSciSyncAttrListSetAttrs(). None of them are null.

the error is solved. There are some bytes alignment issue in my codes and the Nvidia’s SDK function cannot interpret them correctly

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