Executable under Nsight Systems profiler doesn't work

When I run executable under Nsight Systems 2019.5.2 it is doing nothing. So its console is empty, CPU is free. Executable is matrix multiplication sample from CUDA 10.2 with tiny changes, built with Visual Studio 2019, release mode. If I stop profiling after a couple of minutes, I get

Process summary
Process ID Name Arguments CPU utilization
10480 matrixMul72.exe 60,15%
9356 conhost.exe 39,85%
Module summary
Process ID Module name Address CPU time (overall) CPU time (per process)
10480 C:\Windows\System32\nvapi64.dll [unknown] 44,73% 74,36%
9356 C:\Windows\System32\win32u.dll [unknown] 28,02% 70,32%
10480 C:\Windows\System32\ntdll.dll [unknown] 14,14% 23,50%

So no CUDA kernels execution trails.
Tried with default settings and with several parameters changed with the same effect.
Windows 10.0.19041, NVidia driver DCH 462.31, GeForce 2060 RTX 6 GB

After several successful runs under Nsight Compute 2019.5.0 and rebuilding executable, gathering of statistics has broken. The executable works, Nsight Compute stops on kernels execution, but after finishing no new results appear (no new launches appear in the Launche: drop-down list).