Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPDF_RenderPageBitmap out of memory #83

Open
thomas-topway-it opened this issue Oct 16, 2021 · 0 comments
Open

FPDF_RenderPageBitmap out of memory #83

thomas-topway-it opened this issue Oct 16, 2021 · 0 comments

Comments

@thomas-topway-it
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant