nsight-graphics cannot connect to opengl app

OS: ubuntu 16.04
GPU & driver info: attached below.
nsight-graphics: 2019.2.10(Build 26129631)(public release)

  1. download http://openglsuperbible.com/files/superbible7-media.zip and get bin/basicfbo_d
  2. run host/linux-desktop-nomad-x64/nv-nsight-gfx
  3. quick launch with inputs
    bin/basicfbo_d and bin/ as working directory
  4. click on “launch” and I am getting

Launching: /xxx/bin/basicfbo_d…
Trying to connect to process with pid: 19649…
Trying to connect to process on host: localhost…
Trying to connect to process on host: localhost…
Trying to connect to process on host: localhost…
Trying to connect to process on host: localhost…
Trying to connect to process on host: localhost…
Failed to connect (host: localhost, pid: 19649). The target may already have exited.

Connection Error
Connection Error detected communicating with target application.
Shutting down connection.

  1. on nv-nsight-gfx, I am also seeing
    modinfo: ERROR: Module nvidia not found.

am I doing anything wrong here?

$ nvidia-smi
Sat Apr 20 18:22:00 2019
±----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56 Driver Version: 418.56 CUDA Version: 10.1 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1080 Off | 00000000:84:00.0 On | N/A |
| 0% 49C P8 11W / 180W | 1106MiB / 8116MiB | 1% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 2853 G /usr/lib/xorg/Xorg 734MiB |
| 0 3790 G compiz 217MiB |
| 0 4751 G …-token=5B466EB594E310DD4942553ED1331E14 55MiB |
| 0 4975 G …quest-channel-token=2656488962543015251 94MiB |
| 0 19433 G …nux-desktop-nomad-x64/nv-nsight-gfx.bin 2MiB |
±----------------------------------------------------------------------------+

Hello!

Thank you for the very detailed report!

We will try to reproduce the issue on our side and let you know.

Thanks,
Seth

–Internal Reference–
DG-4912

After I installed

https://us.download.nvidia.com/XFree86/Linux-x86_64/418.56/NVIDIA-Linux-x86_64-418.56.run
(NOT apt-get install nvidia-418),

the problem was fixed even the official driver is shown as open source also

I observed a new problem with official nvidia driver

quick launch → attach → the process name list box is empty even I do have my opengl app running.

(to launch my opengl app has no problem. Thus, the app is fine)

Hello,

We are currently renaming the “attach” tab because of this very confusion.

Attach in Nsight Graphics means “Attach to an injected process”. If you look in the launch tab, you will notice an option that says “Automatically connect”. If set to “no”, then said processes will appear in the “attach” tab. This is helpful when injecting a game running through steam, or any other kind of launcher.

[url]https://docs.nvidia.com/nsight-graphics/UserGuide/index.html#unique_1694831544[/url]

Sorry again for the confusion.

Thanks,
Seth