none
Sysfer Exception thrown RRS feed

  • Question

  • Hello everyone,

    I am trying to run a simple start up CUDA project and I get the following output, without being able to run it:
    [code]TestProject.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Cannot find or open the PDB file.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\sysfer.dll'. Cannot find or open the PDB file.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
    Exception thrown at .. in TestProject.exe: Microsoft C++ exception: SysferException at memory location ...
    Exception thrown at .. in TestProject.exe: Microsoft C++ exception: SysferException at memory location ...
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\nvcuda.dll'. Cannot find or open the PDB file.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\nvfatbinaryLoader.dll'. Cannot find or open the PDB file.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\dwmapi.dll'
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\nvapi64.dll'. Cannot find or open the PDB file.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded.
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\ole32.dll'
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\dxgi.dll'
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\nvapi64.dll'
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\version.dll'
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\ws2_32.dll'
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\nvfatbinaryLoader.dll'
    'TestProject.exe' (Win32): Unloaded 'C:\Windows\System32\nvcuda.dll'
    The thread 0x2e20 has exited with code 1 (0x1).
    The thread 0x378c has exited with code 1 (0x1).
    The thread 0x363c has exited with code 1 (0x1).
    The program '[9348] TestProject.exe' has exited with code 1 (0x1).
    [/code]

    Has anyone experienced this issue and how can I fix it?

    Thanks
    Wednesday, December 4, 2019 12:23 PM

All replies

  • Wednesday, December 4, 2019 12:43 PM
  • I have found this solution and it does not work.

    Thank you.

    Wednesday, December 4, 2019 1:14 PM
  • The issue here is that you could be seeing this in the output and thinking that this is the cause of your problems.

    The Visual Studio debugger logs exceptions, handled or not. As an example of this:

    #include <exception>
    #include <cstdio>
    
    int wmain()
    {
    	try
    	{
    		throw std::exception("Exception");
    	}
    	catch (std::exception &)
    	{
    
    	}
    	return 0;
    }

    Gives the output:

    'meh.exe' (Win32): Loaded 'C:\Users\Darran\source\repos\meh\x64\Debug\meh.exe'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\ntdll.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\kernel32.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\KernelBase.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\vcruntime140_1d.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\vcruntime140d.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\ucrtbased.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\ucrtbased.dll'. Symbols loaded.
    'meh.exe' (Win32): Unloaded 'C:\WINDOWS\System32\ucrtbased.dll'
    Exception thrown at 0x00007FFE3641A839 in meh.exe: Microsoft C++ exception: std::exception at memory location 0x000000F0F8F4F818.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\kernel.appcore.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\msvcrt.dll'. Symbols loaded.
    'meh.exe' (Win32): Loaded 'C:\WINDOWS\System32\rpcrt4.dll'. Symbols loaded.
    The thread 0xdd8 has exited with code 0 (0x0).
    The thread 0x2f7c has exited with code 0 (0x0).
    The thread 0x13e0 has exited with code 0 (0x0).
    The program '[3308] meh.exe' has exited with code 0 (0x0).

    But as you can see from the code, the exception isn't a problem.

    What's more, the debugger will even log exceptions thrown by libraries that your application uses, included Windows libraries. If you use the UWP libraries you will see a few of these. So seeing that an exception has been thrown in the output window is not a sign of a problem.


    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Wednesday, December 4, 2019 1:49 PM
  • Hello,

    Thanks for taking time to answer my question.

    I think it is highly unlikely to have a problem in the code, given the fact that is a standard cuda new project.

    Best regards.

    Wednesday, December 4, 2019 3:36 PM
  • Ahaha, interesting fact.

    This is the output from a standard C++/WinRT new project. Yes it fails to build out of the box.

    You can never assume anything about the state of the project template until you have used it. Especially if it isn't a first party template provided by the Visual Studio team as part of Visual Studio.

    Even the standard Visual Studio project templates have quirks that you may not expect too.

    But anyway, given how things are, CUDA is basically a GPGPU runtime. It is provided as part of the Nvidia drivers. This means that you are seeing either a problem with the standard new project or the Nvidia drivers. This isn't a Windows or Visual Studio problem.

    The place to ask about this would be the Nvidia developer forums unless you get lucky and someone on here understands this.


    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Wednesday, December 4, 2019 4:56 PM
  • Hello,

    Thank you for posting here.

    This forum is about c++ development. According to your issue , I suggest you should ask it in NVIDIA Developer forum. And this thread will be moved to Off-Topic Posts.

    Best Regards,

    Suarez Zhou


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, December 9, 2019 5:23 AM