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

        Hide
        Patrick Corless added a comment -

        I've done an audit on the imaging code and updated the reader and imageInputStreams to correctly dispose and class respectively.

        On my windows machine I'm not seeing any extra files being left behind after running QA run or using the viewer. Perhaps the client can gives us more information on how they are using the api.

        Show
        Patrick Corless added a comment - I've done an audit on the imaging code and updated the reader and imageInputStreams to correctly dispose and class respectively. On my windows machine I'm not seeing any extra files being left behind after running QA run or using the viewer. Perhaps the client can gives us more information on how they are using the api.
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: