Thursday, 23 February 2012

A script has executed for longer than the default timeout period of 15 seconds

A script has executed for longer than the default timeout period of 15 seconds.

Problem:

In the following screen when the user double clicks the data grid, it should open a new mxml. But it hangs there it self throwing an error.  


When loading a new screen, the application hangs for more than 15 seconds and throws the following error:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::updateCompositionShapes()[C:\Vellum\branches\v1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2755]
at flashx.textLayout.compose::StandardFlowComposer/updateCompositionShapes()[C:\Vellum\branches\v1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:618]
at flashx.textLayout.compose::StandardFlowComposer/updateToController()[C:\Vellum\branches\v1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:560]
at flashx.textLayout.compose::StandardFlowComposer/updateAllControllers()[C:\Vellum\branches\v1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\compose\StandardFlowComposer.as:519]
at flashx.textLayout.container::TextContainerManager/updateContainer()[C:\Vellum\branches\v1\1.1\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1297]
at spark.components::RichEditableText/updateDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\RichEditableText.as:2601]
at mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8709]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:663]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

Solution:


This issue may be caused if there is a Text Area which is Flex Spark component.  The issue can be resolved by simply changing the <s:TextArea> component to <mx:TextArea> component.

This will be the simple way to overcome the issue.

Note: This issue may be raised while using Flex 4.1  SDK.






Thanks for Visiting.................

No comments:

Post a Comment