fuchsia.crash

PROTOCOLS

Analyzer

Defined in fuchsia.crash/analyzer.fidl

Analyzes crashed processes, string exceptions from managed runtimes or kernel panic crashlogs.

OnNativeException

Requests that the crash analyzer handles the exception thrown by the given thread in process.

A typical implementation might print a crash dump to the system log or upload a crash report to a server.

Request

NameType
process handle<process>
thread handle<thread>

Response

NameType
result Analyzer_OnNativeException_Result

OnManagedRuntimeException

Requests that the crash analyzer handles the exception thrown in the managed runtime.

component_url is the full Fuchsia URL of the component that crashed.

A typical implementation might print the exception message and stack trace to the system log or upload a crash report to a server.

Request

NameType
component_url string[1024]
exception ManagedRuntimeException

Response

NameType
result Analyzer_OnManagedRuntimeException_Result

STRUCTS

Analyzer_OnNativeException_Response

Defined in fuchsia.crash/generated

NameTypeDescriptionDefault

Analyzer_OnManagedRuntimeException_Response

Defined in fuchsia.crash/generated

NameTypeDescriptionDefault

UnknownException

Defined in fuchsia.crash/analyzer.fidl

Represents a language-agnostic exception.

NameTypeDescriptionDefault
data fuchsia.mem/Buffer A general buffer to hold some exception data. No default

GenericException

Defined in fuchsia.crash/analyzer.fidl

Represents a generic exception that works for many managed runtime languages.

NameTypeDescriptionDefault
type uint8[128] Exception type, e.g., "FileSystemException". No default
message uint8[1024] Exception message, e.g., "cannot open file". No default
stack_trace fuchsia.mem/Buffer Text representation of the stack trace. No default

UNIONS

Analyzer_OnNativeException_Result

Defined in fuchsia.crash/generated

NameTypeDescription
response Analyzer_OnNativeException_Response
err int32

Analyzer_OnManagedRuntimeException_Result

Defined in fuchsia.crash/generated

NameTypeDescription
response Analyzer_OnManagedRuntimeException_Response
err int32

ManagedRuntimeException

Defined in fuchsia.crash/analyzer.fidl

Represents a managed runtime exception.

unknown is intended to capture any language, meaning the handling will be language-agnostic. Choose a more specific member if available for handling that language more specifically.

NameTypeDescription
unknown UnknownException
dart GenericException