Skip to main content
Participant
April 7, 2009
Answered

System crash when use underline

  • April 7, 2009
  • 2 replies
  • 1461 views

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 has been closed for replies.
Correct answer brian_thomas2

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/

2 replies

brian_thomas2
Adobe Employee
Adobe Employee
April 8, 2009

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.

david128Author
Participant
April 8, 2009

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).

brian_thomas2
Adobe Employee
brian_thomas2Correct answer
Adobe Employee
April 8, 2009

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/

Adobe Employee
April 7, 2009

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