Legacy debug,open "CUDA Info",but "CUDA Info 1" window can't display anything,is transparent

VS2019
NVIDIAR Nsight Visual Studio Edition Version 2019.4
WDDM
maxwell mx130
driver:442.23
cuda:10.2

and if i change the location of this window
image
,VS will crash

event viewer:
Application: devenv.exe

Framework version: v4.0.30319

Description: Process terminated due to an unhandled exception.

Abnormal information: System. NullReferenceException

In the System. Windows. Interop. HwndMouseInputProvider. HasCustomChrome (System. Windows. Interop. HwndSource, the RECT ByRef)

In the System. Windows. Interop. HwndMouseInputProvider. GetEffectiveClientRect (IntPtr)

In the System. Windows. Interop. HwndMouseInputProvider. PossiblyDeactivate (IntPtr, Boolean)

In the System. Windows. Interop. HwndMouseInputProvider. The Dispose ()

In the System. Windows. Interop. HwndMouseInputProvider. FilterMessage (IntPtr, MS. Internal. Interop. WindowMessage, IntPtr, IntPtr, Boolean ByRef)

In the System. Windows. Interop. HwndSource. InputFilterMessage (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

In Ms. Win32. HwndWrapper. WndProc (IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

In Ms. Win32. HwndSubclass. DispatcherCallbackOperation System. (Object)

In the System. Windows. Threading. ExceptionWrapper. InternalRealCall (System. The Delegate, System. Object, Int32)

In the System. Windows. Threading. ExceptionWrapper. TryCatchWhen (System. Object, System. The Delegate, System. Object, Int32, System.Delegate)

In the System. Windows. Threading. Dispatcher. LegacyInvokeImpl (System. Windows. Threading. DispatcherPriority, System. TimeSpan. System.Delegate, System.Object, Int32)

In Ms. Win32. HwndSubclass. SubclassWndProc (IntPtr, Int32, IntPtr, IntPtr)

I just uninstalled Cuda10.2 completely and reinstalled Cuda11.2

Now the problem is getting worse, after start debug (legacy),
shows"Nsight Connected XXX to XXX" and then immediately shows “Nsight Connected XXX from XXX”

After a series of fidgety, I found that the reason CUDA11.2 shows
“Nsight Connected XXX to XXX” and then immediately shows “Nsight Connected XXX from XXX”
is presumably that the driver version is not suitable/too new for this gpu

应用程序: devenv.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.InvalidOperationException
在 System.Windows.Interop.HwndHost.BuildWindow(System.Runtime.InteropServices.HandleRef)
在 System.Windows.Interop.HwndHost.BuildOrReparentWindow()
在 System.Windows.Interop.HwndHost.OnSourceChanged(System.Object, System.Windows.SourceChangedEventArgs)
在 System.Windows.SourceChangedEventArgs.InvokeEventHandler(System.Delegate, System.Object)
在 System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
在 System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
在 System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
在 System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
在 System.Windows.PresentationSource.UpdateSourceOfElement(System.Windows.DependencyObject, System.Windows.DependencyObject, System.Windows.DependencyObject)
在 System.Windows.PresentationSource.OnVisualAncestorChanged(System.Windows.DependencyObject, System.Windows.Media.AncestorChangedEventArgs)
在 System.Windows.UIElement.OnVisualAncestorChanged(System.Object, System.Windows.Media.AncestorChangedEventArgs)
在 System.Windows.Media.Visual.ProcessAncestorChangedNotificationRecursive(System.Windows.DependencyObject, System.Windows.Media.AncestorChangedEventArgs)
在 System.Windows.Media.Visual.ProcessAncestorChangedNotificationRecursive(System.Windows.DependencyObject, System.Windows.Media.AncestorChangedEventArgs)
在 System.Windows.Media.Visual.FireOnVisualParentChanged(System.Windows.DependencyObject)
在 System.Windows.Media.Visual.AddVisualChild(System.Windows.Media.Visual)
在 System.Windows.FrameworkElement.set_TemplateChild(System.Windows.UIElement)
在 System.Windows.Controls.ContentPresenter+UseContentTemplate.BuildVisualTree(System.Windows.FrameworkElement)
在 System.Windows.StyleHelper.ApplyTemplateContent(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, System.Windows.FrameworkElementFactory, Int32, System.Collections.Specialized.HybridDictionary, System.Windows.FrameworkTemplate) 在 System.Windows.FrameworkTemplate.ApplyTemplateContent(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary>, System.Windows.FrameworkElement)
在 System.Windows.FrameworkElement.ApplyTemplate()
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
在 System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
在 System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
在 System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
在 System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean)
在 System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
在 System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
在 System.Windows.UIElement.Measure(System.Windows.Size)
在 System.Windows.ContextLayoutManager.UpdateLayout()
在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
在 System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
在 System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
在 System.Windows.Threading.DispatcherOperation.InvokeImpl()
在 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
在 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Windows.Threading.DispatcherOperation.Invoke()
在 System.Windows.Threading.Dispatcher.ProcessQueue()
在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
在 MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

After several hours of search and troubleshooting, I finally solved the problem

1 Like