Re: [jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-08-19 Thread Alex Harui
Justin,

If you're done investigating, assign it to me and I'll take a look later
this week.

-Alex

On 8/19/13 4:20 PM, "Justin Mclean (JIRA)"  wrote:

>
>[ 
>https://issues.apache.org/jira/browse/FLEX-33409?page=com.atlassian.jira.p
>lugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744490#com
>ment-13744490 ] 
>
>Justin Mclean commented on FLEX-33409:
>--
>
>No sorry it's not been resolved yet. I took a look at it a while back but
>was unable to find a solution to the issue.
>
>> 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
>>Priority: Blocker
>>  Labels: TLF, crash, editing, hyphen, span, textflow
>>
>> 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):
>>   >paddingBottom="0" paddingLeft="10" paddingRight="10" paddingTop="0"
>>whiteSpaceCollapse="preserve" version="2.0.0"
>>xmlns="http://ns.adobe.com/textLayout/2008";>
>> 
>>   First
>>Span
>>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)
>>   
>>   
>> 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



[jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-02-22 Thread Carol Frampton (JIRA)

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

Carol Frampton commented on FLEX-33409:
---

The textFlow above can be replaced with this simpler one.

private const textFLowXML:XML = http://ns.adobe.com/textLayout/2008";>
 Second span. This text has a hypen in the next 
long word long word LongWord­WithAHyphen. Make sure the hypen is shown and 
there is a 3rd line! If you can see it, then start typing here ->
;

Using the above code, click at the end of the displayed text to insert text, 
type a "1", and you will see the text displayed already looks incorrect.  Then 
type a left arrow which demonstrates things are messed  up internally.

Error: Error #2160: The TextLine is INVALID and cannot be used to access the 
current state of the TextBlock.
at flash.text.engine::TextBlock/findPreviousAtomBoundary()
at 
flashx.textLayout.elements::ParagraphElement/findPreviousAtomBoundary()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/elements/ParagraphElement.as:480]
at 
flashx.textLayout.utils::NavigationUtil$/previousAtomHelper()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/utils/NavigationUtil.as:70]
at 
flashx.textLayout.utils::NavigationUtil$/doIncrement()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/utils/NavigationUtil.as:58]
at 
flashx.textLayout.utils::NavigationUtil$/previousAtomPosition()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/utils/NavigationUtil.as:81]
at 
flashx.textLayout.utils::NavigationUtil$/moveBackwardHelper()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/utils/NavigationUtil.as:229]
at 
flashx.textLayout.utils::NavigationUtil$/previousCharacter()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/utils/NavigationUtil.as:292]
at 
flashx.textLayout.edit::SelectionManager/handleLeftArrow()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/edit/SelectionManager.as:1564]
at 
flashx.textLayout.edit::SelectionManager/handleKeyEvent()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/edit/SelectionManager.as:1731]
at 
flashx.textLayout.edit::SelectionManager/keyDownHandler()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/edit/SelectionManager.as:1794]
at 
flashx.textLayout.edit::EditManager/keyDownHandler()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/edit/EditManager.as:288]
at 
flashx.textLayout.container::ContainerController/keyDownHandler()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/container/ContainerController.as:2529]
at 
flashx.textLayout.container::TextContainerManager/keyDownHandler()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/container/TextContainerManager.as:1889]
at 
spark.components.supportClasses::RichEditableTextContainerManager/keyDownHandler()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/components/supportClasses/RichEditableTextContainerManager.as:665]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/core/UIComponent.as:13160]
at 
mx.managers::SystemManager/keyDownHandler()[/Users/cframpto/dev/flex/sdk/branches/develop/frameworks/projects/framework/src/mx/managers/SystemManager.as:2889]

If you start with an empty TextArea and paste this same text in it does not 
hyphenate and wraps LongWord­WithAHyphen to the next line.


> 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
>Priority: Blocker
>  Labels: TLF, crash, editing, hyphen, span, textflow
>
> When soft hyphens are used and shown, in a textFlow with 2 o

[jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-02-21 Thread Woodwing Developer (JIRA)

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

Woodwing Developer commented on FLEX-33409:
---

Hi Carol.

I made a simple application where the issue is always reproducible. Every time 
I start typing at the end of the text, the text area crashes internally and the 
lines get corrupt. Occasionally I get a crash that comes in the debugger. Here 
is the stack trace:

--- START code ---
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at 
flashx.textLayout.compose::FlowComposerBase/addLine()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/FlowComposerBase.as:471]
at 
flashx.textLayout.compose::ComposeState/endLine()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/ComposeState.as:313]
at 
flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/BaseCompose.as:970]
at 
flashx.textLayout.compose::BaseCompose/composeParagraphElement()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/BaseCompose.as:754]
at 
flashx.textLayout.compose::ComposeState/composeParagraphElement()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/ComposeState.as:324]
at 
flashx.textLayout.compose::BaseCompose/composeBlockElement()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/textLayout/3.0.33/src/flashx/textLayout/compose/BaseCompose.as:391]
--- END code ---

