engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | Protected 成员函数 | Protected 属性 | 静态 Protected 属性 | 友元 | 所有成员列表
FPrimaryCrashProperties结构体 参考

Primary crash properties required by the crash report system. 更多...

#include <CrashDescription.h>

+ 类 FPrimaryCrashProperties 继承关系图:

Public 成员函数

bool HasProcessedData () const
 Whether this crash contains callstack, error message and source context thus it means that crash is complete.
 
void Save ()
 Saves the data.
 
void SendPostUploadAnalytics ()
 Sends this crash for analytics (after successful upload).
 
void SendPreUploadAnalytics ()
 Sends this crash for analytics (before upload).
 
void UpdateIDs ()
 Updates following properties: UserName, LoginID and EpicAccountID.
 

静态 Public 成员函数

static FPrimaryCrashProperties * Get ()
 
static bool IsValid ()
 
static void Set (FPrimaryCrashProperties *NewInstance)
 Sets new instance as the global.
 
static void Shutdown ()
 Shutdowns the global instance.
 

Public 属性

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. 更多...
 
bool bHasLogFile
 Whether this crash has a log file. 更多...
 
bool bHasMiniDumpFile
 Whether this crash has a minidump file. 更多...
 
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. 更多...
 
FCrashProperty CommandLine
 The command line of the application that crashed. 更多...
 
FCrashProperty CPUBrand
 The cpu brand of the device, e.g. 更多...
 
ECrashDumpMode CrashDumpMode
 Crash dump mode.
 
FString CrashGUID
 An unique report name that this crash belongs to. 更多...
 
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.
 
FString CrashType
 The type of crash being reported, e.g. 更多...
 
ECrashDescVersions CrashVersion
 Version.
 
FString DeploymentName
 Deployment (also known as "EpicApp"), e.g. 更多...
 
FString EngineMode
 The mode the game was in e.g. 更多...
 
FCrashProperty EngineModeEx
 EngineModeEx e.g. 更多...
 
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. 更多...
 
FCrashProperty FullCrashDumpLocation
 Location of full crash dump. 更多...
 
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 PlatformCallbackResult
 Platform-specific UE4 Core value (integer).
 
FCrashProperty PlatformFullName
 The platform that crashed e.g. 更多...
 
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. 更多...
 
FCrashPropertyXmlNode Threads
 Thread contexts, XML elements containing info specific to an active thread, e.g. 更多...
 
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. 更多...
 
FCrashProperty UserName
 The name of the user that caused this crash. 更多...
 

Protected 成员函数

FString EncodeArrayStringAsXMLString (const TArray< FString > &ArrayString) const
 Encodes multi line property to be saved as single line.
 
 FPrimaryCrashProperties ()
 Default constructor.
 
template<typename Type >
void GetCrashProperty (Type &out_ReadValue, const FString &MainCategory, const FString &SecondCategory) const
 Gets a crash property from the XML file.
 
void ReadXML (const FString &CrashContextFilepath, const TCHAR *Buffer=nullptr)
 Reads previously set XML file. 更多...
 
void SetCrashGUID (const FString &Filepath)
 Sets the CrasgGUID based on the report's path.
 
void SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const FString &NewValue)
 Sets a crash property to a new value.
 
void SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const FXmlNode *NewNode)
 Sets a crash property to a new value.
 
template<typename Type >
void SetCrashProperty (const FString &MainCategory, const FString &SecondCategory, const Type &Value)
 Sets a crash property to a new value.
 
 ~FPrimaryCrashProperties ()
 Destructor.
 

Protected 属性

FXmlFile * XmlFile
 Reader for the xml file.
 
FString XmlFilepath
 Cached filepath.
 

静态 Protected 属性

static FPrimaryCrashProperties * Singleton
 Global instance.
 

友元

struct FCrashProperty
 

详细描述

Primary crash properties required by the crash report system.

成员函数说明

◆ Get()

static FPrimaryCrashProperties * FPrimaryCrashProperties::Get ( )
inlinestatic
返回
global instance of the primary crash properties for the currently processed/displayed crash

◆ IsValid()

static bool FPrimaryCrashProperties::IsValid ( )
inlinestatic
返回
false, if there is no crash

◆ ReadXML()

void FPrimaryCrashProperties::ReadXML ( const FString &  CrashContextFilepath,
const TCHAR *  Buffer = nullptr 
)
protected

Reads previously set XML file.

Optionally give a buffer to parse from. Any changes will be stored to CrashContextFilePath.

类成员变量说明

◆ AppDefaultLocale

FString FPrimaryCrashProperties::AppDefaultLocale

The language ID the application that crashed.

@LanguageExt varchar(64)

FPlatformMisc::GetDefaultLocale()

◆ bAllowToBeContacted

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.

◆ BaseDir

FString FPrimaryCrashProperties::BaseDir

The base directory where the app was running.

@BaseDir varchar(512)

FPlatformProcess::BaseDir()

◆ bHasLogFile

bool FPrimaryCrashProperties::bHasLogFile

Whether this crash has a log file.

@HasLogFile bit

◆ bHasMiniDumpFile

bool FPrimaryCrashProperties::bHasMiniDumpFile

Whether this crash has a minidump file.

@HasMiniDumpFile bit

◆ CallStack

FCrashProperty FPrimaryCrashProperties::CallStack

An array of FStrings representing the callstack of the crash.

@RawCallStack varchar(MAX)

◆ CommandLine

FCrashProperty FPrimaryCrashProperties::CommandLine

The command line of the application that crashed.

@CommandLine varchar(512)

FCommandLine::Get()

◆ CPUBrand

FCrashProperty FPrimaryCrashProperties::CPUBrand

The cpu brand of the device, e.g.

Intel, iPhone6, etc.

◆ CrashGUID

FString FPrimaryCrashProperties::CrashGUID

An unique report name that this crash belongs to.

Folder name.

◆ CrashType

FString FPrimaryCrashProperties::CrashType

The type of crash being reported, e.g.

Assert, Ensure, Hang

◆ DeploymentName

FString FPrimaryCrashProperties::DeploymentName

Deployment (also known as "EpicApp"), e.g.

DevPlaytest, PublicTest, Live @DeploymentName varchar(64)

◆ EngineMode

FString FPrimaryCrashProperties::EngineMode

The mode the game was in e.g.

editor. @EngineMode varchar(64)

FPlatformMisc::GetEngineMode()

◆ EngineModeEx

FCrashProperty FPrimaryCrashProperties::EngineModeEx

EngineModeEx e.g.

Unset, Dirty, Vanilla @DeploymentName varchar(64)

◆ EngineVersion

FEngineVersion FPrimaryCrashProperties::EngineVersion

Encoded engine version.

(AppVersion) E.g. 4.3.0.0-2215663+UE4-Releases+4.3 BuildVersion-BuiltFromCL-BranchName @EngineVersion varchar(64)

FEngineVersion::Current().ToString() ENGINE_VERSION_STRING

◆ EpicAccountId

FCrashProperty FPrimaryCrashProperties::EpicAccountId

The Epic account ID for the user who last used the Launcher.

@EpicAccountId varchar(64)

FPlatformMisc::GetEpicAccountId()

◆ ErrorMessage

FCrashProperty FPrimaryCrashProperties::ErrorMessage

The error message, can be assertion message, ensure message or message from the fatal error.

@Summary varchar(512)

GErrorMessage

◆ ExecutableName

FString FPrimaryCrashProperties::ExecutableName

The name of the exe that crashed.

(AppID) @GameName varchar(64)

◆ FullCrashDumpLocation

FCrashProperty FPrimaryCrashProperties::FullCrashDumpLocation

Location of full crash dump.

Displayed in the crash report frontend.

◆ GameName

FString FPrimaryCrashProperties::GameName

The name of the game that crashed.

(AppID) @GameName varchar(64)

FApp::GetProjectName()

◆ GameSessionID

FCrashProperty FPrimaryCrashProperties::GameSessionID

The last game session id set by the application.

Application specific meaning. Some might not set this. @EpicAccountId varchar(64)

◆ LoginId

FCrashProperty FPrimaryCrashProperties::LoginId

The unique ID used to identify the machine the crash occurred on.

@ComputerName varchar(64)

FPlatformMisc::GetLoginId()

◆ PlatformFullName

FCrashProperty FPrimaryCrashProperties::PlatformFullName

The platform that crashed e.g.

Win64. @PlatformName varchar(64)

Last path of the directory

◆ SourceContext

FCrashProperty FPrimaryCrashProperties::SourceContext

An array of FStrings showing the source code around the crash.

@SourceContext varchar(max)

◆ Threads

FCrashPropertyXmlNode FPrimaryCrashProperties::Threads

Thread contexts, XML elements containing info specific to an active thread, e.g.

callstacks

◆ TimeOfCrash

FCrashProperty FPrimaryCrashProperties::TimeOfCrash

The UTC time the crash occurred.

@TimeOfCrash datetime

FDateTime::UtcNow().GetTicks()

◆ UserActivityHint

FCrashProperty FPrimaryCrashProperties::UserActivityHint

An FString representing the user activity, if known, when the error occurred.

@UserActivityHint varchar(512)

◆ UserDescription

FCrashProperty FPrimaryCrashProperties::UserDescription

An array of FStrings representing the user description of the crash.

@Description varchar(512)

◆ UserName

FCrashProperty FPrimaryCrashProperties::UserName

The name of the user that caused this crash.

@UserName varchar(64)

FString( FPlatformProcess::UserName() ).Replace( TEXT( "." ), TEXT( "" ) )


该结构体的文档由以下文件生成: