Question for VPI_2.x on Orin NX Jetpack 5.1 L4T 35.2.1

System Info : Ubuntu 20.04

Reason : When I try importing VPI in Python for more than two instances I get a double corruption free error

Error: “double free or corruption (out)
Aborted (core dumped)”


Please share the details on how to reproduce this issue.
There is a known issue that uses together with PyTorch in our document:

There is a similar topic that can be fixed by changing the importing order.
Please check if the WAR can work in your environment:


On the Jetson Orin -

  1. Open three terminals and start python3 via terminal/code.
  2. Next, “import vpi” works on first two terminals.
  3. As soon as “impot vpi” is entered on the third terminal, the error shows up.

Please find attached the image.


Thanks for the details.

Confirmed that we can reproduce the same error in our environment.
We are checking this with our internal team and will let you know the following.


1 Like

Thank you for the update. Is there any progress on this issue?
It worked perfectly fine on Xavier but porting to Orin is now blocking majority of the code base from being run.


Our internal team is still working on this.
Do you mean you can import 3x vpi module on Xavier?
If yes, is the device set up with r35.2.1?

This is on Orin AGX - 32 GB. I see the same error.

The is from Jetson Xavier NX - r35.2.1

Noticed one more thing -

  1. Open two terminals and “import vpi” on two terminals
  2. In the third terminal, “import cv2” followed by “import vpi” and I get the following error -


Thanks for the update.

We are checking this issue internally.
Will share more information with you later.


Thanks for your patience.

We have narrowed down the cause and found the error is related to the PVA limit.
Are you using the PVA backend in your use case?

Since there is a limit on the number of PVA-based processes, we turn off the PVA backend when the limit is reached.
Will this affect your use case?


We are not using PVA right now. It is just VPI backend. Sure, PVA can be turned of when the limit will be reached.

Thank you!


Thanks. The fix is included in our next VPI release.

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