Navigation
API > API/Runtime > API/Runtime/CrashReportCore
Inheritance Hierarchy
- FPrimaryCrashProperties
- FCrashContext
- FCrashWERContext
References
| Module | CrashReportCore |
| Header | /Engine/Source/Runtime/CrashReportCore/Public/CrashDescription.h |
| Include | #include "CrashDescription.h" |
Syntax
struct FPrimaryCrashProperties
Remarks
Primary crash properties required by the crash report system.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | AppDefaultLocale | The language ID the application that crashed. | |
| FCrashProperty | bAllowToBeContacted | Whether the user allowed us to be contacted. | |
| FString | BaseDir | The base directory where the app was running. @BaseDir varchar(512) |
FPlatformProcess::BaseDir() |
| bool | bHasLogFile | Whether this crash has a log file. @HasLogFile bit | |
| bool | bHasMiniDumpFile | Whether this crash has a minidump file. @HasMiniDumpFile bit | |
| bool | bHasPrimaryData | Whether this crash contains primary usable data. | |
| bool | bInBackground | Whether we were in the background when the crash happened | |
| bool | bIsEnsure | Whether the report comes from a non-fatal event such as an ensure | |
| bool | bIsOOM | Whether it was an OOM or not | |
| bool | bIsRequestingExit | Whether we crashed during shutdown | |
| bool | bLowMemoryWarning | Whether we got a low memory warning or not | |
| FCrashProperty | CallStack | An array of FStrings representing the callstack of the crash. @RawCallStack varchar(MAX) | |
| FCrashProperty | CommandLine | The command line of the application that crashed. | |
| FCrashProperty | CPUBrand | The cpu brand of the device, e.g. Intel, iPhone6, etc. | |
| ECrashDumpMode | CrashDumpMode | Crash dump mode. | |
| FString | CrashGUID | An unique report name that this crash belongs to. Folder name. | |
| FCrashProperty | CrashReportClientVersion | CRC sets this to the current version of the software. | |
| FCrashProperty | 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. | |
| int32 | CrashSignal | The signal that was raised to enter the crash handler | |
| FString | CrashType | The type of crash being reported, e.g. Assert, Ensure, Hang | |
| ECrashDescVersions | CrashVersion | Version. | |
| FString | DeploymentName | Deployment (also known as "EpicApp"), e.g. DevPlaytest, PublicTest, Live @DeploymentName varchar(64) | |
| FString | EngineMode | The mode the game was in e.g. editor. @EngineMode varchar(64) |
FPlatformMisc::GetEngineMode() |
| FCrashProperty | EngineModeEx | EngineModeEx e.g. Unset, Dirty, Vanilla @DeploymentName varchar(64) | |
| FEngineVersion | EngineVersion | Encoded engine version. | |
| FCrashProperty | EpicAccountId | The Epic account ID for the user who last used the Launcher. | |
| FCrashProperty | ErrorMessage | The error message, can be assertion message, ensure message or message from the fatal error. | |
| FString | ExecutableName | The name of the exe that crashed. (AppID) @GameName varchar(64) | |
| FCrashProperty | FullCrashDumpLocation | Location of full crash dump. Displayed in the crash report frontend. | |
| FString | GameName | The name of the game that crashed. | |
| FCrashProperty | GameSessionID | The last game session id set by the application. | |
| FCrashProperty | LoginId | The unique ID used to identify the machine the crash occurred on. | |
| FCrashProperty | Modules | An array of module's name used by the game that crashed. | |
| int32 | NumMinidumpFramesToIgnore | Specifies the number of stack frames in the callstack to ignore when symbolicating from a minidump. | |
| FCrashProperty | PCallStack | An array of FStrings representing the portable callstack of the crash. | |
| FString | PCallStackHash | A hash representing a unique id for a portable callstack. | |
| FCrashProperty | PCallStackHashProperty | The hash of PCallStack | |
| FCrashProperty | PlatformCallbackResult | Platform-specific UE Core value (integer). | |
| FCrashProperty | PlatformFullName | The platform that crashed e.g. Win64. @PlatformName varchar(64) |
Last path of the directory |
| FCrashPropertyXmlNode | PlatformPropertiesExtras | Optional additional data for platform properties | |
| FString | RestartCommandLine | Copy of CommandLine that isn't anonymized so it can be used to restart the process | |
| FCrashProperty | SourceContext | An array of FStrings showing the source code around the crash. @SourceContext varchar(max) | |
| FCrashPropertyXmlNode | Threads | Thread contexts, XML elements containing info specific to an active thread, e.g. callstacks | |
| FCrashProperty | TimeOfCrash | The UTC time the crash occurred. | |
| FCrashProperty | UserActivityHint | An FString representing the user activity, if known, when the error occurred. | |
| FCrashProperty | UserDescription | An array of FStrings representing the user description of the crash. @Description varchar(512) | |
| FCrashProperty | UserName | The name of the user that caused this crash. | |
| FXmlFile * | XmlFile | Reader for the xml file. | |
| FString | XmlFilepath | Cached filepath. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | EncodeArrayStringAsXMLString
(
const TArray< FString >& ArrayString |
Encodes multi line property to be saved as single line. | |
| FPrimaryCrashProperties * | Get () |
||
| void | GetCrashProperty
(
Type& out_ReadValue, |
Gets a crash property from the XML file. | |
| bool | Whether this crash contains callstack, error message and source context thus it means that crash is complete. | ||
| bool | IsValid () |
||
| void | MakeCrashEventAttributes
(
TArray< FAnalyticsEventAttribute >& OutCrashAttributes |
||
| void | Reads previously set XML file. | ||
| void | Save () |
Saves the data. | |
| void | SendPostUploadAnalytics
(
double Duration, |
Sends this crash for analytics (after upload) with additional stats about the upload. | |
| void | Sends this crash for analytics (before upload). | ||
| void | Set
(
FPrimaryCrashProperties* NewInstance |
Sets new instance as the global. | |
| void | SetCrashGUID
(
const FString& Filepath |
Sets the CrasgGUID based on the report's path. | |
| void | SetCrashProperty
(
const FString& MainCategory, |
Sets a crash property to a new value. | |
| void | SetCrashProperty
(
const FString& MainCategory, |
Sets a crash property to a new value. | |
| void | SetCrashProperty
(
const FString& MainCategory, |
Sets a crash property to a new value. | |
| void | Shutdown () |
Shutdowns the global instance. | |
| void | UpdateIDs () |
Updates following properties: UserName, LoginID and EpicAccountID. |
Constants
| Name | Description |
|---|---|
| Singleton | Global instance. |