flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Sheyanov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-26890) [TLF 2819924] Error #1009 in flashx.textLayout.container::ContainerController::updateGraphics() while setting vscrollbar to maximum
Date Thu, 22 Nov 2012 11:22:58 GMT

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

Victor Sheyanov commented on FLEX-26890:

Hi guys!
More than one year passed after the issues was reported. Recently I've found workaround for
this issue.

First, you need update you textflow by adding all new graphics elements. Than, before scrolling
down, you need to updateAllControllers();
During this updateAllControllers, exception is thrown and you catch it.


chatText.verticalScrollPosition = chatText.contentHeight - chatText.height;	

Original issues comes from ContainerController.as, line 3178, updateGraphics method.

During debugging I've sorted out, that for this line we come with  floatIndex = 1. After that
we do floatIndex--, and floatIndex is equals to 0, and after that we are trying to do floatInfo=_composedFloats[-1];
and of course we get floatInfo == null, and on the last line we do null.graphics and we get
an exception.

while (containerListIndex == -1 && floatIndex > 0)
	floatInfo = _composedFloats[floatIndex - 1];
	containerListIndex = _floatsInContainer.indexOf(floatInfo.graphic);
> [TLF 2819924] Error #1009 in flashx.textLayout.container::ContainerController::updateGraphics()
while setting vscrollbar to maximum
> -----------------------------------------------------------------------------------------------------------------------------------
>                 Key: FLEX-26890
>                 URL: https://issues.apache.org/jira/browse/FLEX-26890
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextArea
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Browser: Internet Explorer 8.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
> Steps to reproduce:
>  I found this issue while trying to do a test case for another issue. But the origin
of the problem seems to be the same. 
> Actual Results:
>  While clicking on Tab 2 and on the button "Click me" several times, the application
throws a TypeError :
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateGraphics()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:3180]
> 	at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateCompositionShapes()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:3078]
> 	at flashx.textLayout.compose::StandardFlowComposer/updateCompositionShapes()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:616]
> 	at flashx.textLayout.compose::StandardFlowComposer/updateToController()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:559]
> 	at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:517]
> 	at flashx.textLayout.container::TextContainerManager/updateContainer()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1343]
> 	at spark.components::RichEditableText/updateDisplayList()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\RichEditableText.as:2886]
> 	at mx.core::UIComponent/validateDisplayList()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8951]
> 	at mx.managers::LayoutManager/validateDisplayList()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
> 	at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]
> 	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
> Expected Results:
>  I expect the VScrollBar to be set at its maximum value when TextArea is updated. 
> Workaround (if any):
>  Not found yet...
> At the beginning, I was trying to isolate this runtime TypeError : http://paste.balbinus.org/788
which is due to my updateVScroll() too.
> Sorry if this test case is not perfect :x
> Note : This bug doesn't happen in the Flex 4.1 SDK, I'm using the Flex

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

View raw message