ICEpdf
  1. ICEpdf
  2. PDF-770

core library is not removing temp files.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6_P01
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A customer has notice that we are not cleaning up tmp files when doing image captures.

      "I run a unit test parsing many pdf documents and generating images for all pages in the documents.
      The test leaks many files in my temp folder:
      - ICEpdfTempFile*.tmp (only some)
      - imageio*.tmp (many files)
      The files are never deleted (not even when the test is done)"

      Caching can be disabled with the system properties.
      System.setProperty("org.icepdf.core.streamcache.enabled", "false");
      ImageIO.setUseCache(false);"

      However we should look into the why the various files are being kept around after the jvm shuts down. We should also do an audit to insure that the imageReader is being disposed correctly, http://info.michael-simons.eu/2012/01/25/the-dangers-of-javas-imageio/

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #42116 Thu Aug 14 14:56:18 MDT 2014 patrick.corless PDF-770 added explicide calls to dispose and close imageIO objects.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: