Skip to content

PDF rendering fails: 'noExitRuntime' was not exported (Emscripten build issue) #66

@oduchateau

Description

@oduchateau

When trying to open or render a PDF file in the editor, the WASM runtime aborts with:

RuntimeError: Aborted('noExitRuntime' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the Emscripten FAQ))
at fonts.js:38:381 (libfont/engine)
at drawingfile.js:167:423 (pdf/src/engine)

Environment:

  • Image: ghcr.io/euro-office/documentserver:latest
  • Build version: 9.2.1-09cfa1a0fe63716ad6884db689f9894a
  • Browser: Firefox 149 / Linux x86_64
  • Test file: any PDF

The issue appears to be in the Emscripten build flags for the libfont and PDF drawing engine WASM modules. The flag EXPORTED_RUNTIME_METHODS needs to include 'noExitRuntime' (or use EXIT_RUNTIME=0 with the proper export).

DOCX/XLSX rendering works fine — only PDF is affected.

Same content works correctly with the upstream onlyoffice/documentserver image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions