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

An addChild of a custom component doesn't show/corrupt the display if a '\n' is written on a Label inside a busy loop (enter_frame or timer)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • Adobe Flex SDK 3.2 (Release)
    • None
    • MXML Components
    • None
    • Affected OS(s): Windows
      Affected OS(s):
      Browser: Other (specify version)
      Language Found: English

    Description

      See code below to reproduce the bug

      Steps to reproduce:
      1. add a busy loop: enter_frame or timer with 1 ms resolution
      2. inside the loop set the text property of a Label or TextArea to '\n'
      3. outside the loop, for example in a click event, addChild of a custom component extending Canvas (or any other container) and including anything

      Actual Results:
      a click on the application area doesn't show anything. If resized (when running on flash player) the custom component appears, but the display is corrupted and inconsistent

      Expected Results:
      the custom component is added and showed

      Workaround (if any):
      use '\r' instead of '\n'

      Comments:
      This seems a race condition. If timer resolution is set to 2 ms, the bug appears less frequently. If set to 3 ms the bug disappears (all this on a recent notebook)
      I've found this bug both on flash player 9 and 10, and on air 1.5
      I suspect that this bug appears also using PopupManager.

      1. begin code: sampleApp.mxml
        <?xml version="1.0" encoding="utf-8"?>
        <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        applicationComplete="f()"
        >
        <mx:Script>
        <![CDATA[
        private function f():void
        Unknown macro: {// var t}

        ]]
        >
        </mx:Script>
        <mx:Label id="test"/>
        </mx:Application>

      2. end sampleApp.mxml
      1. begin code: MyComponent.mxml
        <?xml version="1.0" encoding="utf-8"?>
        <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Button/>
        </mx:Canvas>
      2. end MyComponent.mxml

      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: