[#13526] - Generating multiple font files in the Tomcat temp folder

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Hi guys!

I am working on a project that was following the following JAR:
jasperreports-6.4.0.jar
jasperreports-fonts-6.0.0.jar
jasperreports-functions-6.8.0.jar

I removed these files and added the default files:
jasperreports-6.16.0.jar
jasperreports-fonts-6.16.0.jar
jasperreports-functions-6.16.0.jar

Now, when I generate a PDF report, I am creating multiple files with the .ttf extension inside Tomcat's "temp" folder, something like:

jr-font728979100838671575.ttf
jr-font1388394088188656820.ttf
jr-font2070626344255789384.ttf
jr-font2912536746518348255.ttf
jr-font4502507233541899064.ttf

It appears to be creating a file for each element of the report.

Why is this happening?

v6.16
polianomartinicontas's picture
Joined: May 23 2014 - 2:54pm
Last seen: 1 year 6 months ago

5 Comments:

#1
  • Reproducibility:N/A» Always

Good Afternoon,
We are seeing this issue as well (lots of ttf files) in the temp Tomcat folder when using 6.16. They don't ge cleared down when the Tomcat service is stopped either. Any ideas what causes this or how we can ensure the ttf files are cleared down?
Cheers
Mat

#2
  • Priority:Normal» High
  • Severity:Minor» Critical

Same for us at 6.15.0
As JR is running as part of a Spring Boot application we could not wait to clear files at shutdown as maybe some 1000 reports will be requested till shutdown.

For us this is crucial.

Cheers
Alex

#3

I've run same tests on linux and found NO jr-font*.* files at all. Seems that they are not deleted on windows only?!
Can somebody confirm this observation?

Alex

#4

Same is true for JasperStudio. A lot of jr-font8654562670586801975.ttf and jar_cache12072473203327495648.tmp files are created in Windows %tmp% folder. It seems this is done for every change/execution of a report, so the files sum up and don't ever get cleaned.

#5

I have created a Pull request for fixing this issue:
https://github.com/TIBCOSoftware/jasperreports/pull/337

Feedback
randomness