Error Orin Nano Jetpack 5.1.2 libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast

Please help, I just installed ZED SDK and when I try to run ZED_Explorer for example I get this error, I’ve tried to fix it but I can’t.
(My setup: running on Mac with ssh on my Orin Nano that has Ubuntu 20.04, Jetpack 5.1.2, Cuda 11.4, I have brand new cables that have been tested)

ZED_Explorer
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
** [SVO] Hardware compression (NVENC) not available **
Stack trace (most recent call last):
#20 Object “ZED_Explorer”, at 0x44af87, in
#19 Object “/usr/lib/aarch64-linux-gnu/libc.so.6”, at 0xffff90265e0f, in __libc_start_main
#18 Object “ZED_Explorer”, at 0x43262f, in
#17 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff908dea5b, in QCoreApplication::exec()
#16 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff908d63b7, in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)
#15 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff909331cb, in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)
#14 Object “/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0”, at 0xffff8d62bc5b, in g_main_context_iteration
#13 Object “/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0”, at 0xffff8d62bbbb, in
#12 Object “/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0”, at 0xffff8d62b94b, in g_main_context_dispatch
#11 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff90932e37, in
#10 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff90932507, in QTimerInfoList::activateTimers()
#9 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff908d7c0b, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#8 Object “/usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5”, at 0xffff9299fad7, in QApplication::notify(QObject*, QEvent*)
#7 Object “/usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5”, at 0xffff929964ab, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#6 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff909055b7, in QObject::event(QEvent*)
#5 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff90912557, in QTimer::timeout(QTimer::QPrivateSignal)
#4 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff90904bff, in QMetaObject::activate(QObject*, int, int, void**)
#3 Object “ZED_Explorer”, at 0x44b9db, in
#2 Object “ZED_Explorer”, at 0x48de77, in
#1 Object “ZED_Explorer”, at 0x4793b7, in
#0 Object “/usr/lib/aarch64-linux-gnu/libQt5OpenGL.so.5”, at 0xffff92ff2770, in QGLWidget::qglClearColor(QColor const&) const
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault (core dumped)

ZED_DIAGNOSTIC:
$ ZED_Diagnostic -c
ZED Diagnostic Tool

  • Running ZED SDK Diagnostic : OK
    ZED SDK version: 4.0.8
    CUDA version: V11.4.315
  • Running Processor Diagnostic : OK
    Processor: ARMv8 Processor rev 1 (v8l)
    Motherboard: NVIDIA Orin Nano Developer Kit, Unknown
    libGL error: No matching fbConfigs or visuals found
    libGL error: failed to load driver: swrast
    X Error of failed request: BadValue (integer parameter out of range for operation)
    Major opcode of failed request: 149 (GLX)
    Minor opcode of failed request: 24 (X_GLXCreateNewContext)
    Value in failed request: 0x0
    Serial number of failed request: 26
    Current serial number in output stream: 27
  • Running Graphics Card Diagnostic : OK
    Graphics card: Orin
  • Running Devices Diagnostic : Warning
    No GMSL driver found. USB camera are not impacted by this.
  • Running Camera Test Diagnostic : OK
    Camera: ZED Mini
    Firmware: 1523

Diagnostic finished, a file has been generated : ZED_Diagnostic_Results.json

Hi @rafavaz
Welcome to the Stereolabs community.

When working in headless mode you must plug a dummy DisplayPort adapter to enable the GPU of the Orin.

Thank you so much for the quick reply! I’ll buy one and try it out!

1 Like

I got the dummy DisplayPort adapter like you said, and I worked on fixing some things but I’m getting some error when trying to run things like the ZED_Explorer and ZED_Depth_Viewer. I really appreciate the help and guidance btw this is for a very important project for me.


~$ ZED_Diagnostic
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 26
Current serial number in output stream: 27
libpng warning: iCCP: known incorrect sRGB profile
“Errors occurred
A detailed report can be saved to be shared with support if needed.

Camera not detected
Make sure the camera is plugged in or try another USB 3.0 port.”
No GMSL driver found.
USB camera are not impacted by this.”


