Skip to content

Uncaught RenderingCancelledException from PDF.js #64

Description

@srking

Describe the bug

An uncaught RenderingCancelledException is thrown when a PDF is in the process of being rendered within a component that is unmounted.

To Reproduce
Steps to reproduce the behavior:

  1. Render a PDF within a parent component that can be unmounted (for example in a modal dialog).
  2. While the PDF is in the process of rendering (indicated via a loading spinner) unmount the parent component.
  3. An uncaught RenderingCancelledException is thrown.

Expected behavior
No error is thrown when the parent component unmounts.

Desktop (please complete the following information):

  • OS: macOS Tahoe 26.5.2 (25F84)
  • Browser: Chrome 150.0.7871.115

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions