Nutrient Web SDK

ReferenceNutrientViewerOutOfMemoryError

Class OutOfMemoryError

An error raised when a page render cannot complete because the WebAssembly renderer could not allocate enough memory within its configured heap. This can happen because of document or page complexity even when the device still has free memory. This extends NutrientViewer.Error and is delivered through the page.renderError event.

Class

Example

instance.addEventListener("page.renderError", event => {
if (event.error instanceof NutrientViewer.OutOfMemoryError) {
console.log("Page rendering ran out of memory", event.pageIndex);
}
});

Hierarchy

PSPDFKitErrorOutOfMemoryError

Constructors

Properties

cause

Optional
unknown

errorCode

Readonly
"failed_oom"
string

stack

Optional
string

Accessors

  • get name(): string

    Returns

    string