Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25D0DD4A1 for ; Wed, 12 Dec 2012 18:04:21 +0000 (UTC) Received: (qmail 31618 invoked by uid 500); 12 Dec 2012 18:04:20 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 31584 invoked by uid 500); 12 Dec 2012 18:04:20 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 31575 invoked by uid 99); 12 Dec 2012 18:04:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 18:04:20 +0000 Date: Wed, 12 Dec 2012 18:04:20 +0000 (UTC) From: "Carol Frampton (JIRA)" To: flex-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33295) Flash player will go into an infinite loop on certain cases of trying to wrap text. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33295?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1353= 0159#comment-13530159 ]=20 Carol Frampton commented on FLEX-33295: --------------------------------------- In that case Alex is right. This is a well-known problem and you'll find s= everal existing issues in the bug base for similar cases. I ran your test = program and didn't see scroll bars so I assumed it was a different issue. =20 > Flash player will go into an infinite loop on certain cases of trying to = wrap text. > -------------------------------------------------------------------------= ---------- > > Key: FLEX-33295 > URL: https://issues.apache.org/jira/browse/FLEX-33295 > Project: Apache Flex > Issue Type: Bug > Components: Spark: TextArea > Affects Versions: Adobe Flex SDK 4.6 (Release) > Environment: Win 7x64, Win 8x64 > Flash Player 11.4, Flash Player 11.5 > Mac OS works fine. > Reporter: Tyler Hansen > Labels: textarea > > Setting text on a spark textarea depending on how the word wrap lays, wil= l crash flashplayer on windows only with this error: > Error: Error #1502: A script has executed for longer than the default tim= eout period of 15 seconds. > =09at flashx.textLayout.elements::FlowElement/getAbsoluteStart()[C:\Vellu= m\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\el= ements\FlowElement.as:888] > =09at flashx.textLayout.compose::TextFlowLine/get location()[C:\Vellum\br= anches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compos= e\TextFlowLine.as:351] > =09at flashx.textLayout.compose::TextFlowLine/get spaceBefore()[C:\Vellum= \branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\com= pose\TextFlowLine.as:504] > =09at flashx.textLayout.compose::BaseCompose/fitLineToParcel()[C:\Vellum\= branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\comp= ose\BaseCompose.as:1613] > =09at flashx.textLayout.compose::ComposeState/composeNextLine()[C:\Vellum= \branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\com= pose\ComposeState.as:399] > =09at flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoL= ines()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flash= x\textLayout\compose\BaseCompose.as:791] > =09at flashx.textLayout.compose::BaseCompose/composeParagraphElement()[C:= \Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLay= out\compose\BaseCompose.as:688] > =09at flashx.textLayout.compose::ComposeState/composeParagraphElement()[C= :\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLa= yout\compose\ComposeState.as:316] > =09at flashx.textLayout.compose::BaseCompose/composeBlockElement()[C:\Vel= lum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\= compose\BaseCompose.as:358] > =09at flashx.textLayout.compose::BaseCompose/composeInternal()[C:\Vellum\= branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\comp= ose\BaseCompose.as:673] > =09at flashx.textLayout.compose::ComposeState/composeInternal()[C:\Vellum= \branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\com= pose\ComposeState.as:143] > =09at flashx.textLayout.compose::BaseCompose/composeTextFlow()[C:\Vellum\= branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\comp= ose\BaseCompose.as:458] > =09at flashx.textLayout.compose::ComposeState/composeTextFlow()[C:\Vellum= \branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\com= pose\ComposeState.as:106] > =09at flashx.textLayout.compose::StandardFlowComposer/http://ns.adobe.com= /textLayout/internal/2008::callTheComposer()[C:\Vellum\branches\v2\2.0\dev\= output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComp= oser.as:676] > =09at flashx.textLayout.compose::StandardFlowComposer/internalCompose()[C= :\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLa= yout\compose\StandardFlowComposer.as:760] > =09at flashx.textLayout.compose::StandardFlowComposer/updateToController(= )[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\tex= tLayout\compose\StandardFlowComposer.as:556] > =09at flashx.textLayout.compose::StandardFlowComposer/updateAllController= s()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\t= extLayout\compose\StandardFlowComposer.as:517] > =09at flashx.textLayout.container::TextContainerManager/updateContainer()= [C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\text= Layout\container\TextContainerManager.as:1343] > =09at spark.components::RichEditableText/updateDisplayList()[E:\dev\4.y\f= rameworks\projects\spark\src\spark\components\RichEditableText.as:2974] > =09at mx.core::UIComponent/validateDisplayList()[E:\dev\4.y\frameworks\pr= ojects\framework\src\mx\core\UIComponent.as:8999] > =09at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.y\framewo= rks\projects\framework\src\mx\managers\LayoutManager.as:736] > =09at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frame= works\projects\framework\src\mx\managers\LayoutManager.as:819] > =09at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4= .y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180] > I have been able to recreate this with a real use client case, as well as= some lorem ipsum text of the same length(but not every time since the lore= m ipsum text is randomly generated). Removing the first two words in the t= ext fixes the issue, however still remains when removing the same amount of= characters at the end of the text instead. This leads me to believe this = is a random text wrapping issue. > We tried testing on a mac and everything ran as expected, it appears to b= e a windows only issue. > Here is some simple code to reproduce the issue: > > =09=09=09 xmlns:s=3D"library://ns.adobe.com/flex/spark"=20 > =09=09=09 xmlns:mx=3D"library://ns.adobe.com/flex/mx" minWidth=3D"955" = minHeight=3D"600" creationComplete=3D"application1_creationCompleteHandler(= event)"> > =09 > =09=09 > =09 > =09 > =09 > =09=09 =09=09=09import mx.events.FlexEvent; > =09=09=09 > =09=09=09[Bindable]private var testText:String =3D ''; > =09=09=09 > =09=09=09 > =09=09=09 > =09=09=09 > =09=09=09 > =09=09=09protected function application1_creationCompleteHandler(event:Fl= exEvent):void > =09=09=09{ > =09=09=09=09testText =3D "The learning tasks and activities are aligned w= ith the instructional outcomes and are designed to challenge student thinki= ng, resulting in active intellectual engagement by students and teacher sca= ffolding. The pacing of the lesson is appropriate providing most students t= he time needed to be intellectually engaged.Ms. Pruden begins the math and = Reading lesson by strategically placing her chair between two rows of desks= and methodically assisting one student then another. She first assists a s= tudent to her left (Artice) on simple addition, such as 1 + 4 =3D 5; then s= he turns to her right to work with another student (Fode) on reading the nu= mbers of his address. She methodically moves her chair down the middle of t= he two rows to work with the other remaining students. One student (Dexter)= works independently on a calendar; he places the word 'cloudy' on today's = date: October 25. He is getting his assignments from his individual basket = of daily tasks. Ms. Pruden then worked with Aujana who isworking on a ruber= puzzle of the alphabet. She asks her t repeat after her as she points to e= ach letter and names each letter of the alphabet. Ms. Pruden worked back an= d forth with Fode, Artice and Auana. Ms. Gordon, her teacher assistant, wor= ked with Dejuan as he counts dots that are pasted on a paper dinosaur. Afte= r 45 minutes, Ms. Pruden stops and directs all of the students to join her = at the semi-circle table to work on consonant sound for the letter 'C.' The= teacher passes out a picture of a cat, and emphasizes the 'KK' sound as sh= e hands the cat to each student. Then, sheallows time for students to color= their picture. Then she passes out a picture of cupcake, and follows the = same procedure." > =09=09=09} > =09=09=09 > =09=09]]> > =09 > =09 > =09 > =09 > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira