wfdCreateDevice failed on drive agx orin

The hardware is Drive AGX orin DevKit
The sdk version is drive os 6.0.4
When we run nvsipl_camera with ‘-d 1’ option, the program stopped and output an error message;
We use ‘-v 4’ option, and the error output message is:

nvsipl_camera: Creating consumer for output:1 of sensor:3

nvsipl_camera: Register with compositor for output:1 of sensor:3

nvsipl_camera: Compositor: Registered output:1 from link:3 of quad:0 as id:13

nvsipl_camera: Consumer initialization for output:1 of sensor:3

nvsipl_camera: Creating consumer for output:2 of sensor:3

nvsipl_camera: Register with compositor for output:2 of sensor:3

nvsipl_camera: Compositor: Registered output:2 from link:3 of quad:0 as id:14

nvsipl_camera: Consumer initialization for output:2 of sensor:3

nvsipl_camera: Creating consumer for output:3 of sensor:3

nvsipl_camera: Register with compositor for output:3 of sensor:3

nvsipl_camera: Compositor: Registered output:3 from link:3 of quad:0 as id:15

nvsipl_camera: Consumer initialization for output:3 of sensor:3

nvsipl_camera: GetPtpDeviceNode() selected /dev/ptp2

nvsipl_camera: Using PTP clock

nvsipl_camera: Initializing compositor

nvsipl_camera: ERROR: wfdCreateDevice failed

nvsipl_camera: ERROR: Unable to initialize IDisplayManager

nvsipl_camera: ERROR: Compositor: InitDisplay failed

nvsipl_camera: ERROR: Compositor initialization failed. status: 4

nvsipl_camera: Queue timeout

nvsipl_camera: Queue timeout

nvsipl_camera: Queue timeout

nvsipl_camera: ERROR: NvMedia2DGetComposeParameters failed. nvmStatus: 1

nvsipl_camera: ERROR: Compositor: Deinit failed

nvsipl_camera: ERROR: GetSyncObj failed. status: 10

nvsipl_camera: ERROR: Compositor: UnregisterNvSciSyncObjs failed

nvsipl_camera: ~CNvWfdResourcesCommon enter

nvsipl_camera: ~CNvWfdResourcesCommon exit


log.txt (34.7 KB)

It seems that the error is caused by ‘wfdCreateDevice’ function.
So can someone help us, thankyou!!!

Hi @ying.chen7
Please provide the complete command line of the log. Thanks.

The complete command line is:
./nvsipl_camera -c F008A120RM0A_CPHY_x4 --link-enable-masks “0x1000 0x0000 0x0000 0x0000” -d 1 -v 4

Dear @ying.chen7,
Please confirm the camera module and camera port number ? Could you check with sudo and confirm if it helps?

The camera module is F008A120RM0A, and if we run the command without ‘-d’ option, the result is ok:
sudo ./nvsipl_camera -c F008A120RM0A_CPHY_x4 --link-enable-masks “0x1000 0x0000 0x0000 0x0000” -v 4

Dear @ying.chen7,
Could you share the syslog as well when you hit this issue.

This is the syslog
syslog (3.9 MB)

I saw the below message in your syslog. Please try to run the command after killing the X server gdm process.

Sep 1 21:26:47 tegra-ubuntu nvsipl_camera: Module_id 0 Severity 2 : NvKms Backend failed to acquire required permissions.

Dear @ying.chen7,
Did you check Vick’s suggestion? Could you provide any update?

Sorry for reply so late,
we try to disable gdm service by command below:

systemctl disable gdm
systemctl stop gdm

and then run the nvsipl_camera like below:

nvidia@tegra-ubuntu:/opt/nvidia/drive-linux/samples/nvmedia/nvsipl/test/camera$ sudo ./nvsipl_camera -c F008A120RM0A_CPHY_x4 --link-enable-masks “0x0001 0x0000 0x0000 0x0000” -d 1
[sudo] password for nvidia:
Could not create NVCCP shared memory nvccpmutex
Couldn’t find enough connectors: 0 < 1
nvsipl_camera: ERROR: Unable to initialize IDisplayManager

nvsipl_camera: ERROR: Compositor: InitDisplay failed

nvsipl_camera: ERROR: Compositor initialization failed. status: 10

nvsipl_camera: ERROR: CompositeHelper: Could not get at least one output buffer

nvsipl_camera: ERROR: Compositor: Deinit failed

Closing of TACP shared memory handle failed nvccpmutex

and here is the syslog
syslog (197.4 KB)

Dear @ying.chen7,
Could you check Could not create NVCCP shared memory nvccpmutex ?

The board we use is : 940-63710-0010-D00
and we choose “p3710-10-s05” when flashing
and the problem remains

Please refer to our result below:

  • Running the nvsipl_camera sample resulted in the following error:
nvidia@tegra-ubuntu:~$ sudo ./nvsipl_camera -c V1SIM728S1RU3120NB20_CPHY_x4 --link-enable-masks "0x0001 0x0 0x0 0x0" --showfps -i test_cam_0_out_0.raw -d 0 --enableRawOutput

Warning: number of displays cannot be zero, setting to one

WARNING: RAW output is being requested with Display

WARNING: Frame Drops and drops in FPS are likely to be observed

nvsipl_camera: ERROR: wfdCreateDevice failed

nvsipl_camera: ERROR: Unable to initialize IDisplayManager

nvsipl_camera: ERROR: Compositor: InitDisplay failed

nvsipl_camera: ERROR: Compositor initialization failed. status: 4

nvsipl_camera: ERROR: NvMedia2DGetComposeParameters failed. nvmStatus: 1

nvsipl_camera: ERROR: Compositor: Deinit failed

nvsipl_camera: ERROR: GetSyncObj failed. status: 10

nvsipl_camera: ERROR: Compositor: UnregisterNvSciSyncObjs failed
  • stop the GNOME display manager gdm service
systemctl disable gdm
systemctl stop gdm
  • Running the sample again shows it runs without the error:
nvidia@tegra-ubuntu:~$ sudo ./nvsipl_camera -c V1SIM728S1RU3120NB20_CPHY_x4 --link-enable-masks "0x0001 0x0 0x0 0x0" --showfps -i test_cam_0_out_0.raw -d 0 --enableRawOutput

Warning: number of displays cannot be zero, setting to one

WARNING: RAW output is being requested with Display

WARNING: Frame Drops and drops in FPS are likely to be observed

Pipeline: 0 ISP Output: 0 is using YUV 420 SEMI-PLANAR UINT8 BL REC_709ER

Pipeline: 0 ISP Output: 1 is using YUV 420 SEMI-PLANAR UINT8 BL REC_709ER

Pipeline: 0 ISP Output: 2 is using YUV 420 SEMI-PLANAR UINT8 BL REC_709ER

nvsipl_camera: Opened NITO file for module "V1SIM728S1RU3120NB20", file name: "/opt/nvidia/nvmedia/nit/V1SIM728S1RU3120NB20.nitEnter 'ld' to list display-able outputs.

Enter 'e' followed by group ID and display ID to enable display for specific camera group

Enter 'les' followed by sensor ID to enable LED

Enter 'lds' followed by sensor ID to disable LED

Enter 'dl' followed by sensor ID to disable the link

Enter 'el' followed by sensor ID to enable the link without module reset

Enter 'elr' followed by sensor ID to enable the link with module reset

Enter 'cm' to check the module availabilty

Enter 'q' to quit the application

-

End of file reached for: test_cam_0_out_0.raw

Output

Sensor0_Out0 Frame rate (fps): 31.4989

Sensor0_Out1 Frame rate (fps): 31.4989

Sensor0_Out2 Frame rate (fps): 31.4989

Sensor0_Out3 Frame rate (fps): 31.4989

Sensor0 Frame drops: 0 Frame discontinuities: 0

SUCCESS
1 Like

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

also adding the related document (To run the sample applications) for this here, so that other developers facing the same issue can refer to it.

1 Like