Object_detection_birds_view.py fails with freeglut error

Hello,
I’m trying to run object_detection script but it’s failing with the following error. Did anybody encounter this type of issue? My machine configuration is Ubuntu 20, CUDA 11.7, ZED SDK 3.7.6, ZED2 camera, Intel Core i9-12900H vPro with NVIDIA RTX A2000 8 GB graphics.

freeglut (object_detection_birds_view.py): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow

Here is the output for nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.43.04    Driver Version: 515.43.04    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA RTX A200...  On   | 00000000:01:00.0 Off |                  N/A |
| N/A   48C    P8     3W /  N/A |      9MiB /  8192MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      3605      G   /usr/lib/xorg/Xorg                  4MiB |
|    0   N/A  N/A      8234      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

@nkamidi were you using an old ZED SDK version and you upgraded to v3.7.6?

In this case, I suggest you clean your build folder to clean the CMake cache and then you try to re-compile and launch the software to check if this fixes the issue.

Hello Walter,
I’m running the Python script. It won’t have any build folder, right?

Are other examples working or is the problem present only in the object_detection_birds_view.py script?

Hi Walter,
Copying the message content I sent in the other email.

Here is the report for samples. I tried running the python scripts in tutorials, and they all ran without any issues (object_detection.py, depth_sensing.py, body_tracking.py). Could be that the call to launch the ZED explorer is failing in the samples scripts.

  • samples

** object_detection_birds_view.py - FAILED
** body_tracking.py - FAILED
** plane_detection.py - NO ISSUES
** depth_sensing.py - NO ISSUES
** positional_tracking.py - NO ISSUES

  • tutorials

** object_detection.py - NO ISSUES
** depth_sensing.py - NO ISSUES
** body_tracking.py - NO ISSUES

The errors for the failed attempts

neel@neel-Precision-5570:/usr/local/zed/samples/object detection/birds eye viewer/python$ python3 object_detection_birds_view.py
Running object detection … Press ‘Esc’ to quit
freeglut (object_detection_birds_view.py): ERROR: Internal error in function fgOpenWindow

neel@neel-Precision-5570:/usr/local/zed/samples/body tracking/python$ python3 body_tracking.py
Running Body Tracking sample … Press ‘q’ to quit
/usr/local/zed/resources/skeleton_perf 100%[============================================================================>] 26.55M 12.9MB/s in 2.1s
Optimizing skeleton_performance_2.1 | 100.0%[=============================>] Done ! in 1min 50s
freeglut (foo): ERROR: Internal error in function fgOpenWindow