Hi,
I´m trying to implement DLSS RR in a custom engine with NGX available at v310.2.1
I have a crash “C++ exception: std::system_error at memory location 0x000000D0084EF9C0.” when trying to init the lib on my desktop 9800x3d with a 4080 on windows 11 (fresh reinstall of latest drivers)
(However on a laptop with a intel + 4050 windows 11, this is working fine. I can´t figure why)
I was only able to view the disassembly to debug, that´s not easy.
My initialization code look like this
static const wchar_t* dll_paths[] =
{
L".",
};
NVSDK_NGX_FeatureCommonInfo feature_common_info{};
feature_common_info.LoggingInfo.LoggingCallback = [](const char* msg, NVSDK_NGX_Logging_Level level, NVSDK_NGX_Feature source) {
IOs::Log("NGX: {}", msg);
};
feature_common_info.LoggingInfo.MinimumLoggingLevel = NVSDK_NGX_LOGGING_LEVEL_ON;
feature_common_info.LoggingInfo.DisableOtherLoggingSinks = true;
feature_common_info.PathListInfo.Path = dll_paths;
feature_common_info.PathListInfo.Length = NVSDK_NGX_ARRAY_LEN(dll_paths);
static constexpr char const* project_guid = "b0f87b54-1daf-4964-90ae-c4035a19df34";
NVSDK_NGX_Result result = NVSDK_NGX_D3D12_Init_with_ProjectID(
project_guid,
NVSDK_NGX_ENGINE_TYPE_CUSTOM,
"1.0",
L".",
GPU::instance->device, &feature_common_info);
if (NVSDK_NGX_FAILED(result)) return;
the ngx logs looks like this
NGX: [2025-05-11 23:38:56] [NGXSafeInitializeLog:141] App logging hooks successfully initialized
NGX: [2025-05-11 23:38:56] [NGXLoadLibrary:287] error: failed to load NGXCore: 126 (G:\Work\Dev\SeeD\x64\Debug\_nvngx.dll)
NGX: [2025-05-11 23:38:56] [NGXLoadLibrary:287] error: failed to load NGXCore: 126 (G:\Work\Dev\SeeD\x64\Debug\nvngx.dll)
NGX: [2025-05-11 23:38:56] [NGXGetPathUsingQAI:139] Path to driverStore found using QAI: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_fcb8b2221bca6b43
NGX: [2025-05-11 23:38:56] [NGXLoadCoreLibrary:240] Loading C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_fcb8b2221bca6b43\_nvngx.dll succeeded
NGX: [2025-05-11 23:38:56] [NGXSafeInitializeLog:133] App logging hooks successfully initialized
NGX: [2025-05-11 23:38:56] [NGXGetPathUsingQAI:512] Path to driverStore found using QAI: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_fcb8b2221bca6b43
NGX: [2025-05-11 23:38:56] [NGXGetPath:929] using path for models: C:\ProgramData/NVIDIA/NGX/models/
NGX: [2025-05-11 23:38:56] [NGXGetPath:929] using path for models: C:\ProgramData/NVIDIA/NGX/models/
NGX: [2025-05-11 23:38:56] [ModifyExistingFolderDACL:211] updated access control list for NGX cache (NGX cache should now be usable by all authenticated users)
NGX: [2025-05-11 23:38:56] [NGXCreateModelsFolder:1030] model folder created: C:\ProgramData/NVIDIA/NGX/models/
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1102] [dlss]
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E658702=0.0.0
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E658701=0.0.0
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9FEB50=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9FF4BC=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9FD524=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9DF510=1.3.106
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9CB0B8=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9E26B0=2.1.28
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D48D0=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E99B5EC=1.2.109
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9DFA64=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9FD6C0=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9CF688=2.2.15
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D6F08=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9BF564=2.1.201
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9DB4F4=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D2F5C=1.2.110
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D7388=1.0.108
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9F5618=2.1.29
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9DAE68=1.2.109
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D8C54=1.2.109
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D3EF0=2.1.28
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9FACDC=2.1.201
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_F7361DC=2.1.28
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9C3560=2.1.201
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9B0430=2.1.28
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E658700=310.2.1
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1102] [dlisp]
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9CF688=2.1.15
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E99B5EC=1.2.102
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E658703=310.0.0
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D8C54=1.2.106
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9D2F5C=1.2.106
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9DF510=1.3.101
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_B9DAE68=1.2.106
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1102] [dlssd]
NGX: [2025-05-11 23:38:56] [NGXLoadConfig:1108] app_E658700=310.2.1
NGX: [2025-05-11 23:38:56] [`anonymous-namespace'::LoadMappingFileData:268] listItem.engineVersion .* listItem.genericCMSId 86aa7b4
NGX: [2025-05-11 23:38:56] [`anonymous-namespace'::LoadMappingFileData:282] project id 3F9D696D4363312194B0ECB2671E899F cms id B9FBD50
NGX: [2025-05-11 23:38:56] [`anonymous-namespace'::LoadMappingFileData:268] listItem.engineVersion .* listItem.genericCMSId 8618954
NGX: [2025-05-11 23:38:56] [`anonymous-namespace'::LoadMappingFileData:268] listItem.engineVersion .* listItem.genericCMSId b9b05cc
NGX: [2025-05-11 23:38:56] [`anonymous-namespace'::LoadMappingFileData:268] listItem.engineVersion .* listItem.genericCMSId 876232c
NGX: [2025-05-11 23:38:56] [MapProjectId:1863] Found cms id 876232c for engine: custom engineVersion 1.0 projectID b0f87b54-1daf-4964-90ae-c4035a19df34
NGX: [2025-05-11 23:38:56] [NGXDRSInit:347] NvAPI_DRS_FindApplicationByName -166
NGX: [2025-05-11 23:38:56] [NGXInitContext:239] called from module SeeD.exe at G:\Work\Dev\SeeD\x64\Debug
NGX: [2025-05-11 23:38:56] [NGXReportStatusFeedback:1026] Override shared memory was opened successfully
NGX: [2025-05-11 23:38:56] [NGXReportStatusFeedback:1038] Override shared memory was mapped successfully
NGX: [2025-05-11 23:38:56] [NGXReportStatusFeedback:1067] Override feedback found available slot 0
NGX: [2025-05-11 23:38:56] [NGXSecureLoadFeature:1274] Feature dlss failed to load (cmsid 141959980) from cache
NGX: [2025-05-11 23:38:56] [NGXSecureLoadFeature:1274] Feature dlss failed to load (cmsid 241534723) from cache
NGX: [2025-05-11 23:38:56] [NGXSecureLoadFeature:1311] Found dlss driver fallback snippet at C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_fcb8b2221bca6b43
NGX: [2025-05-11 23:38:56] [NGXSecureLoadFeature:1390] app 876232C feature dlss snippet: G:\Work\Dev\SeeD\x64\Debug/nvngx_dlss.dll version: 310.2.1
NGX: [2025-05-11 23:38:57] [NGXSecureLoadFeature:1274] Feature dlssd failed to load (cmsid 141959980) from cache
NGX: [2025-05-11 23:38:57] [NGXSecureLoadFeature:1274] Feature dlssd failed to load (cmsid 241534723) from cache
NGX: [2025-05-11 23:38:57] [NGXSecureLoadFeature:1390] app 876232C feature dlssd snippet: G:\Work\Dev\SeeD\x64\Debug/nvngx_dlssd.dll version: 310.2.1
At this point I´m open to any suggestion.
update : I was able to test the same code on a AMD threadripper 5945 + 4080 (quite old drivers) on windows 11 and it works fine as well. The PC where it crash is the one I started experimenting with NGX. Maybe at one point I did a wrong manipulation and now some cache is poluted somewhere ?