Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27180

Infinite loop occurs when a BitmapImage uses image smoothing and its width and height is 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Later
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: None
    • Component/s: Spark: Image
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      Steps to reproduce:
      1.Run the attached application

      Actual Results:
      The application hangs. The problem is that Image is validating with a width and height of 0. This causes an infinite loop in the resample() call inside the updateDisplayList() method of BitmapImage. This only happens inside ViewNavigator because the component forces a validation during initialization. At the time the validation is run, the View has yet to be sized, so a width and height of 0 is sent to the bitmap.

      This is something that can occur on Desktop as well if for some reason the image's width or height is 0.

      Expected Results:
      The application should show an image

      Workaround (if any):

        Attachments

          Activity

            People

            • Assignee:
              adobejira Adobe JIRA
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: