Skip to main content
Participant
Apr 7, 2009 12:55 PM UTC
Answered

System crash when use underline

Hi.

It seems to have bug in the TextLine creation when use underline...

Look:

for(var iIndex:int = 0; iIndex<10000; iIndex++)

{

     var strTest: String = '<flow:TextFlow paddingTop="3" paddingLeft="3" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008"><flow:p><flow:span textDecoration="underline">a</flow:span><flow:span></flow:span></flow:p></flow:TextFlow>';

     var oTextFlow: TextFlow = TextFilter.importToFlow(strTest, TextFilter.TEXT_LAYOUT_FORMAT);

     var arTextLine: Array = new Array();

     var oTextLineHandler: Function = function(oTextLine: TextLine) : void { arTextLine.push(oTextLine); };

     TextLineFactory.createTextLinesFromTextFlow(oTextLineHandler, oTextFlow,

new Rectangle(0, 0, 200, 200));

}

When u try this, AIR crash. (Flex Builder 3).

Ths code is just an exemple of the bug...I know its useless

Its very strange that if u do not create the TextFlow in the loop, it's ok...

var strTest: String = '<flow:TextFlow paddingTop="3" paddingLeft="3" whiteSpaceCollapse="preserve" xmlns:flow="http://ns.adobe.com/textLayout/2008"><flow:p><flow:span textDecoration="underline">a</flow:span><flow:span></flow:span></flow:p></flow:TextFlow>';

var oTextFlow: TextFlow = TextFilter.importToFlow(strTest, TextFilter.TEXT_LAYOUT_FORMAT);

for(var iIndex:int = 0; iIndex<10000; iIndex++)

{

     var arTextLine: Array = new Array();

     var oTextLineHandler: Function = function(oTextLine: TextLine) : void { arTextLine.push(oTextLine); };

     TextLineFactory.createTextLinesFromTextFlow(oTextLineHandler, oTextFlow,

new Rectangle(0, 0, 200, 200));

}

What can i do ? just wait for a beta release or is there a synchro process i miss ?

PS: sorry for my english...

This topic is closed to new replies. Start a new post to keep the conversation going.
brian_thomas2
brian_thomas2Correct answer
Adobe Employee
Apr 8, 2009 4:49 PM UTC

Interesting that the problem is AIR specific. I'll get an AIR project running to see if I can reproduce.

Can you try testing this on a more recent build of TLF? The new SWC is available here: http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/libs/

5 replies

brian_thomas2
Adobe Employee
Adobe Employee
Apr 8, 2009 4:49 AM UTC

I am unable to reproduce this on the latest builds of TLF. What build are you seeing this error on? Did you get it from the Labs download page or from the Flex Gumbo repository? Are you only able to reproduce this in AIR, or have you tried it in browser plugin/standalone flash player as well? Any details you can give would be very helpful, so I can try to track down the bug.

Translate
david128Author
Participant
Apr 8, 2009 9:41 AM UTC

More investigation:

First of all, i'm impressed for the reactive community ! Soo thx to all

I tried multiple project

-Gumbo (4.0.0.4021) with Web project (running in iexplorer) -> WORK WITHOUT CRASH

-Gumbo (same) with Air project -> CRASH

-Flex 3 (3.2) with TLF (november 2008 - 111808) with Web project (running in iexplorer) -> WORK WITHOUT CRASH

-Flex 3 (3.2) with TLF (november 2008 - 111808) with Air project -> CRASH

So it's seems to be a problem with AIR (Windows system...I'll try with linux later...I must installed it).

Translate
brian_thomas2
Adobe Employee
brian_thomas2Correct answer
Adobe Employee
Apr 8, 2009 4:49 PM UTC

Interesting that the problem is AIR specific. I'll get an AIR project running to see if I can reproduce.

Can you try testing this on a more recent build of TLF? The new SWC is available here: http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/libs/

Translate
Adobe Employee
Apr 7, 2009 10:31 PM UTC

We will look into this problem. Thanks for reporting it!

Translate