Skip to content

fix(pdfium): serialise PDFium calls across documents on JVM and Android - #16

Open
gazseatfrog wants to merge 1 commit into
NucleusFramework:masterfrom
gazseatfrog:fix/serialise-pdfium-across-documents
Open

gazseatfrog wants to merge 1 commit into
NucleusFramework:masterfrom
gazseatfrog:fix/serialise-pdfium-across-documents

Conversation

@gazseatfrog

@gazseatfrog gazseatfrog commented Oct 12, 2026 •

Copy link
Copy Markdown

PDFium isn't thread-safe across documents (FreeType's FT_Library is process-wide), but JVM and Android ran each document on its own worker thread, so rendering two documents at once could race. All PDFium calls now go through the single Pdfium.sharedDispatcher, matching the iOS implementation.

Fixes #15

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Native crash (SIGILL) when two PdfReaderStates render concurrently on Android

1 participant