perf: Wpf 增加未找到 CrashDumps 文件夹 Log, correct_rect 增加 rect.empty() log

This commit is contained in:
status102
2026-02-26 15:41:22 +08:00
parent 887a5c174f
commit 01ca2090fc
2 changed files with 5 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ Rect VisionHelper::correct_rect(const Rect& rect, const cv::Mat& image)
return rect;
}
if (rect.empty()) {
LogWarn << __FUNCTION__ << "roi is empty, use whole image";
return { 0, 0, image.cols, image.rows };
}
if (rect.x >= image.cols || rect.y >= image.rows) {

View File

@@ -221,6 +221,10 @@ public class Bootstrapper : Bootstrapper<RootViewModel>
_logger.Information("Crash dumps are copied to {DumpDir}", dumpDir);
}
}
else
{
_logger.Information("%LocalAppData%/CrashDumps not found");
}
string[] lines = File.ReadAllLines(crashFile, Encoding.UTF8);