Skip to content

Diagnose a failed load or operation ​

Start with the first structured failure and its phase. A later cleanup error can hide the initiating problem if logs only retain the final exception. Preserve both without treating an empty/default result as success.

Record enough context ​

Capture the plugin ID and version, SDK version, launcher build, phase, error code, operation/correlation ID and relevant load report. Include the smallest source or package that reproduces the issue. Remove account tokens, grants, private file contents and encrypted delivery keys before sharing logs.

AbiReply<T>.Success determines whether Value may be used. In C/Wasm, test nx_reply_success before the generated result reader and preserve nx_reply_error when decoding fails. Do not replace a failed list call with an empty list: that tells the user data is absent when access actually failed.

Find the failing boundary ​

ObservationCheck firstRecovery
Compiler cannot find wasm-ldLLVM installation and PATHInstall/select the linker; do not change manifest permissions
SDK cache or ZIP digest mismatchPinned release and actual bytesRebuild or restore verified bytes; do not skip integrity checks
Required capability unavailableHost build and negotiated contract/versionUse a compatible Host or reduce the required feature set
Permission deniedExact per-operation permission and target grantExplain the denied feature; request access through the supported Host flow
STAGE_FROZEN or wrong phaseSaved view, callback stage and invocation lifetimeMove work to the permitted callback; obtain the current scope
Invalid schemaDeclared schema, model encoder and fingerprintUpdate producer and consumer together
Invalid/foreign handleIssuing load, handle type and resource lifetimeReacquire in the current load; never fabricate a replacement
Revision conflictTarget changed after read/previewRe-read, reconcile and prepare a fresh plan
Callback never runsActivation, handler ID, registration and confirmation outcomeVerify the descriptor chain; decline is a valid non-dispatch outcome
Provider unavailableProvider activation, deadline and family supportKeep feature unavailable or select an explicitly supported provider
Watch reports a gapQueue overflow, retention or restartRead an authoritative snapshot and resume from a valid cursor
OUTCOME_UNKNOWNOperation record and external stateReconcile; do not automatically replay the effect

Exact codes and details come from the Host error. The table describes diagnostic categories, not an assertion that every Host emits one identical code for each row.

Separate timeout from failure of the effect ​

A deadline bounds waiting and execution admission. An external effect may already have occurred when a reply is lost or the callback is interrupted. Inspect the owned task or journal. Preserve unknown outcomes until evidence resolves them. Cancellation requests termination; it does not prove rollback.

Reproduce the smallest failing sequence ​

Start with the unchanged template on the same Host. If it works, add the failing capability and one call with the same permission and scope. Test the successful path, then the precise denied/conflicting/cancelled case. For UI issues, verify the package asset and action ID before investigating rendering internals.

The SDK tests establish codecs and facade behavior. Runtime and Desktop integration tests establish execution and application behavior. Report which layer you tested so a passing mock response is not mistaken for a working launcher feature.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.