Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
harden(probe): watchdog timeout + memory guard so a stalled provider cannot wedge the host
Veyra Goal Agent8a8a8faa9099
diff --git a/tools/quality_probe/main.cpp b/tools/quality_probe/main.cppindex 360dd671..b4c83208 100644--- a/tools/quality_probe/main.cpp+++ b/tools/quality_probe/main.cpp@@ -217,6 +217,9 @@ int main(int argc, char** argv)// SR stage selection for deterministic A/B dumps: -1 = SR stage requested// but disabled (plain scale to the work extent), 0 = DLSS SR, 5 = AMD FSR.int srMode = 0;+ // Watchdog: a hung provider (FidelityFX + GPU-based validation was measured+ // to stall) must never be able to wedge an unattended run again. 0 = off.+ int timeoutSeconds = 0;std::string dumpPath;CoInitializeEx(nullptr, COINIT_MULTITHREADED);for (int i = 1; i < argc; ++i) {@@ -226,6 +229,7 @@ int main(int argc, char** argv)else if(arg=="--legacy-motion")legacyMotion=true;else if (arg == "--native") native = true;else if (arg == "--sr-mode") srMode = std::atoi(value().c_str());+ else if (arg == "--timeout-seconds") timeoutSeconds = std::max(0, std::atoi(value().c_str()));else if (arg == "--frames") maxFrames = std::atoi(value().c_str());else if (arg == "--dump") dumpPath = value();else if (arg == "--corpus") corpusManifest = value();@@ -238,6 +242,20 @@ int main(int argc, char** argv)else { std::fprintf(stderr, "unknown arg %s\n", arg.c_str()); return 2; }}if (durationSeconds < 0 || durationSeconds > 240 || maxFrames <= 0) return 2;+ if (timeoutSeconds > 0) {+ // Unattended hardening: a provider that stalls mid-dispatch (measured+ // with FidelityFX + GPU-based validation) must die on its own instead of+ // holding memory/VRAM until the machine runs out - 2026-09-16 incident.+ std::thread watchdog([timeoutSeconds]() {+ std::this_thread::sleep_for(std::chrono::seconds(timeoutSeconds));+ std::fprintf(stderr, "[quality-probe] watchdog: %d s budget exceeded, terminating (hung provider?)\n",+ timeoutSeconds);+ std::fflush(stderr);+ TerminateProcess(GetCurrentProcess(), 4);+ });+ watchdog.detach();+ std::fprintf(stderr, "[quality-probe] watchdog armed: %d s\n", timeoutSeconds);+ }if (corpusManifest.empty() && inputPath.empty()) {std::fprintf(stderr, "--corpus or --input required\n");return 2;@@ -290,8 +308,16 @@ int main(int argc, char** argv)// states) stalls before its dispatch line, so this is a validation-layer// interaction, not a state bug in the graph. Keep the debug layer for the// FSR SR configuration and say so instead of hanging the run.+ // GPU-based validation roughly triples working-set requirements; the+ // 2026-09-16 incident was system virtual-memory exhaustion while it ran.+ MEMORYSTATUSEX memory{};+ memory.dwLength = sizeof(memory);+ const bool enoughMemory = GlobalMemoryStatusEx(&memory) &&+ memory.ullAvailPhys >= (6ull << 30); // 6 GiB headroomif(srMode==int(veyra::engine::kVideoSrFsr)){veyra::log::warn("quality-probe","GPU-based validation skipped for the AMD FSR SR configuration (validation layer does not complete the FidelityFX upscale dispatch); debug layer stays on");+ }else if(!enoughMemory){+ veyra::log::warn("quality-probe","GPU-based validation skipped: less than 6 GiB available physical memory (it is the most memory-hungry mode in this tool)");}else{gbv->SetEnableGPUBasedValidation(TRUE);}