diff --git a/src/BloomExe/Utils/PerformanceMeasurement.cs b/src/BloomExe/Utils/PerformanceMeasurement.cs index 114b2217b5e0..b2118208fe2a 100644 --- a/src/BloomExe/Utils/PerformanceMeasurement.cs +++ b/src/BloomExe/Utils/PerformanceMeasurement.cs @@ -382,7 +382,16 @@ private static List GetAllDescendantProcesses(Process parent) // If the fast Windows approach fails for any reason, fall back to WMI below. } - return GetAllDescendantProcessesWmi(parent.Id); + try + { + return GetAllDescendantProcessesWmi(parent.Id); + } + catch + { + // If WMI fails, return empty list. We don't want performance monitoring to crash the application. + } + + return new List(); } private static List GetAllDescendantProcessesWindows(int parentPid)