diff --git a/Engine/Source/Programs/CrashReporter/CrashReportWebSite/Models/CrashReport.cs b/Engine/Source/Programs/CrashReporter/CrashReportWebSite/Models/CrashReport.cs index be69c2b15fa5..a5d5b1b633c6 100644 --- a/Engine/Source/Programs/CrashReporter/CrashReportWebSite/Models/CrashReport.cs +++ b/Engine/Source/Programs/CrashReporter/CrashReportWebSite/Models/CrashReport.cs @@ -515,6 +515,8 @@ namespace Tools.CrashReporter.CrashReportWebSite.Models /// Crash context for this crash. FGenericCrashContext CrashContext = null; + bool bUseFullMinidumpPath = false; + /// If available, will read CrashContext.runtime-xml. public void ReadCrashContextIfAvailable() { @@ -524,6 +526,12 @@ namespace Tools.CrashReporter.CrashReportWebSite.Models if (bHasCrashContext) { CrashContext = FGenericCrashContext.FromFile( SitePath + GetCrashContextUrl() ); + bool bTest = CrashContext != null && !string.IsNullOrEmpty( CrashContext.PrimaryCrashProperties.FullCrashDumpLocation ); + if(bTest) + { + bUseFullMinidumpPath = true;// System.IO.Directory.Exists( CrashContext.PrimaryCrashProperties.FullCrashDumpLocation ); Doesn't work, probably due to some permissions. + FLogger.Global.WriteEvent( "ReadCrashContextIfAvailable " + CrashContext.PrimaryCrashProperties.FullCrashDumpLocation + " is " + bUseFullMinidumpPath ); + } } } catch (Exception Ex) @@ -826,13 +834,13 @@ namespace Tools.CrashReporter.CrashReportWebSite.Models /// Return true, if there is a minidump file associated with the crash public bool HasMiniDumpFile() { - var Path = UseFullMinidumpPath() ? CrashContext.PrimaryCrashProperties.GetFullCrashDumpLocation() : SitePath + GetMiniDumpUrl(); - return System.IO.File.Exists( Path ); + var Path = SitePath + GetMiniDumpUrl(); + return UseFullMinidumpPath() ? true : System.IO.File.Exists( Path ); } - bool UseFullMinidumpPath() + /// Whether to use the full minidump. + public bool UseFullMinidumpPath() { - bool bUseFullMinidumpPath = CrashContext != null && !string.IsNullOrEmpty( CrashContext.PrimaryCrashProperties.FullCrashDumpLocation ); return bUseFullMinidumpPath; }