ICEpdf
  1. ICEpdf
  2. PDF-1152

Images fails to load on quick zoom in zoom out cycles.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.3
    • Fix Version/s: 6.2.4
    • Labels:
      None
    • Environment:
      Viewer RI

      Description

      When testing the Viewer RI it's possible to very quick zoom in/out with the ctrl key and the mouse wheel. Occassionaly an image will fail to load and won't be painted until some indeterminate amount of time passes.

      While working on a ImageReference type I decide to dig a little deeper. When a zoom in/out occurs before the previous paint thtread finishes we interrupt the old thread and start painting fresh on a new painter thread. The interrupt exception is picked up the the CacheImageReference implementation and it returns a null image value. Becuase of the cached nature the image will not be loaded again until the parent page view clears it cache. The image will eventually retrieved at later time when all the conditions line up.

        Activity

        Hide
        Patrick Corless added a comment -

        I've change the ImageReference class to now catch, log and throw the interupt exception so it publes up to the call page paint. This allows to properly flush the prevous buffer and start painting and initializing in a clean state.

        Show
        Patrick Corless added a comment - I've change the ImageReference class to now catch, log and throw the interupt exception so it publes up to the call page paint. This allows to properly flush the prevous buffer and start painting and initializing in a clean state.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: