• DepthAI-v2
  • Illegal instruction (core dumped) when running depthai demo on jetson xavier nx

rymd80 Sorry about the delay here.

So as an update, there is a related PR here for the build for Jetson (Nano, at least, but I think Xavier should work as well).

https://github.com/luxonis/depthai/pull/329

On the model downloader failing, is the Xavier connected to the internet? And can it access http://luxonis.com:8080/ ?

I'll ask Szabi if he has any ideas on the model downloader as well (he wrote it).

Thanks,
Brandon

rymd80
Hello.
Can you try on a clean repo?
I think you edited the model.yml. It shouldn't be edited, unless custom model is added.

Openpose is the same as human-pose-estimation-0001, openpose folder is a symlink for backward compatibility.
Just run: python3 depthai_demo.py -cnn openpose

    GergelySzabolcs

    I didn't edit, but a git status shows:

    On branch main
    Your branch is up to date with 'origin/main'.

    Changes not staged for commit:
    (use "git add/rm <file>..." to update what will be committed)
    (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   requirements-optional.txt
    modified:   requirements.txt
    deleted:    resources/nn/openpose
    deleted:    resources/nn/openpose2

    Untracked files:
    (use "git add <file>..." to include in what will be committed)

    install_dependencies.sh

    No idea how those deletes happened... I'm not normally into randomly editing or deleting files that aren't mine, but I've done stranger things...

    Then I did

    git reset --hard HEAD
    git fetch
    git checkout pi_zero_wheel
    python3 install_requirements.py
    python3 depthai_demo.py -rgbf 5

    and demo ran successfully.

    (Oh I had to comment out open3d in requirements-optional.txt)

    Thanks for the help.

      rymd80
      Good to know, thanks.
      The failure of open3d installation is not an error, since it's only optional. (Not supported on all platforms)

      a month later

      I know this is a late to the party, but I built OpenCV for my Jetson Xavier AGX, and I too got the error when I tried to use CV2. Here is the information that I found that worked really well to resolve that issue:

      CV2 Illegal Instructions Resolution:
      add export OPENBLAS_CORETYPE=ARMV8 to your .bashrc should fix it.

        CactusJackFX thank you, your solution worked for me too on a Jetson Xavier NX!

        @Brandon is the solution for the build on Jetson valid only for Gen 1 at the moment? Do you know if there is there a way to build DepthAI Gen 2 on a Jetson?

          Letty So @themarpe actually knows on this. I risk being wrong on the Jetson build for Gen2. I've only personally built Gen1 on Jetson.

          And I think @themarpe is actually adding Jetson (aarch64) series to our CI/CD next week so that these will be pre-built along with Ubuntu-AM64/Raspberry Pi OS/macOS/Windows. We had been meaning to do this earlier, but just a bit behind.

          So potentially Martin may reply with build instructions and that it is now prebuilt. :-).

          Best,
          Brandon