This is the error I get for ZED_Explorer:
ZED_Explorer
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
** [SVO] Hardware compression (NVENC) not available **
Stack trace (most recent call last):
#20 Object “ZED_Explorer”, at 0x44af87, in
#19 Object “/usr/lib/aarch64-linux-gnu/libc.so.6”, at 0xffff88f44e0f, in __libc_start_main
#18 Object “ZED_Explorer”, at 0x43262f, in
#17 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff895bda5b, in QCoreApplication::exec()
#16 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff895b53b7, in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)
#15 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff896121cb, in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)
#14 Object “/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0”, at 0xffff8630ac5b, in g_main_context_iteration
#13 Object “/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0”, at 0xffff8630abbb, in
#12 Object “/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0”, at 0xffff8630a94b, in g_main_context_dispatch
#11 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff89611e37, in
#10 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff89611507, in QTimerInfoList::activateTimers()
#9 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff895b6c0b, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#8 Object “/usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5”, at 0xffff8b67ead7, in QApplication::notify(QObject*, QEvent*)
#7 Object “/usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5”, at 0xffff8b6754ab, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#6 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff895e45b7, in QObject::event(QEvent*)
#5 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff895f1557, in QTimer::timeout(QTimer::QPrivateSignal)
#4 Object “/usr/lib/aarch64-linux-gnu/libQt5Core.so.5”, at 0xffff895e3bff, in QMetaObject::activate(QObject*, int, int, void**)
#3 Object “ZED_Explorer”, at 0x44b9db, in
#2 Object “ZED_Explorer”, at 0x48de77, in
#1 Object “ZED_Explorer”, at 0x4793b7, in
#0 Object “/usr/lib/aarch64-linux-gnu/libQt5OpenGL.so.5”, at 0xffff8bcd1770, in QGLWidget::qglClearColor(QColor const&) const
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault (core dumped)


This is the error I get for ZED_Depth_Viewer:
~$ ZED_Depth_Viewer
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
QOpenGLWidget: Failed to create context
QOpenGLWidget: Failed to create context
QOpenGLWidget: Failed to create context
qt.qpa.backingstore: composeAndFlush: QOpenGLContext creation failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed

Here’s the Diagnostic Results json file (It didn’t let me add in the previous message)

Hi @rafavaz,

I have requested access to your Diagnostic file to review it.
As ZED_Explorer and ZED_Depth_Viewer are graphical tools and if you are using ssh, please make sure you run it with the ssh -X option for X11 forwarding through ssh.

Since your host system is Mac, please look into tutorials for X11 forwarding on Mac.

Another viable solution that may be interesting for you would be to use a remote desktop solution, NoMachine is a good solution that is available on Mac and Arm64 for the Jetson installation.

Thanks for the reply Matthew, I accepted the access for you to view the file, are you able to now?

I have access to the file, and there is nothing to report out of the ordinary for usage with a ZED Mini camera.

Would you be able to connect a screen + keyboard and mouse and try to open the tools as such?
It may also be a USB issue, please make sure the ZED Mini is connected to a USB3 port on the Orin.

Unfortunately I don’t have access to a monitor and keyboard, I bought the dummy displayport adapter but I still get that GL error. I tested to see if my gpu acceleration is working and it all seems to be working fine. When I run the Diagnostic tool it shows every part is working so zed sdk, ai models, camera and the others but then the last part (devices) fails.

Could you try running any of the tutorials from the ZED SDK (for eg: https://github.com/stereolabs/zed-sdk/tree/master/tutorials/tutorial%201%20-%20hello%20ZED/cpp) as they do not require a graphical interface?

Can you send the output logs after running the application ?

Hi, I ran the that first sample and it worked:
output log:
Hello! This is my serial number: 10876484

I also tried the depth sensing and object detection samples and they worked as well but I can only see the values in the terminal.

How can I fix the graphical interface to visualize all these?

As I’ve mentioned in my previous message, you can either look into X11 forwarding through SSH, or have a remote desktop solution.

I’ve been running these through SSH -X and also SSH -Y, and I made sure “X11 Forwarding yes” was set. So for the Remote Desktop solutions, is there anything specific that you would recommend that you’ve seen that solved this problem? Like anything specific I should do or enable during or after the process.

I would recommend NoMachine (https://www.nomachine.com/) as a remote desktop solution. Very easy to set up, you basically have to install the Mac version and the Arm version on your Orin Nano, and as long as they are both on your local network it works seamlessly.