Issues running VPI on Orin Nano

I have a newly installed Orin Nano (dev kit) and have issues running VPI through Python. Below is the thing I try to run and the error that shows.

Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
[GCC 9.4.0] on linux
>>> import vpi
>>> i = vpi.Image((64,64), vpi.Format.RGB8)
double free or corruption (out)
Aborted (core dumped)

How can I troubleshoot this issue?

Edit:
If I build a similar program in C and run it, it also crashes. So I think it may be some vpi lib that is broken.

Hi,

Could you share how you setup the VPI package?
We tested the command in our Orin Nano and it can work correctly.

$ python3
Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vpi
>>> i = vpi.Image((64,64), vpi.Format.RGB8)
>>> i
<vpi.Image 64x64 VPI_IMAGE_FORMAT_RGB8>

Thanks.

The Nano is installed using SDK Manager. VPI should be included in that install right? I could attempt a new reinstall and see if there is any change.
Result: I did a clean installation and I get the same error.
Edit: It works when I used the SD card image. (Stopped working after reboot.)
Edit 2: Did another reinstallation with SDK Manager to SSD. This time I included DeepStream. Now it works.
Edit 3: Restarted it and now it is the same error again.

Edit 4: Issue found. It works when I try it in a terminal on the Nano directly. It does not work when doing it over a SSH session. (I primarily work over SSH to the Nano as a remote system.)

I found the issue now. I had X forwarding enabled in SSH and because of that it crashed. Disabling X forwarding solved it.

1 Like

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