Note that this time I get a Null pointer reference error, but most of the time 
in my other project I get an "Invalid parameter" error. The result is always 
the same, the text lines are misplaced and editing is no longer possible. 
Hereunder you have the code for the test application that reproduces the 
problem as I mentioned.

--- START code ---

http://ns.adobe.com/mxml/2009"; 
xmlns:s="library://ns.adobe.com/flex/spark" 
xmlns:mx="library://ns.adobe.com/flex/mx" 
creationComplete="onCreationComplete(event)"
   width="450" height="400">









--- END code---

> 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
>Priority: Blocker
>  Labels: TLF, crash, editing, hyphen, span, textflow
>
> 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):
>paddingLeft="10" paddingRight="10" paddingTop="0" 
> whiteSpaceCollapse="preserve" version="2.0.0" 
> xmlns="http://ns.adobe.com/textLayout/2008";>
> 
>   First 
> Span
>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)
>   
>   
> 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


[jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-02-21 Thread Carol Frampton (JIRA)

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

Carol Frampton commented on FLEX-33409:
---

If you'd like someone to look at this please attach a small mxml file which 
demonstrates the problem.  I realize you attached a snippet but please make it 
easy for us to reproduce the problem.

> 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
>Priority: Blocker
>  Labels: TLF, crash, editing, hyphen, span, textflow
>
> 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):
>paddingLeft="10" paddingRight="10" paddingTop="0" 
> whiteSpaceCollapse="preserve" version="2.0.0" 
> xmlns="http://ns.adobe.com/textLayout/2008";>
> 
>   First 
> Span
>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)
>   
>   
> 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


Re: [jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-02-21 Thread Pepe
hello

What exactly do you mean the "crash"??

You mean a runtime error? Or Application is gone?
I have a issue which an air application (exe) crashes. I mean the exe
disappears from task manager.


thanks

Shigeru Nakagaki


2013/2/21 Woodwing Developer (JIRA) :
>
> [ 
> https://issues.apache.org/jira/browse/FLEX-33409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583172#comment-13583172
>  ]
>
> Woodwing Developer commented on FLEX-33409:
> ---
>
> Hi Justin.
> Yes, I've installed the latest flex SDK en TLF (today) from the apache 
> website with the latest (2.0.2) SDK installer. The issue is still 
> reproducible.
>
>> 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
>>Priority: Blocker
>>  Labels: TLF, crash, editing, hyphen, span, textflow
>>
>> 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):
>>   > paddingLeft="10" paddingRight="10" paddingTop="0" 
>> whiteSpaceCollapse="preserve" version="2.0.0" 
>> xmlns="http://ns.adobe.com/textLayout/2008";>
>> 
>>   First 
>> Span
>>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)
>>   
>>   
>> 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


[jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-02-21 Thread Woodwing Developer (JIRA)

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

Woodwing Developer commented on FLEX-33409:
---

Hi Justin.
Yes, I've installed the latest flex SDK en TLF (today) from the apache website 
with the latest (2.0.2) SDK installer. The issue is still reproducible.

> 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
>Priority: Blocker
>  Labels: TLF, crash, editing, hyphen, span, textflow
>
> 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):
>paddingLeft="10" paddingRight="10" paddingTop="0" 
> whiteSpaceCollapse="preserve" version="2.0.0" 
> xmlns="http://ns.adobe.com/textLayout/2008";>
> 
>   First 
> Span
>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)
>   
>   
> 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


[jira] [Commented] (FLEX-33409) TLF crashes when hypens are shown in a multi span textFlow

2013-02-21 Thread Justin Mclean (JIRA)

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

Justin Mclean commented on FLEX-33409:
--

Have you tried with Apache Flex 4.9 it uses a newer version of TLF?

> 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
>Priority: Blocker
>  Labels: TLF, crash, editing, hyphen, span, textflow
>
> 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):
>paddingLeft="10" paddingRight="10" paddingTop="0" 
> whiteSpaceCollapse="preserve" version="2.0.0" 
> xmlns="http://ns.adobe.com/textLayout/2008";>
> 
>   First 
> Span
>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)
>   
>   
> 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