When trying to use the Next-Gen debugger, I’m getting the error message that ‘attaching Nsight Visual Studio Debugger to process failed, unexpected error: 0x80004005’. This is the same error reported by user xijiaqi2016 :
However, the problem disappears if I plug in a LAN cable (to a home router, regardless if the router has internet or not).
Is there a way to use the Next-Gen debugger without the computer being connected to a network ?
(note : user xijiaqi2016 seemed to have a similar problem - “can the next-gen debugger be used offline without internet connection?”)
When I first encountered the problem, I tried configuring the Windows firewall with a rule for ports 4500-4510 (as suggested in the link above). I also checked that Nsight.Monitor and nvdebugagent were ‘allowed apps’ for both Public and Private networks. Then I completely disabled the firewall (and all other AV/malware software).
Setup :
Windows 10 Home (Version 1903)
CUDA 10.1
Visual Studio Community 2019
Nsight Visual Studio Edition : 2019.3
NV Driver : 436.30 (DCH)
GPU0 : GTX970 (Displays attached)
GPU1 : RTX2080 (No display – CUDA code runs on this)
Method :
-
I entirely disable the Windows firewall (Domain/Public/Private), and all AV/malware software
-
I set a breakpoint in GPU code in a CUDA sample (simpleCudaGraphs)
-
I ‘Start CUDA Debugging (Next-Gen)’
-
I get the above error message. GPU debugging fails.
-
I restart Visual Studio (because Next-Gen option greyed out)
-
I plug in a LAN cable (home router – internet connected). This network can be ‘Public’ or ‘Private’ in Windows.
-
I start debugging. No error message. The breakpoint works fine.
-
I disconnect internet from the home router
-
I start debugging again. No error message. The breakpoint works fine.
-
I unplug the LAN cable from the computer.
-
I start debugging. The error message returns. Debugging fails.