![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CrashDescription.h>
Inheritance diagram for FPrimaryCrashProperties:Public Member Functions | |
| bool | HasProcessedData () const |
| void | UpdateIDs () |
| void | SendPreUploadAnalytics () |
| void | SendPostUploadAnalytics (double Duration, bool bResult, int32 ResponseCode, uint32 PayloadSize, uint32 ReportCount) |
| void | Save () |
Static Public Member Functions | |
| static void | Set (FPrimaryCrashProperties *NewInstance) |
| static FPrimaryCrashProperties * | Get () |
| static bool | IsValid () |
| static void | Shutdown () |
Protected Member Functions | |
| FPrimaryCrashProperties () | |
| ~FPrimaryCrashProperties () | |
| void | ReadXML (const FString &CrashContextFilepath, const TCHAR *Buffer=nullptr) |
| void | SetCrashGUID (const FString &Filepath) |
| template<typename Type > | |
| void | GetCrashProperty (Type &out_ReadValue, const FString &MainCategory, const FString &SecondCategory) const |
| template<typename Type > | |
| void | SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const Type &Value) |
| void | SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const FString &NewValue) |
| void | SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const FXmlNode *NewNode) |
| FString | EncodeArrayStringAsXMLString (const TArray< FString > &ArrayString) const |
| void | MakeCrashEventAttributes (TArray< FAnalyticsEventAttribute > &OutCrashAttributes) |
Protected Attributes | |
| FXmlFile * | XmlFile |
| FString | XmlFilepath |
Static Protected Attributes | |
| static FPrimaryCrashProperties * | Singleton = nullptr |
Friends | |
| struct | FCrashProperty |
| struct | FCrashPropertyXmlNode |
Primary crash properties required by the crash report system.
|
protected |
Default constructor.
|
inlineprotected |
Destructor.
|
protected |
Encodes multi line property to be saved as single line.
|
inlinestatic |
|
inlineprotected |
Gets a crash property from the XML file.
|
inline |
Whether this crash contains callstack, error message and source context thus it means that crash is complete.
|
protected |
|
protected |
Reads previously set XML file. Optionally give a buffer to parse from. Any changes will be stored to CrashContextFilePath.
| void FPrimaryCrashProperties::Save | ( | ) |
Saves the data.
| void FPrimaryCrashProperties::SendPostUploadAnalytics | ( | double | Duration, |
| bool | bResult, | ||
| int32 | ResponseCode, | ||
| uint32 | PayloadSize, | ||
| uint32 | ReportCount | ||
| ) |
Sends this crash for analytics (after upload) with additional stats about the upload.
| void FPrimaryCrashProperties::SendPreUploadAnalytics | ( | ) |
Sends this crash for analytics (before upload).
|
inlinestatic |
Sets new instance as the global.
|
protected |
Sets the CrasgGUID based on the report's path.
|
inlineprotected |
Sets a crash property to a new value.
|
inlineprotected |
Sets a crash property to a new value.
|
inlineprotected |
Sets a crash property to a new value.
|
static |
Shutdowns the global instance.
| void FPrimaryCrashProperties::UpdateIDs | ( | ) |
Updates following properties: UserName, LoginID and EpicAccountID.
|
friend |
|
friend |
| FString FPrimaryCrashProperties::AppDefaultLocale |
The language ID the application that crashed. @LanguageExt varchar(64)
| FCrashProperty FPrimaryCrashProperties::bAllowToBeContacted |
Whether the user allowed us to be contacted. If true the following properties are retrieved from the system: UserName (for non-launcher build) and EpicAccountID. Otherwise they will be empty.
| FString FPrimaryCrashProperties::BaseDir |
The base directory where the app was running. @BaseDir varchar(512)
| bool FPrimaryCrashProperties::bHasLogFile |
Whether this crash has a log file. @HasLogFile bit
| bool FPrimaryCrashProperties::bHasMiniDumpFile |
Whether this crash has a minidump file. @HasMiniDumpFile bit
| bool FPrimaryCrashProperties::bHasPrimaryData |
Whether this crash contains primary usable data.
| bool FPrimaryCrashProperties::bInBackground |
Whether we were in the background when the crash happened
| bool FPrimaryCrashProperties::bIsEnsure |
Whether the report comes from a non-fatal event such as an ensure
| bool FPrimaryCrashProperties::bIsOOM |
Whether it was an OOM or not
| bool FPrimaryCrashProperties::bIsRequestingExit |
Whether we crashed during shutdown
| bool FPrimaryCrashProperties::bLowMemoryWarning |
Whether we got a low memory warning or not
| FCrashProperty FPrimaryCrashProperties::CallStack |
An array of FStrings representing the callstack of the crash. @RawCallStack varchar(MAX)
| FCrashProperty FPrimaryCrashProperties::CommandLine |
The command line of the application that crashed. @CommandLine varchar(512)
| FCrashProperty FPrimaryCrashProperties::CPUBrand |
The cpu brand of the device, e.g. Intel, iPhone6, etc.
| ECrashDumpMode FPrimaryCrashProperties::CrashDumpMode |
Crash dump mode.
| FString FPrimaryCrashProperties::CrashGUID |
An unique report name that this crash belongs to. Folder name.
| FCrashProperty FPrimaryCrashProperties::CrashReportClientVersion |
CRC sets this to the current version of the software.
| FCrashProperty FPrimaryCrashProperties::CrashReporterMessage |
Rich text string (should be localized by the crashing application) that will be displayed in the main CRC dialog Can be empty and the CRC's default text will be shown.
| uint32 FPrimaryCrashProperties::CrashScreenshotHeight = 0 |
| uint32 FPrimaryCrashProperties::CrashScreenshotWidth = 0 |
Width and height of the crash screenshot, if present
| int32 FPrimaryCrashProperties::CrashSignal |
| FString FPrimaryCrashProperties::CrashType |
The type of crash being reported, e.g. Assert, Ensure, Hang
| ECrashDescVersions FPrimaryCrashProperties::CrashVersion |
Version.
| FString FPrimaryCrashProperties::DeploymentName |
Deployment (also known as "EpicApp"), e.g. DevPlaytest, PublicTest, Live @DeploymentName varchar(64)
| FString FPrimaryCrashProperties::EngineMode |
The mode the game was in e.g. editor. @EngineMode varchar(64)
| FCrashProperty FPrimaryCrashProperties::EngineModeEx |
EngineModeEx e.g. Unset, Dirty, Vanilla @DeploymentName varchar(64)
| FEngineVersion FPrimaryCrashProperties::EngineVersion |
Encoded engine version. (AppVersion) E.g. 4.3.0.0-2215663+UE-Releases+4.3 BuildVersion-BuiltFromCL-BranchName @EngineVersion varchar(64)
FEngineVersion::Current().ToString() ENGINE_VERSION_STRING
| FCrashProperty FPrimaryCrashProperties::EpicAccountId |
The Epic account ID for the user who last used the Launcher. @EpicAccountId varchar(64)
| FCrashProperty FPrimaryCrashProperties::ErrorMessage |
The error message, can be assertion message, ensure message or message from the fatal error. @Summary varchar(512)
GErrorMessage
| FString FPrimaryCrashProperties::ExecutableName |
The name of the exe that crashed. (AppID) @GameName varchar(64)
| FCrashProperty FPrimaryCrashProperties::FullCrashDumpLocation |
Location of full crash dump. Displayed in the crash report frontend.
| FString FPrimaryCrashProperties::GameName |
The name of the game that crashed. (AppID) @GameName varchar(64)
| FCrashProperty FPrimaryCrashProperties::GameSessionID |
The last game session id set by the application. Application specific meaning. Some might not set this. @EpicAccountId varchar(64)
| FCrashProperty FPrimaryCrashProperties::LoginId |
The unique ID used to identify the machine the crash occurred on. @ComputerName varchar(64)
| FCrashProperty FPrimaryCrashProperties::Modules |
An array of module's name used by the game that crashed.
| int32 FPrimaryCrashProperties::NumMinidumpFramesToIgnore |
Specifies the number of stack frames in the callstack to ignore when symbolicating from a minidump.
| FCrashProperty FPrimaryCrashProperties::PCallStack |
An array of FStrings representing the portable callstack of the crash.
| FString FPrimaryCrashProperties::PCallStackHash |
| FCrashProperty FPrimaryCrashProperties::PCallStackHashProperty |
The hash of PCallStack
| FCrashProperty FPrimaryCrashProperties::PlatformCallbackResult |
| FCrashProperty FPrimaryCrashProperties::PlatformFullName |
The platform that crashed e.g. Win64. @PlatformName varchar(64)
Last path of the directory
| FCrashPropertyXmlNode FPrimaryCrashProperties::PlatformPropertiesExtras |
Optional additional data for platform properties
| FString FPrimaryCrashProperties::RestartCommandLine |
Copy of CommandLine that isn't anonymized so it can be used to restart the process
|
staticprotected |
Global instance.
| FCrashProperty FPrimaryCrashProperties::SourceContext |
An array of FStrings showing the source code around the crash. @SourceContext varchar(max)
| FCrashPropertyXmlNode FPrimaryCrashProperties::Threads |
Thread contexts, XML elements containing info specific to an active thread, e.g. callstacks
| FCrashProperty FPrimaryCrashProperties::TimeOfCrash |
The UTC time the crash occurred. @TimeOfCrash datetime
FDateTime::UtcNow().GetTicks()
| FCrashProperty FPrimaryCrashProperties::UserActivityHint |
An FString representing the user activity, if known, when the error occurred. @UserActivityHint varchar(512)
| FCrashProperty FPrimaryCrashProperties::UserDescription |
An array of FStrings representing the user description of the crash. @Description varchar(512)
| FCrashProperty FPrimaryCrashProperties::UserName |
The name of the user that caused this crash. @UserName varchar(64)
FString( FPlatformProcess::UserName() ).Replace( TEXT( "." ), TEXT( "" ) )
|
protected |
Reader for the xml file.
|
protected |
Cached filepath.