Cannot launch any EGL app under Nsight Graphics 2021.4.2.0

I’m trying to debug my application under Nsight Graphics on Linux. I haven’t been able to successfully launch it either through GUI or command line, I always get the message that “Launch process exited”.

I tried to figure out what’s wrong - I can profile a GLX-based application such as “glxgears”, but this simple app suffers from the same problem as my application. I pinpointed the issue to the “eglGetDisplay( EGL_DEFAULT_DISPLAY )” call.

When eglGetDisplay() is called under NVIDIA Nsight, the process gets terminated with exit code 255. I don’t even get the return value from that call.

What am I doing wrong?

Nsight Graphics 2021.4.2.0
Drivers: 495.29.05
libglvnd: 1.3.4

Hello,
Thank you for using Nsight Graphics and I’m sorry you ran into this issue. One question the engineering team had for you is did you configure your EGL ICD driver via glvnd? It would also help if you could provide the content of /proc/[PID]/maps when running the EGL app (without Nsight Graphics). You can forward details to dwoods@nvidia.com if you prefer.

Regards,

Hello,
Did someone solve this issue? I’m facing a very similar one using Nsight Graphics 2022.7.0 on CentOS 8. Nsight stops executing the debugee at the first egl command (eglGetProcAddress(“eglQueryDevicesEXT”) in my case).
The loaded libraries when running stand alone and when running from Nsight look very different. Especially, all nVidia specific egl libs are missing in the latter case. Any idea what could cause this?

Thanks, Jennis

Loaded libs stand alone:
/lib64/ld-linux-x86-64.so.2
/lib64/libc.so.6
/lib64/libdl.so.2
/lib64/libdrm.so.2
/lib64/libEGL.so.1
/lib64/libEGL_mesa.so.0
/lib64/libEGL_nvidia.so.0
/lib64/libexpat.so.1
/lib64/libffi.so.6
/lib64/libgbm.so.1
/lib64/libgcc_s.so.1
/lib64/libglapi.so.0
/lib64/libGLdispatch.so.0
/lib64/libGLX.so.0
/lib64/libm.so.6
/lib64/libnvidia-eglcore.so.525.89.02
/lib64/libnvidia-egl-gbm.so.1
/lib64/libnvidia-egl-wayland.so.1
/lib64/libnvidia-glsi.so.525.89.02
/lib64/libOpenGL.so.0
/lib64/libpcre2-8.so.0
/lib64/libpthread.so.0
/lib64/librt.so.1
/lib64/libselinux.so.1
/lib64/libstdc++.so.6
/lib64/libwayland-client.so.0
/lib64/libwayland-server.so.0
/lib64/libX11.so.6
/lib64/libX11-xcb.so.1
/lib64/libXau.so.6
/lib64/libxcb.so.1
/lib64/libxcb-dri2.so.0
/lib64/libxcb-dri3.so.0
/lib64/libxcb-present.so.0
/lib64/libxcb-sync.so.1
/lib64/libxcb-xfixes.so.0
/lib64/libXext.so.6
/lib64/libxshmfence.so.1

Loaded libs running from Nsight:
/home/jms/nvidia/NVIDIA-Nsight-Graphics-2022.7/target/linux-desktop-nomad-x64/libNomad.Injection.so
/home/jms/nvidia/NVIDIA-Nsight-Graphics-2022.7/target/linux-desktop-nomad-x64/libNvda.Graphics.Interception.so
/home/jms/nvidia/NVIDIA-Nsight-Graphics-2022.7/target/linux-desktop-nomad-x64/libnvperf_grfx_target.so
/lib64/ld-linux-x86-64.so.2
/lib64/libc.so.6
/lib64/libdl.so.2
/lib64/libEGL.so.1
/lib64/libgcc_s.so.1
/lib64/libGLdispatch.so.0
/lib64/libGLX.so.0
/lib64/libGLX_nvidia.so.0
/lib64/libm.so.6
/lib64/libnvidia-glcore.so.525.89.02
/lib64/libnvidia-glsi.so.525.89.02
/lib64/libnvidia-tls.so.525.89.02
/lib64/libOpenGL.so.0
/lib64/libpthread.so.0
/lib64/librt.so.1
/lib64/libstdc++.so.6
/lib64/libutil.so.1
/lib64/libX11.so.6
/lib64/libXau.so.6
/lib64/libxcb.so.1
/lib64/libXext.so.6
linux-vdso.so.1

