Help! Why does nsight visual studio debug leads to computer crash?

win11 latest. CPU: u9-275hx GPU: RTX-5070ti laptop
lastest visual studio version(Version 17.14.6)

nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Tue_May_27_02:24:01_Pacific_Daylight_Time_2025
Cuda compilation tools, release 12.9, V12.9.86
Build cuda_12.9.r12.9/compiler.36037853_0

nvidia-smi
Fri Jun 20 20:03:38 2025
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 576.80 Driver Version: 576.80 CUDA Version: 12.9 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5070 … WDDM | 00000000:01:00.0 On | N/A |
| N/A 48C P5 13W / 140W | 1174MiB / 12227MiB | 1% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 7348 C+G …yb3d8bbwe\WindowsTerminal.exe N/A |
| 0 N/A N/A 12856 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 13928 C+G …_cw5n1h2txyewy\SearchHost.exe N/A |
| 0 N/A N/A 14360 C+G …y\StartMenuExperienceHost.exe N/A |
| 0 N/A N/A 19708 C+G …5n1h2txyewy\TextInputHost.exe N/A |
| 0 N/A N/A 22788 C+G …crosoft\OneDrive\OneDrive.exe N/A |
| 0 N/A N/A 23048 C+G …munity\Common7\IDE\devenv.exe N/A |
| 0 N/A N/A 24312 C+G …0.3296.93\msedgewebview2.exe N/A |
| 0 N/A N/A 27344 C+G …0.3296.93\msedgewebview2.exe N/A |
| 0 N/A N/A 28708 C+G …0.3296.93\msedgewebview2.exe N/A |
| 0 N/A N/A 28756 C+G …Chrome\Application\chrome.exe N/A |
±----------------------------------------------------------------------------------------+

If i just run or debug with local windows debugger, everything works fine.

Just 2 weeks ago, i debug with CUDA Debugging(Next-Gen) also works fine.
But today, I try to debug with CUDA Debugging(Next-Gen) just as the weeks before, terrible and strange things happen!

Process:
1、Write a very simple cuda program. Set debug mode with -g -G.

#include <stdio.h>

__global__ void fillArray(int* arr, int size) {
    int idx = threadIdx.x + blockIdx.x * blockDim.x;
    if (idx < size) {
        arr[idx] = idx;
    }
}

int main() {
    const int size = 10;
    int hostArr[size];
    int* devArr;

    cudaMalloc((void**)&devArr, size * sizeof(int));

    fillArray << <1, size >> > (devArr, size);
    cudaMemcpy(hostArr, devArr, size * sizeof(int), cudaMemcpyDeviceToHost);

    for (int i = 0; i < size; i++) {
        printf("hostArr[%d] = %d\n", i, hostArr[i]);
    }

    cudaFree(devArr);
    return 0;
}

2、Build
3、Add some breakpoints


4、Extensions->Nsight->Start CUDA Debugging(Next-Gen)
5、Successfully get into break point in the first line of main function
6、I find that when debugging, i can’t put the breakpoint in global function, and it prompts me that the breakpoint does not exist.

6、Everytime stepping next to cuda function(sometimes cudamalloc, sometimes cudamemcpy), the computer get stuck with no response, sometimes the whole screen gets black, and i have to force to restart my computer.
7、Sometimes the computer will recover after a crash (I still can’t enter the breakpoint, and it prompts me that the breakpoint does not exist), and I saw the following error message.

What is the problem?
I could give any information, can anyone help me?

Hi, @1911773844

Sorry for the issue you met.

Just 2 weeks ago, i debug with CUDA Debugging(Next-Gen) also works fine.
But today, I try to debug with CUDA Debugging(Next-Gen) just as the weeks before, terrible and strange things happen!
----------------Within the 2 weeks, have you updated gpu/driver/CUDA on this machine ?
----------------Does the crash issue still repro after reboot ?
----------------Does the crash issue happen for every sample ?

----------------Within the 2 weeks, have you updated gpu/driver/CUDA on this machine ?
gpu is always 5070ti. I update griver and cuda to latest.
----------------Does the crash issue still repro after reboot ?
yes.
----------------Does the crash issue happen for every sample ?
yes.

Hi, @1911773844

Please use driver from CUDA toolkit 12.9 Update 1 instead. The version is 576.57.

I have installed latest driver(576.80-notebook-win10-win11-64bit-international-nsd-dch-whql.exe) and cuda_12.9.1_576.57_windows.exe.
The problem still exists.
I try another laptop with RTX5080 and it has the same problem.
I can now confirm it is a very important and common problem.
Please fix it.

Hi, @1911773844

Sorry I didn’t make it clear before.
We can repro the issue with 576.80 and I have submitted internal ticket for tracking.

For your workaround, I suggest you to use driver 576.57 in CUDA toolkit directly.
Or please install the previous release 576.52. We have confirmed this driver works.

Thanks for your reply.
I uninstall latest nvidia driver and cuda. Then I reinstall cuda without reinstalling latest nvidia driver(I notice installing cuda itself will automatically install driver if no driver is installed before). Now debugging works fine.
But certainly it is a problem. If the latest nvidia driver and latest cuda are both installed, they conflict with each other while debugging. Hope it can be fixed in the later version.

Hi, @1911773844

Good to know your problem can be resolved with the older driver.
We’ll work on the fix.

Thanks for reporting this to us !