no opengl info in ubuntu22.04

Report crashes, strange behaviour, or apparent bugs
Post Reply
wdy
Posts: 4
Joined: 14 Oct 2024, 03:12

no opengl info in ubuntu22.04

Post by wdy »

I tried to use CoppeliaSim4.9 and 4.10 in ubuntu22.04, it also crashed for black screen. The error info is "[CoppeliaSim:loadinfo] OpenGL: (none given), Renderer: (none given), Version: (none given)
". But when I tried CoppeliaSim4.1 in ubuntu22.04, it worked. Here is the info "[CoppeliaSim:loadinfo] OpenGL NVIDIA Corporation, Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2, Version: 4.6.0 NVIDIA 570.133.07
". Is there any solution for this?
coppelia
Site Admin
Posts: 10738
Joined: 14 Dec 2012, 00:25

Re: no opengl info in ubuntu22.04

Post by coppelia »

Difficult to say... I hear that for the first time, so it must be something with your system/machine I guess. Asking Deepseek I got this answer, maybe you could try some of those:
This issue typically occurs when there's a mismatch between the Qt version's OpenGL requirements and the system's OpenGL capabilities or driver configuration. Here's how to troubleshoot:

1. **Check OpenGL Driver Installation**:
Verify NVIDIA drivers are properly installed:
```bash
glxinfo | grep "OpenGL"
nvidia-smi
```

2. **Qt OpenGL Backend**:
The newer Qt version might be defaulting to software rendering. Force hardware acceleration:
```cpp
QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
// or
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
```

3. **Environment Variables**:
Set these before launching the app:
```bash
export QT_XCB_FORCE_SOFTWARE_OPENGL=0
export QT_LOGGING_RULES="qt.qpa.*=true"
```

4. **Library Paths**:
Ensure Qt can find NVIDIA's GL libraries:
```bash
export LD_LIBRARY_PATH=/usr/lib/nvidia:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
```

5. **Version-Specific Issues**:
If the working version used Qt 5.x and the failing one uses Qt 6.x:
- Qt 6 removed some legacy OpenGL fallbacks
- Check for `EGL` vs `GLX` backend differences with:
```bash
QT_DEBUG_PLUGINS=1 ./YourApp
```

6. **X11 vs Wayland**:
Explicitly select the X11 backend if on Wayland:
```bash
export QT_QPA_PLATFORM=xcb
```

7. **Driver Version Conflicts**:
The NVIDIA 570 series might have regressions. Consider:
```bash
sudo apt install nvidia-driver-525
```

If these fail, inspect the full Qt platform debug output and verify the `libnvidia-gl` packages are installed. The issue often stems from Qt's OpenGL detection failing to interface with the proprietary NVIDIA driver stack.
Post Reply