Hello Jennis,
Thank you for using Nsight Graphics and your feedback. Sorry you ran into this issue. Can you send us a repro of your issue to dwoods@nvidia.com? This will help our engineering team in triaging your issue.
Regards,

Hello Jennis,
Please know that your issue was resolved in Nsight Graphics. Please try out our latest release and let us know if you still have issues.
Regards,

NVIDIA Nsight Graphics 2023.4.1.0 (build 33678028) (public-release)

NVIDIA GeForce RTX 3080 Ti Laptop GPU/PCIe/SSE2

Doesn’t work with EGL at all. It just

Attachable process detected: myapplication (pid: 41878)
- Status: No graphics API
- Uptime: 0.077s
Searching for attachable process 41878 on local socket...
Searching for attachable process 41878 on local socket...
...

/proc/[PID]/maps as ordered:

4087b000-40927000 rw-p 00000000 00:00 0 
40b84000-40c30000 rw-p 00000000 00:00 0 
40e4c000-40e4e000 r-xs 00000000 00:01 35900                              /memfd:/.glXXXXXX (deleted)
41c5d000-41d09000 rw-p 00000000 00:00 0 
41e06000-41eb2000 rw-p 00000000 00:00 0 
556141e5a000-556141e82000 r--p 00000000 00:1b 83686664                   myapplication
556141e82000-556141e9f000 r-xp 00028000 00:1b 83686664                   myapplication
556141e9f000-556141eaf000 r--p 00045000 00:1b 83686664                   myapplication
556141eaf000-556141eb3000 r--p 00055000 00:1b 83686664                   myapplication
556141eb3000-556141eb4000 rw-p 00059000 00:1b 83686664                   myapplication
5561429e7000-5561434aa000 rw-p 00000000 00:00 0                          [heap]
7f75d8e00000-7f75d90cc000 r--p 00000000 00:1b 12363098                   /usr/share/icons/Papirus/icon-theme.cache
7f75d9200000-7f75d94cc000 r--p 00000000 00:1b 12363098                   /usr/share/icons/Papirus/icon-theme.cache
7f75d94fe000-7f75d9998000 rw-p 00000000 00:00 0 
7f75d9998000-7f75d9a18000 rw-s 00000000 00:05 1257                       /dev/nvidiactl
7f75d9a18000-7f75d9d8a000 rw-s 00000000 00:05 1257                       /dev/nvidiactl
7f75d9d8a000-7f75da0fc000 rw-s 00000000 00:05 1257                       /dev/nvidiactl
7f75da0fc000-7f75dc021000 rw-p 00000000 00:00 0 
7f75dc021000-7f75e0000000 ---p 00000000 00:00 0 
7f75e0000000-7f75e10dc000 rw-p 00000000 00:00 0 
7f75e10dc000-7f75e4000000 ---p 00000000 00:00 0 
7f75e4000000-7f75e4021000 rw-p 00000000 00:00 0 
7f75e4021000-7f75e8000000 ---p 00000000 00:00 0 
7f75e8018000-7f75e8218000 rw-s 00000000 00:05 1257                       /dev/nvidiactl
7f75e8218000-7f75e99e9000 rw-p 00000000 00:00 0 
7f75e99e9000-7f75e9a2b000 r--p 00000000 00:1b 9947662                    /usr/lib/libGL.so.1.7.0
7f75e9a2b000-7f75e9a4a000 r-xp 00042000 00:1b 9947662                    /usr/lib/libGL.so.1.7.0
7f75e9a4a000-7f75e9a5f000 r--p 00061000 00:1b 9947662                    /usr/lib/libGL.so.1.7.0
7f75e9a5f000-7f75e9a6d000 r--p 00075000 00:1b 9947662                    /usr/lib/libGL.so.1.7.0
7f75e9a6d000-7f75e9a6e000 rw-p 00083000 00:1b 9947662                    /usr/lib/libGL.so.1.7.0
7f75e9a6e000-7f75e9c00000 rw-p 00000000 00:00 0 
7f75e9c00000-7f75e9ecc000 r--p 00000000 00:1b 12363096                   /usr/share/icons/Papirus-Dark/icon-theme.cache
7f75e9efd000-7f75e9ffd000 rw-s 00000000 00:05 1257                       /dev/nvidiactl
7f75e9ffd000-7f75e9ffe000 ---p 00000000 00:00 0 
7f75e9ffe000-7f75ea7fe000 rw-p 00000000 00:00 0 
7f75ea7fe000-7f75ea7ff000 ---p 00000000 00:00 0 
7f75ea7ff000-7f75eafff000 rw-p 00000000 00:00 0 
7f75eafff000-7f75eb000000 ---p 00000000 00:00 0 
7f75eb000000-7f75eb800000 rw-p 00000000 00:00 0 
7f75eb800000-7f75eb9a9000 r--p 00000000 00:1b 11783638                   /usr/lib/libnvidia-gpucomp.so.545.29.06
7f75eb9a9000-7f75ed886000 r-xp 001a9000 00:1b 11783638                   /usr/lib/libnvidia-gpucomp.so.545.29.06
7f75ed886000-7f75edf1e000 r--p 02086000 00:1b 11783638                   /usr/lib/libnvidia-gpucomp.so.545.29.06
7f75edf1e000-7f75ee0d5000 r--p 0271d000 00:1b 11783638                   /usr/lib/libnvidia-gpucomp.so.545.29.06
7f75ee0d5000-7f75ee14d000 rw-p 028d4000 00:1b 11783638                   /usr/lib/libnvidia-gpucomp.so.545.29.06
7f75ee14d000-7f75ee1af000 rw-p 00000000 00:00 0 
7f75ee200000-7f75ee427000 r--p 00000000 00:1b 11783624                   /usr/lib/libnvidia-eglcore.so.545.29.06
7f75ee427000-7f75eefea000 r-xp 00227000 00:1b 11783624                   /usr/lib/libnvidia-eglcore.so.545.29.06
7f75eefea000-7f75efcb0000 r--p 00dea000 00:1b 11783624                   /usr/lib/libnvidia-eglcore.so.545.29.06
7f75efcb0000-7f75efcb1000 ---p 01ab0000 00:1b 11783624                   /usr/lib/libnvidia-eglcore.so.545.29.06

I definitely can see my app in nvitop

Hi vaihoheso,

Could you please post in a new thread? This thread is old and considered as solved.

On the other hand, could you please share a tiny sample which we can used to repro your issue?

Thanks
An

On the other hand, could you please share a tiny sample which we can used to repro your issue?

You can use any GTK4 application. GTK4 uses OpenGL for all UI. For example, Nsight will not connect to

GDK_DEBUG=gl-egl gtk4-demo

But will connect to

GDK_DEBUG=gl-glx gtk4-demo

Hi vaihoheso,

Could you share your OS and CPU info to us?

Thanks
An

Manjaro 23.1.2
Kernel 6.6.8-2-MANJARO
NVIDIA GPU NVIDIA GeForce RTX 3080 Ti Laptop GPU (GA103-A)
Intel i9-12900H

Hi vaihoheso,

I am sorry to say that Manjaro is not officially supported by Nsight, but we do can repro the issue on Arch Linux.

An internal case had been created to track this. If you have any other issue, please start a new thread.

Thanks
An

No worries, I expected this answer. GLX works; it’s enough for me. Thanks for filing a bug on nvbugs.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.