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

Infinite loop loading images in HorizontalList or scrolling down in List

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: Layout
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile & run:
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      width="800" height="800"
      >
      <fx:Script>
      <![CDATA[
      import spark.primitives.BitmapImage;
      import spark.components.Label;
      ]]
      >
      </fx:Script>

      <fx:Declarations>
      <!-- Skaha settings objects that defines what test file we are currently working on and the favorite properties -->
      <fx:Object id="skahaSettings" testDir="gumbo/components/Image/properties/" testFileName="Image_properties.mxml" />

      <s:ArrayCollection id="propertiesToInspect">
      <fx:Object propName="width" />
      <fx:Object propName="height" />
      <fx:Object propName="x" />
      <fx:Object propName="y" />
      <fx:Object propName="enabled" />
      <fx:Object propName="source" enum="

      {['http://flexqa01.labs.corp.adobe.com/images/cf.jpg',null]}

      " />
      <fx:Object propName="scaleMode" enum="

      {['letterbox','stretch']}

      " />
      <fx:Object propName="horizontalAlign" enum="

      {['left','right','center']}

      " />
      <fx:Object propName="verticalAlign" enum="

      {['top','bottom','middle']}

      " />
      </s:ArrayCollection>

      <s:ArrayList id="products">
      <fx:Object labelDisplay="ColdFusion" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/cf.jpg"/>
      <fx:Object labelDisplay="Dreamweaver" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/dw.jpg"/>
      <fx:Object labelDisplay="Flash Builder" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/fb.jpg"/>
      <fx:Object labelDisplay="Flower2" imageDisplay="http://helpexamples.com/flash/images/image2.jpg"/>
      <fx:Object labelDisplay="Flash Catalst" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/fc.jpg"/>
      <fx:Object labelDisplay="Flash Professional" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/fl.jpg"/>
      <fx:Object labelDisplay="Flex SDK" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/fx.jpg"/>
      <fx:Object labelDisplay="Photoshop" imageDisplay="http://flexqa01.labs.corp.adobe.com/images/ps.jpg"/>
      <!--fx:Object labelDisplay="Flower1" imageDisplay="http://helpexamples.com/flash/images/image1.jpg"/>
      <fx:Object labelDisplay="Flower3" imageDisplay="http://helpexamples.com/flash/images/image3.jpg"/-->
      </s:ArrayList>

      </fx:Declarations>

      <s:List
      width="400" height="200" itemRenderer="ImageRenderer" dataProvider="

      {products}

      ">

      <fx:Script>
      <![CDATA[
      public function irf(item:Object):ClassFactory

      { return new ClassFactory(ImageRenderer); }

      ]]
      >
      </fx:Script>

      <s:layout>
      <s:HorizontalLayout gap="5" paddingBottom="5" paddingTop="5" variableColumnWidth="true" />
      </s:layout>

      </s:List>

      </s:Application>

      Actual Results:
      Player hangs.
      Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
      atmx.managers::LayoutManager/validateClient()
      atspark.layouts::HorizontalLayout/updateDisplayListVirtual()
      atspark.layouts::HorizontalLayout/updateDisplayList()
      atspark.components.supportClasses::GroupBase/updateDisplayList()
      atspark.components::DataGroup/updateDisplayList()
      atmx.core::UIComponent/validateDisplayList()
      atmx.managers::LayoutManager/validateDisplayList()
      atmx.managers::LayoutManager/doPhasedInstantiation()
      atmx.managers::LayoutManager/doPhasedInstantiationCallback()

      Expected Results:
      No hang.

      Workaround (if any):

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: