OpenGL program works in GL 3.x but not 4.x - visual-studio-2010

To preface this question, I am new to openGL and Visual Studio, so I may be missing something rather obvious. I am following an openGL tutorial that's supposed to set up a basic window that displays information about the version of openGL you are using.
Tutorial |
Setup
For reference, I am running VS2010 on 64-bit Windows 7 on an NVidia GTX670m. When I specify that the boilerplate program run in openGL v3.x. It runs just fine. When I specify that it run in v4.x. It crashes with the following output (question to continue after):
'Engine.exe': Loaded 'D:\Engine\Engine\Release\Engine.exe', Symbols loaded.
'Engine.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\freeglut.dll', Binary was not built with debug information.
'Engine.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Symbols loaded.
'Engine.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\msvcr100.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\nvinit.dll', Cannot find or open the PDB file
'Engine.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Program Files (x86)\Common Files\Spigot\Search Settings\wth159.dll', Cannot find or open the PDB file
'Engine.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Symbols loaded (source information stripped).
'Engine.exe': Loaded 'C:\Windows\SysWOW64\ig7icd32.dll', Cannot find or open the PDB file
'Engine.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Symbols loaded (source information stripped).
'Engine.exe': Unloaded 'C:\Windows\SysWOW64\version.dll'
The program '[7332] Engine.exe: Native' has exited with code 1 (0x1).
In googling this problem, I saw some people recommend pulling symbols from the MS server in the debug menu and turning off the option to treat warnings as errors. I tried both but the program still crashed. Even if it didn't, I feel like I should still investigate the cause.
Assumption: NVidia lists the GTX 670 as supporting openGL 4.x. It does not explicitly say the 670m is supported, but I am assuming that if the regular 670 is - that mobile version is.
Question: If the program works fine with openGL v3.x and my hardware should support openGL v4.x, what is causing my program to crash?

Your program didn't crash. Conditions in some of the logic may not have been met, causing a different branch to run, but it did run to completion.
None of the output you posted has any relation to your "problem" except the very last line, which suggests that the code entered a branch ending in ExitProcess(1) or return EXIT_FAILURE.

Thanks to everyone for their help. I ended up running this on another machine and did not run into a problem. Either I something is wrong with my laptop's specs or with freeglut

Related

Visual Studio 2019 'DLL Initialization Failed' - I can't run the app

I was using VS2019 very well until yesterday.
Today, when I run my c++ program with F5 or Ctrl-F5, I received error messagebox.
And I have next debug message.
'cpp.exe' (Win32): Loaded 'C:\Users\user\source\repos\learn\x64\Debug\cpp.exe'. Symbols loaded.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'cpp.exe' (Win32): Unloaded 'C:\Windows\System32\KernelBase.dll'
'cpp.exe' (Win32): Unloaded 'C:\Windows\System32\kernel32.dll'
The thread 0x2a54 has exited with code 3221225794 (0xc0000142).
The program '[13484] cpp.exe' has exited with code 3221225794 (0xc0000142) 'DLL Initialization Failed'.
Sometimes, it works with next debug messages.
'cpp.exe' (Win32): Loaded
'C:\Users\user\source\repos\learn\x64\Debug\cpp.exe'. Symbols loaded.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'.
The thread 0x2e88 has exited with code 0 (0x0).
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'cpp.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
The thread 0x477c has exited with code 0 (0x0).
The thread 0x335c has exited with code 0 (0x0).
The program '[17728] cpp.exe' has exited with code 0 (0x0).
I think there's something wrong with loading vcruntime*.dll
but I don't know what to do.
The wired thing is it works sometimes.
Any advise will be highly appreciated.
Is your app (cpp.exe) built as 32 or 64-bit? Are you using LoadLibrary in your app? Are you linking to a specific library?
You may have a problem with a 64-bit program trying to load a 32-bit library or vice versa.
It would be much easier to resolve your issue if you could send a code that replicates this problem.
I'm having the same problem as you and haven't found the cause yet. My solution is that if you can find the process named VsDebugConsole.exe in Task Manager, close it and debug again. If not found then Close visual studio completely and reopen it.

App-crash on HoloLens(1st. gen)-Emulator when enabling 'Spatial Awareness System' in MRTK 2.3

i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, the app starts within the emulator with the unity start-screen. Then the scene is visible but after 1-2s the scene disappears and exceptions are thrown.
Visual Studio Log:
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel32legacy.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vccorlib140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vcruntime140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\ucrtbased.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\msvcp140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Forwarders\kernel32.dll'.
The thread 0x1578 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\procthreadexthost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MinUser.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32min.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\advapi32legacy.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\UnityPlayer.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\D3D12.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mfplat.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mfreadwrite.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vccorlib140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Forwarders\version.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vcruntime140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\msvcp140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\RTWorkQ.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ExecModelClient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Storage.ApplicationData.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'.
CreateDirectory 'C:/Data' failed: Operation has failed with error 0xb7: Cannot create a file when that file already exists.
(current dir: C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data)
Logging to C:/Data/Users/Visitor0/AppData/Local/Packages/Template3D_pzq3xp76mxafg/TempState/UnityPlayer.log
[0.322811 / 0.399454] - Initializing Unity runtime
Loading native plugins
Loading AudioPluginMsHRTF.dll
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\AudioPluginMsHRTF.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\HrtfApo.dll'.
Module information:
Built with Compiler Ver '191627012'
Built from '2019.2/staging' branch
Version is '2019.2.21f1 (9d528d026557)'
Debug build
Application type 'D3D'
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Enumeration.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\deviceassociation.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: Cn::XH at memory location 0x013CE754.
onecoreuap\windows\moderncore\inputv2\inputhost\components\cursor\client\cursorclient.cpp(43)\InputHost.dll!6E59AB33: (caller: 6E59ACAC) ReturnHr(1) tid(1678) 87B20809 onecoreuap\windows\moderncore\inputv2\inputhost\components\cursor\client\cursorclient.cpp(75)\InputHost.dll!6E59ACC3: (caller: 6E56959D) ReturnHr(2) tid(1678) 87B20809 'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'.
[0.000716 / 0.617966] - AppCallbacks::SetCoreWindowEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Perception.Stub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Mirage.dll'.
wil(439)\Windows.Mirage.dll!6EA6C73F: (caller: 6EA6C564) ReturnHr(1) tid(d64) 80070005 Access is denied.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d10warp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
'HoloLensTest.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
[0.080414 / 0.698570] - AppCallbacks::InitializeD3DWindow
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'.
[0.740232 / 0.740232] - OnActivated event.
[0.003292 / 0.743524] - OnCoreWindowSizeChanged event (0.00, 0.00, 853.33, 480.00), m_Initialized=False.
[0.033297 / 0.776821] - OnVisibilityChanged event - Visible.
[0.004851 / 0.781672] - OnWindowActivated event - CodeActivated.
OS 'Windows 10 (10.0.17763)'
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\GameAssembly.dll'. Symbols loaded.
[2.106498 / 2.888170] - OnCoreWindowSizeChanged event (0.00, 0.00, 853.33, 480.00), m_Initialized=False.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'.
PlayerConnection initialized from C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data (debug = 0)
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.HostName.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'.
PlayerConnection initialized network socket : 0.0.0.0 55287
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'.
Multi-casting "[IP] 172.17.191.38 [Port] 55287 [Flags] 2 [Guid] 1043895467 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerX86(minwinpc) [Debug] 0 [PackageName] Template3D_pzq3xp76mxafg" to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55287]
PlayerConnection already initialized - listening to [0.0.0.0:55287]
[3.073006 / 3.514748] - Initialize
[XR] Discovering subsystems at path C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'.
Successfully created d3d11 device with debug flag.
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: Microsoft Basic Render Driver (ID=0x8c)
Vendor: (null)
VRAM: 1023 MB
Initialize engine version: 2019.2.21f1 (9d528d026557)
[AudioManager] InitNormal(tryDeviceDefaults = false, preferredOutputType = FMOD_OUTPUTTYPE_AUTODETECT) attempt with hardAudioDisable: false
[AudioManager] Setting output to FMOD_OUTPUTTYPE_AUTODETECT
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\DevDispItemProvider.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\threadpoolwinrt.dll'.
[AudioManager] InitNormal succeeded with output "FMOD_OUTPUTTYPE_WASAPI". Driver name is "Speakers (Null Audio Driver)". Speaker mode is "FMOD_SPEAKERMODE_STEREO"
The thread 0x12e0 has exited with code 0 (0x0).
The thread 0x12bc has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Gaming.Input.dll'.
onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(1) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(2) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(3) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(4) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(5) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(6) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(7) tid(b90) 8685C003 [0.001229 / 5.339379] - AppCallbacks::SetupInputEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\profext.dll'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(1) tid(1678) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x013CDB40.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\simpleorientation.cpp(127)\Windows.Devices.Sensors.dll!506F1AC7: (caller: 506EB61C) Exception(2) tid(1678) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x013CDD88.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(1) tid(1678) 80070490 Element not found.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\lib\simpleorientationsensor.cpp(160)\Windows.Devices.Sensors.dll!5074B90D: (caller: 50749E09) ReturnHr(2) tid(1678) 80070490 Element not found.
[0.061399 / 5.401353] - AppCallbacks::SetupOrientationSensorEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.applicationmodel.datatransfer.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\coml2.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ie_shims.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ClipboardServer.dll'.
[0.152667 / 5.458863] - AppCallbacks::Load
[2.571148 / 5.459318] - Starting first scene loading
The following GlobalManagers were stripped from the build (Either because they're not used or not supported on this platform):
ClusterInputManager
If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.
(Filename: C:\buildslave\unity\build\Modules/VR/VRDevice.cpp Line: 323)
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(542)\Windows.Mirage.dll!6EA719A2: (caller: 6EA7177F) ReturnHr(2) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
CallContext:[\OpenHolographicDevice]
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(428)\Windows.Mirage.dll!6EA717C5: (caller: 6EA75CDB) Exception(1) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
CallContext:[\OpenHolographicDevice]
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCBF8.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\analog\input\holographicdriverclientlib\lib\spatialgraphdriverclient.cpp(2174)\Windows.Mirage.dll!6EA7370F: (caller: 6EA73573) ReturnHr(3) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(542)\Windows.Mirage.dll!6EA719A2: (caller: 6EA7177F) ReturnHr(4) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
CallContext:[\OpenHolographicDevice]
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(428)\Windows.Mirage.dll!6EA717C5: (caller: 6EA75CDB) Exception(2) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
CallContext:[\OpenHolographicDevice]
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x08B3DE98.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\analog\input\holographicdriverclientlib\lib\spatialgraphdriverclient.cpp(2174)\Windows.Mirage.dll!6EA7370F: (caller: 6EA73573) ReturnHr(5) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
[0.023743 / 5.483061] - OnCoreWindowSizeChanged event (0.00, 0.00, 845.33, 480.00), m_Initialized=True.
Created eye textures with a "texture array" layout. The "single-pass instancing" stereo mode will be used.
[0.080543 / 5.563604] - Finishing first scene loading
[0.000505 / 5.564109] - First level loaded
[0.000411 / 5.564521] - PerformUpdateAndRender started
Windows Mixed Reality spatial locatability state changed to Active.
(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 324)
End showing splash screen.
UnloadTime: 2.198500 ms
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreCommonProxyStub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Profile.SystemId.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Clipc.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CryptoWinRT.dll'.
Failed to calculate boundary bounds.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:CalculateBoundaryBounds()
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.Boundary.MixedRealityBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__60_0(IMixedRealityService)
System.Action`1:Invoke(T)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeInstance()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\WinMetadata\Windows.Graphics.winmd'. Module was built without symbols.
The thread 0x310 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Speech.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp110_win.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Common\sapi_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msxml6.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ole32_wp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\FlightSettings.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcd.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Common\SpeechServiceWinRTApi.ProxyStub.dll'.
onecoreuap\enduser\nui\onecore\sapi\sapi\sr\srcloudpolicy.cpp(255)\sapi_onecore.dll!5E2B61EA: (caller: 5E2B6621) ReturnHr(1) tid(b98) 80070005 Access is denied.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Engines\SR\spsrx_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\wininet.dll'.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: 0x40080202: WinRT transform error (parameters: 0x8000000B, 0x80070490, 0x00000014, 0x0F5FE224).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\tokenbinding.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rasapi32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rasman.dll'.
[5.896206 / 11.460727] - OnWindowActivated event - Deactivated.
The thread 0x173c has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptnet.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\webio.dll'.
The thread 0x614 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cabinet.dll'.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
The thread 0x9d0 has exited with code 0 (0x0).
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(3) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC900.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(4) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB48.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(3) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(5) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC8D0.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(6) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB18.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(4) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(7) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC860.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(8) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCAA8.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(5) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(9) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC940.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(10) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB88.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(6) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x01FCDDBC.
The thread 0x778 has exited with code 0 (0x0).
Failed to retrieve bytes for vertex positions from surface mesh!
(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/SpatialMapping/SpatialSurface.cpp Line: 127)
HoloLensTest.exe has triggered a breakpoint.
After trying out with different scenes this only happens if i choose a profile in the MixedRealityToolki-object where 'Enable Spatial Awareness System' is enabled.
I already tried cloning and modifing the DefaultHoloLens1ConfigurationProfile by enabling 'Enable Spatial Awareness System' and adding the 'SpatialObjectMeshObserver' to the Spatial Observer list.
I double-checked my project-settings and the Unity-Package-Manager for the right settings.
Does someone has a clue about what the cause of this problem might be?
So i ironically found a solution for this just after posting the question:
I stumbled about this https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/3554 so i installed an older version of the HoloLens(1st. gen) emulator and everything works fine.
Older versions: https://learn.microsoft.com/en-us/windows/mixed-reality/hololens-emulator-archive
version that worked for me: HoloLens Emulator build 10.0.17134.80

Break at Win32-API to inspect process's behaviors

I am debugging 'smartgit for windows'.
I want to know how it invokes 'git' (command it pass to git). I start VS and attach the process of smartgit.
I suspect it communicates with git by windows pipe, and other APIs like ReadFile and WriteFile and so on, so set breakpoints at those functions.
After some Options be set, I tick off 'Just My Code' and delete all exclude modules In symbol settings then I download symbols. and I can ensure that 'Kernel32.pdb' was loaded.
'smartgit.exe' (Win32): Loaded 'Q:\Program Files (x86)\SmartGit\bin\smartgit.exe'. Module was built without symbols.
'smartgit.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'smartgit.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'smartgit.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'smartgit.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
_ReadFile#20:
765EF0C0 8B FF mov edi,edi
765EF0C2 55 push ebp
765EF0C3 8B EC mov ebp,esp
765EF0C5 6A FE push 0FFFFFFFEh
765EF0C7 68 C0 52 68 76 push 766852C0h
but still I got the disasm code view when bps were triggered. I am quiet sure that I have ticked 'Show Source Code' option.
WHY? and how to view C code of ReadFile, I want to know what it(smartgit) reads and writes. So I inspect through lpBuffer.
pdb files not containing source code. it can containing information how map RVA address to source file/line. but this information is useful only if you have this source files. because you have no source files for windows system dlls (ntdll, kernel32, kernelbase..) you and can not view it c/c++ code in debugger. and usual information about source files/lines is stripped from system pdbs - because source files anyway not exist for download. but with pdb files you can view internal functions and symbols names (not only exported symbols) - already great advantage which very help in debugging.
in case ReadFile - for what you need source code here ? when you can view say lpBuffer address in [esp + 8] at first instruction (765EF0C0 in your dump) and then in [ebp+0xc] ?

An unhandled exception of type 'System.AccessViolationException' occurred - MFC

this is my stack trace .. i get this bug when i debug the code.How to solve this 'System.AccessViolationException' issue ? i m using Visual studio 2010 and visual c++ MFC code.
'UROC GUI.exe': Loaded 'C:\Windows\SysWOW64\msvcr110_clr0400.dll', Symbols loaded (source information stripped).
'UROC GUI.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\ce5f61c5754789df97be8dc991c47d07\mscorlib.ni.dll', No native symbols in symbol file.
'UROC GUI.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'UROC GUI.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\ZC440Z0rr1\Desktop\UROC 11 alpha 6\UROC Software\Release\UROC GUI.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'UROC GUI.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll', Symbols loaded (source information stripped).
First-chance exception at 0x522fa208 (mfc100u.dll) in UROC GUI.exe: 0xC0000005: Access violation reading location 0x0000006c.
'UROC GUI.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Symbols loaded (source information stripped).
An unhandled exception of type 'System.AccessViolationException' occurred in UROC GUI.exe
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

cudafy.net with NSight, debugger not working

As the topic states, I cant get the debugger working. Below is the sequence of steps ive done.
Note: I have Cuda 5.0 installed and NSight visual studio edition 3.0 installed. Ive heard that it is possible to debug now with a single GPU. I'm assuming 5.0 is OK and I don't need the 5.5 release candidate?
1) Changed code to include the following as per the instructions on the site:
CudafyModes.Target = eGPUType.Cuda;
CudafyModes.DeviceId = 0;
CudafyTranslator.Language = eLanguage.Cuda;
CudafyModule km = CudafyTranslator.Cudafy(eArchitecture.sm_20);
//Included this line.
CudafyTranslator.GenerateDebug = true;
_gpu = CudafyHost.GetDevice(eGPUType.Cuda);
_gpu.LoadModule(km);
2) Set a break point just after this.
3) Stopped debugging once break point was hit.
4) Solution Explorer, selected "Show all files" and found the "CUDAFYSOURCETEMP.cu" file.
5) Right clicked and selected "Add to project".
6) Open NSIGHT HUD Launcher 3.0.
7) Set setting as follows:
8) Clicked ok.
9) Double clicked CUDAFYSOURCETEMP.cu and set a break point in the code.
10) Went to the NSight Monitor and click "NSight Monitor Ooption" -> CUDA and the set the following:
11) Went back to VS2010 and selected NSight-> Start Cuda Debugging.
once that's done, I hovered the cursor over variables, once the break point has been hit, but nothing shows up. Only ones which show something are blockDim, blockIdx and threadIdx.
I've also opened the CUDA WarpWatch1 window, typed in a variable yet that's giving the following error "Could not resolve name "num2".
Am i missing a step or something?
EDIT Here is the output from the Output window during compilation.
The thread 'vshost.LoadReference' (0x1f78) has exited with code 0
(0x0). 'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed
(v4.0.30319)): Loaded 'C:\Users\FrazMann\Desktop\Market Adj Entry CUDA
- MK2\FrazerMann.Profiler.UserInterface\bin\x64\Debug\FrazerMann.Profiler.UserInterface.exe',
Symbols loaded. 'FrazerMann.Profiler.UserInterface.vshost.exe'
(Managed (v4.0.30319)): Loaded 'C:\Users\FrazMann\Desktop\Market Adj
Entry CUDA -
MK2\FrazerMann.Profiler.UserInterface\bin\x64\Debug\Cudafy.NET.dll'
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded 'Anonymously Hosted DynamicMethods Assembly'
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.SqlXml\v4.0_4.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Composition\v4.0_4.0.0.0__b77a5c561934e089\System.ComponentModel.Composition.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Framework\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll'
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.Protocols\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll', Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
FrazerMann.Profiler.UserInterface.TaskManager x threadIdx x blockIdx x
blockDim Length Length x threadIdx x blockIdx x blockDim Length x
threadIdx x blockIdx x blockDim GetLength x threadIdx x blockIdx x
blockDim QuickSortOfValues1 x threadIdx x blockIdx x blockDim
QuickSortOfValues1 QuickSortOfValues1
FrazerMann.Profiler.UserInterface.TaskManager/o__SiteContainer0
Compiler version: v5.0
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -m64 -arch=sm_20 "C:\Users\FrazMann\Desktop\Market Adj Entry CUDA - MK2\FrazerMann.Profiler.UserInterface\bin\x64\Debug\CUDAFYSOURCETEMP.cu"
-o "C:\Users\FrazMann\Desktop\Market Adj Entry CUDA - MK2\FrazerMann.Profiler.UserInterface\bin\x64\Debug\CUDAFYSOURCETEMP.ptx"
--ptx CUDAFYSOURCETEMP.cu tmpxft_000010d0_00000000-5_CUDAFYSOURCETEMP.cudafe1.gpu
tmpxft_000010d0_00000000-10_CUDAFYSOURCETEMP.cudafe2.gpu
'FrazerMann.Profiler.UserInterface.vshost.exe' (Managed (v4.0.30319)):
Loaded
'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll',
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled.
Unless you specify the -G switch to the nvcc compiler driver, there will be no symbols, and the debugger can't do what you want (identify or show specific variable values) without symbols.
It seems like others have asked how to add the -G switch to the nvcc compilation phase within cudafy, and one approach seems to be discussed here.
The mistake you're making is to put CudafyTranslator.GenerateDebug = true; after the CudafyTranslator.Cudafy call.
If you do this, the translator has already generated the GPU binaries without the symbols, then you tell it symbols are needed.
To fix this, simply put CudafyTranslator.GenerateDebug = true; before the CudafyTranslator.Cudafy call.

Resources