When trying to debug my application, it runs fine running either through the visual studio debugger or without a debugger. However, when I try to launch via Nsight it crashes. Via the logger of my program I’ve determined the crash is happening on a call to wglChoosePixelFormatARB.
The code for opengl initialization can be found here:
https://pastebin.com/DKJ1QnSg
This code is executing fine on multiple machines but crashes for Nsight.
I got this log from the crash:
Error,12/14/2017 19:27:32,devenv.exe,‘’ id: 1,[vsip][connection],"Exception while trying to obtaining device information. Nvda.ObjectModel.Monitor.SystemInfoException: No system information available. ‘No system information available’
“,<>c__DisplayClass8.b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore
Error,12/14/2017 19:27:32,devenv.exe,‘’ id: 1,[vsip][connection],” at Ark.AsyncResultValue1.EndInvoke() ",,<>c__DisplayClass8.<Execute>b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore Error,12/14/2017 19:27:32,devenv.exe,'' id: 1,[vsip][connection]," at Nvda.ObjectModel.Monitor.WindowsSystem.EndGetSystemInfo(IAsyncResult ar) ",,<>c__DisplayClass8.<Execute>b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore Error,12/14/2017 19:27:32,devenv.exe,'' id: 1,[vsip][connection]," at Nvda.ObjectModel.Monitor.WindowsSystem.<GetSystemInfo>b__1(IAsyncResult ar) ",,<>c__DisplayClass8.<Execute>b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore Error,12/14/2017 19:27:32,devenv.exe,'' id: 1,[vsip][connection]," at Nvda.Device.BlockingMessageDispatcher.ExecuteSynchronousCommand[TResult](Func
1 beginCommand, Func2 endCommand, Action
2 exceptionHandler, TimeSpan commandTimeout)
“,<>c__DisplayClass8.b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore
Error,12/14/2017 19:27:32,devenv.exe,‘’ id: 1,[vsip][connection],” at Nvda.ObjectModel.Monitor.WindowsSystem.GetSystemInfo(TimeSpan timeSpan, SystemInfoOptions options)
“,<>c__DisplayClass8.b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore
Error,12/14/2017 19:27:32,devenv.exe,‘’ id: 1,[vsip][connection],” at Nvda.ObjectModel.Monitor.Tracking.MonitorSessionDeviceInfo(IDeviceHostSession deviceHostSession, String domain)
“,<>c__DisplayClass8.b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore
Error,12/14/2017 19:27:32,devenv.exe,‘’ id: 1,[vsip][connection],” at Nvda.Vsip.Debugger.DebugProcessLauncher.Launch()
",<>c__DisplayClass8.b__6 => GraphicsCommandHandler.ExecuteStartGraphicsDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingStartupProject => DeviceCommandHandler.ExecuteStartDebuggingCore => DebugProcessLauncher.Launch => NLogLogger.Log => NLogLogger.LogCore
I am running windows 10 with the latest updates.
GTX 1070 driver version 388.71.
Previously on this same machine when windows 7 was installed I had no issues running the program.