danfickle / danfickle/openhtmltopdf

Batch processing stuck in openhtmltopdf(PdfBoxFontResolver.java)

Open
#959 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Batch processing stuck after this log "Loading font({}) from {} supplier now" . which is under public boolean realizeFont() of class PdfBoxFontResolver.java.

below is the code for building PdfRendererBuilder().

new PdfRendererBuilder()//
.useProtocolsStreamImplementation(streamFactory, "classpath") //
.useFastMode() //
.useDefaultPageSize(paperSize.getWidth(), paperSize.getHeight(), BaseRendererBuilder.PageSizeUnits.MM)
.useSVGDrawer(new BatikSvgDrawerWrapper()) //
.withW3cDocument(w3cDoc, "classpath:/") //
.toStream(out) //
.useReplacementText("\uFFFD") //
.usePageSupplier(pageSupplier)
.run();

THIS IS HEPPENING IN MULTITHREADED ENVIRONMENT.

while interating with openhtmltopdf(version 1.0.10), towards the END of the batch processing, the job gets stuck under openhtmltopdf.load(PdfBoxFontResolver.java), this issue is not document specific, CPU utilization is around 50%, so that's also not an issue, can you let me know where should I investigate the issue from?

Can this be concurrency issue? there is no error msg or exception, is pdfBox threadsafe?

@danfickle can you please have a look?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.