flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow
Date Wed, 18 Sep 2013 15:41:51 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13770891#comment-13770891
] 

Alex Harui commented on FLEX-33409:
-----------------------------------

Well, you can run the profiler to see what is going on, but I'm pretty sure the problem is
that, in order to workaround this player bug, we have to re-render every line in the textflow
starting from the first one that has a hyphen.  Fundamentally, there is a player bug and I
am just trying to workaround it.

You can try some test cases of an equivalently large TextFlow without any hyphens in it and
see if performance is better, and also try without hyphens with the ContainerController flag
set to false and see if the old code paths perform better.

You can try bugging the FlashPlayer team to fix the bugs I filed in their next release.  I
think the next level of a workaround is to virtualize the textflow and I'd rather not spend
the time on it unless I see lots more people running into this problem.  I'm happy to try
to answer questions if you want to try it yourself.  Basically, the assumption is that a VERY
large textflow doesn't fit on the screen so you'd have to virtualize by only trying to render
a subset of the original TextFlow starting with the first visible line.

-Alex 
                
> TLF crashes when hypens are shown in a multi span textFlow
> ----------------------------------------------------------
>
>                 Key: FLEX-33409
>                 URL: https://issues.apache.org/jira/browse/FLEX-33409
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Adobe Flex SDK 4.6 (Release)
>         Environment: TLF editing
>            Reporter: Woodwing Developer
>            Assignee: Alex Harui
>            Priority: Blocker
>              Labels: TLF, crash, editing, hyphen, span, textflow
>         Attachments: BaseCompose.as, ComposeState.as, ContainerController.as, ExampleDebug.fxp,
FLEX33409.patch, FlowComposerBase.as, FlowLeafElement.as, ParagraphElement.as, Test.fxp, textLayout.swc
>
>
> When soft hyphens are used and shown, in a textFlow with 2 or more spans, TLF crashes
when typing.
> Import the underlying text flow xml. Resize the text area until the hyphen is visible.
Then start typing AFTER the hypened word, also pressing the enter key. TLF crashes.
> Sample textFLow (if the soft hyphen is not show, insert a new one in the appropriate
word):
>   <TextFlow color="#000000" fontSize="12" lineHeight="14" paddingBottom="0" paddingLeft="10"
paddingRight="10" paddingTop="0" whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008">
>     <p>
>       <span backgroundColor="#ffffff" textDecoration="underline">First Span</span>
>       <span backgroundColor="#ffffff" textDecoration="none"> Second span. This
text has a hypen in the next long word LongWord­WithAHyphen. Make sure the hypen is shown!
Then start typing and pressing enter till TLF crashes (should happen fast enough)</span>
>   </p>
>   </TextFlow>
> It seems that the textLine is damaged but the text engine fails to recompose the line
properly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message