Skip to content

FPDF_RenderPageBitmap out of memory #83

@thomas-topway-it

Description

@thomas-topway-it

Hello, I get an out of memory executing FPDF_RenderPageBitmap (to generate thumbnails of pdf cover) with large pdf files (above 100mb or even smaller with non-rasterized text).
However, the same documents do not crash for instance using readera https://readera.org/en/book-reader
and artifex's mupdf
https://github.com/ArtifexSoftware/mupdf-android-viewer.

I'm calling directly the native function mentioned above using dart:ffi but I think that's an issue of pdfium itself and using the JNI also reproduces the issue.
Is there a way to prevent this handling how the memory is used in the native library itself ?

I think mupdf on readera do not crash (on the same device, android 5.0.2, 1gb ram) also because the native lib is executed as static/standalone, do you have any comment about that ?
thanks
(Thomas)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions