-
Notifications
You must be signed in to change notification settings - Fork 412
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
temporary font files are not always be purged in multi threaded server environments like wildfly #337
base: master
Are you sure you want to change the base?
Conversation
…r environments like wildfly
hello , |
This is happening on Windows using JR library 6.21.4 (but not Mac or Linux). When a report is created, several temporary font files are created in the temp folder like |
- Unfortunately, we can't use the latest version (currently 6.21.4) because version 6.13 and later doesn't delete the "jr-fontXXXXXXXXXXXXXX.ttf" temporary font files in the temp folder on exit on Windows. See Jaspersoft/jasperreports#337 - If we ever do use a later version we should only need to update jasperreports-x.x.x.jar and jasperreports-fonts-x.x.x.jar - Note that we now use openpdf-x.x.x.jar rather than itext-x.x.x.jar
You mention files remaining after Java process finishes. How exactly is the process finishing? Does it get killed? Does the JVM crash? Or does it finish properly? |
It finishes properly. This is reproducible in unit tests and in our application. What happens is that font files that are created in However, when Java calls its method to delete files on exit, these ones are locked by JR and cannot be deleted. This is only on Windows (11) not Mac or Linux. |
You mean the unit tests you have in your own application project? If you have a test case that consistently reproduces the issue, it would help a lot. |
I mean our unit tests.
Do you have any advice on how to create a test case? Our app is Eclipse based and uses the JR library and other libs to create reports from jrxml files so it's not easy to extrapolate a simple stand-alone test. |
Thousands of thousands of temporary font files can be remain in temp folder on a long running application when multiple threads using JasperReports.
See also https://community.jaspersoft.com/jasperreports-library/issues/13526