Closed GoogleCodeExporter closed 9 years ago
I'm guessing the problem is the FileOutputStream on line 342 of FileImageSink.
It's being created in the try block but never closed. I believe this will mean
that the stream will be left open until it's garbage collected (in my case,
when I shut down Tomcat).
Original comment by Lee.Theo...@gmail.com
on 27 Jul 2011 at 3:38
Thank you for reporting this issue.
The issue has been reproduced. The problem does indeed appear to be caused by
the `FileOutputStream` not being closed after the thumbnail is written.
I find this to be a fairly serious issue and expect to get a fix out within 48
hours.
Once again, thank you for spending the time to investigate the issue, and sorry
for the inconvenience.
Original comment by coobird...@gmail.com
on 28 Jul 2011 at 3:18
Original comment by coobird...@gmail.com
on 28 Jul 2011 at 3:19
The issue has been resolved in Thumbnailator 0.3.8.
---------
A follow up on `comment 1`:
> I believe this will mean that the stream will be left open until it's garbage collected (in my case, when I shut down Tomcat).
I can confirm that under Thumbnailator 0.3.7, the thumbnail image file does
appear to get closed when garbage collection takes place.
In order to verify this, I tried making a thumbnail using `toFile`, and
directly afterward called `System.gc` and tried opening the thumbnail file from
another application. The file opened successfully.
Original comment by coobird...@gmail.com
on 30 Jul 2011 at 5:04
Original issue reported on code.google.com by
Lee.Theo...@gmail.com
on 27 Jul 2011 at 3:28