Hi uday1,
What specific data are you trying to capture? For example, are you trying to trace CUDA, NVTX, the OS Runtime, Open GL? Are you interested in CPU IP/backtrace sampling? All of these data collectors are enabled by default when you use the nsys command line interface (CLI).
I suspect this might be an OpenGL issue. I suggest limiting the collection to one or two data collectors andtrying again. For example, try the following command line;
nsys profile --trace=cuda --sample=cpu ./binary
Then, add each data collector you need one at a time until the issue happens again. Please let us know what you find out.