-
Notifications
You must be signed in to change notification settings - Fork 186
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
PDF itest fails in native mode when building the font cache #670
Comments
I saw that in the past but unable to reproduce reliably so its probably related to the font set-up of the system that runs the build (i.e. never seen that happening on CI) |
Happens for me with the master branch too. You're right though, on CI builds it seems ok (not sure how). Some related issues: https://issues.apache.org/jira/browse/PDFBOX-4548 |
If one could reproduce this issue, I would be curious to see whether this workaround would help ? |
From what I can see, the only reason it passes on the CI builds is because the native build is done in Docker and the Using The real problem is that there is way too much stuff being done via static initializers (including in the PDF component. See class |
create a PR to fix this issue here |
I tried to reproduce this issue locally by deleting the font cache to no avail. I was able to rebuild the font cache in quarkus jvm mode, hosted native mode and docker native mode, so the condition to reproduce this issue might be finer than that. I've tried the fix from @ffang locally, and still no issue 👍. @jamesnetherton Do you still experience the issue when running pdf integration-tests from master ? Side note, I see a null pointer exception when restoring the font=Courier option in PdfResource but I think it could be handled in another quarkus issue that may be solved when upgrading to 3.1.0 where [CAMEL-14452|https://issues.apache.org/jira/browse/CAMEL-14452] is fixed. |
Yes, it seems to work now. Thanks @ffang. Would be good to reinstate the |
ok, I propose to close this issue and open another one to restore the test coverage for the font option in 3.1.0 then. Well done guys :) |
@jamesnetherton @aldettinger Thanks guys! |
Having worked around CAMEL-14452, I now see the following when the PDF test is run in native mode with Camel 3.1.0. I think PDFBox tries to do some local font caching, which may be the cause of this.
The text was updated successfully, but these errors were encountered: