-
Notifications
You must be signed in to change notification settings - Fork 365
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
Huge amount of +~JF****.tmp files created in the /tmp folder causing system to crash #608
Comments
hi @sureshkumar-ramalingam , are you using the java2d backend? I'm not sure the pdfbox backend is calling Font.createFont. Could you provide the java code and html example that cause this issue? Thank you. |
Hi @syjer It is the pdfbox backend is calling Font.createFont. We are using a custom font file in the HTML. Thanks, |
Could you provide a little bit more information so we could try to reproduce the error? For example: the html template, the code that you are using for calling openhtmltopdf. |
hi @sureshkumar-ramalingam , are you using some svg with text in your html / or simply enabled the svg support? Line 49 in 9891184
If you could show us the java code that you are using for calling this library and a html it will be simpler for tracking this issue (if this library is the main cause). |
Seems the issue is in the svg support (as reported by @olayinkasf in comment #405 (comment)). I think I can provide a fix by handling manually a cache of temporary files with the "hash" as key, so at least for a given font, there is only one instance. On top of adding support for "File" so we can bypass this handling, I hope, in most cases. |
I got the same issue created Huge amount of +~JF****.tmp files created in the /tmp folder causing system to crash
when I look for the solution, I was navigated to the below link.
https://stackoverflow.com/questions/38783010/huge-amount-of-jf-tmp-files-in-var-cache-tomcat7-temp
Any help will be really appreciated.
The text was updated successfully, but these errors were encountered: