Jetson Orin cannot run object_detection_birds_view.py

Hello,
I’m unable to run the “object_detection_birds_view.py” sample code on Jetson Orin Nano. It throws the following error. Any ideas on what I could be missing or doing wrong?

/usr/local/zed/samples/object detection/birds eye viewer/python$ python3 obj
ect_detection_birds_view.py 
Running object detection ... Press 'Esc' to quit
freeglut (object_detection_birds_view.py):  ERROR:  Internal error <FBConfig with necessary ca
pabilities not found> in function fgOpenWindow

Output from glxinfo | grep OpenGL

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA Tegra Orin (nvgpu)/integrated
OpenGL core profile version string: 4.6.0 NVIDIA 35.3.1
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 35.3.1
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 35.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

jetpack Info

sudo apt-cache show nvidia-jetpack
[sudo] password for neel: 
Package: nvidia-jetpack
Version: 5.1.1-b56
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 5.1.1-b56), nvidia-jetpack-dev (= 5.1.1-b56)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_5.1.1-b56_arm64.deb
Size: 29304
SHA256: 7b6c8c6cb16028dcd141144b6b0bbaa762616d0a47aafa3c3b720cb02b2c8430
SHA1: 387e4e47133c4235666176032af0f2ec86461dbb
MD5sum: 0a8692031bf35cc46f7a498e2937bda9
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

./nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Sun_Oct_23_22:16:07_PDT_2022
Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0

Are you running this remotely, with ssh -X, VNC or such a thing ?

Hello Antoine, I was running this directly on the machine itself.

There is something tricky with your system. Please run sudo apt install --reinstall nvidia-jetpack, it should do the trick.

I ran the reinstall command as you mentioned but it did not help. I also did a remove & install, no luck. I ended up commenting out all the code related to the OpenGL viewer and was able to run the scripts.

I see that the Jetpack 5.1.1 is the first version to support Jetson Orin nano. Could it be that it’s missing libraries that are required by OpenGL?

It’s probably something like that, We need to investigate. Thank you for reporting it.