Class CrashDumpRVC2

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class CrashDumpRVC2 : public dai::CrashDump

Public Functions

CrashDumpRVC2() = default
explicit CrashDumpRVC2(const std::filesystem::path &tarFile)

Construct crashdump from a tar file.

Parameters:

tarFile – Path to the tar file

inline virtual Platform getPlatform() const override

Identify the platform that this crashdump corresponds to.

Returns:

Platform enum value

inline virtual std::string getCrashDumpVersion() const override

Get the version of the crash dump format.

Returns:

Version string

virtual void toTar(const std::filesystem::path &tarPath) const override

Serialize the crash dump to a tar file.

Parameters:

tarPath – Path to the output tar file

virtual void fromTar(const std::filesystem::path &tarPath) override

Deserialize the crash dump from a tar file.

Parameters:

tarPath – Path to the input tar file

Public Members

CrashReportCollection crashReports
struct CrashReport

Public Members

ProcessorType processor
std::string errorSource
uint32_t crashedThreadId = 0
ErrorSourceInfo errorSourceInfo
std::vector<ThreadCallstack> threadCallstack
std::vector<std::string> prints

Device print/log lines captured around the crash.

uint64_t uptimeNs = 0

Device uptime in nanoseconds at crash-report capture time.

uint64_t timerRaw = 0

Raw device timer value captured in the crash report.

uint64_t statusFlags = 0

Platform-specific crash/status flags captured with the report.

struct ErrorSourceInfo

Public Functions

DEPTHAI_SERIALIZE(ErrorSourceInfo, assertContext, trapContext, errorId)

Public Members

AssertContext assertContext
TrapContext trapContext
uint32_t errorId = 0
struct AssertContext

Public Functions

DEPTHAI_SERIALIZE(AssertContext, fileName, functionName, line)

Public Members

std::string fileName
std::string functionName
uint32_t line = 0
struct TrapContext

Public Functions

DEPTHAI_SERIALIZE(TrapContext, trapNumber, trapAddress, trapName)

Public Members

uint32_t trapNumber = 0
uint32_t trapAddress = 0
std::string trapName
struct ThreadCallstack

Public Members

uint32_t threadId = 0
std::string threadName
std::string threadStatus
uint32_t stackBottom = 0
uint32_t stackTop = 0
uint32_t stackPointer = 0
uint32_t instructionPointer = 0
std::vector<CallstackContext> callStack
struct CallstackContext

Public Functions

DEPTHAI_SERIALIZE(CallstackContext, callSite, calledTarget, framePointer, context)

Public Members

uint32_t callSite = 0
uint32_t calledTarget = 0
uint32_t framePointer = 0
std::string context
struct CrashReportCollection

Public Functions

DEPTHAI_SERIALIZE(CrashReportCollection, crashReports, depthaiCommitHash, deviceId)

Public Members

std::vector<CrashReport> crashReports
std::string depthaiCommitHash
std::string deviceId