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-35279) Apache Flex Screen freeze
Date Wed, 08 Mar 2017 17:22:38 GMT

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

Alex Harui commented on FLEX-35279:
-----------------------------------

Well, you can try setting values to null before setting them to something else, but I would
not expect it to make a difference.

The main question to establish is whether the hierarchical data structure is complex or not,
or if other work is being done at that moment in time and the expanding of the data structure
is just the unlucky one.  For example, if you always are 10th in line to get on the subway,
there is a chance that you will occasionally have to wait for the next train if the 9 people
occasionally take too long to get on the train.

But usually, large data structures are expensive to process.  And if that's the case, it doesn't
really matter what you do beforehand, because at some point, if you call expandAll, it will
have to visit every node in the hierarchy.  And if there are enough nodes and enough work
needs to be done on each node, you are going to run out of time.

Pseudo-threading as a way to do large chunks of work in snippets, so you never hog resources
for too long.  It takes longer to get done, but it is the polite way of sharing.

You can use getTimer() to see how many milliseconds it takes for expandAll to return.  If
it is in the 20 or 30 second range, you are likely to get a 60 second timeout when the system
is busy.



> Apache Flex Screen freeze
> -------------------------
>
>                 Key: FLEX-35279
>                 URL: https://issues.apache.org/jira/browse/FLEX-35279
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Apache Flex 4.15.0
>         Environment: IE, Firefox, and Chrome Browsers
>            Reporter: Scott Capilouto
>            Priority: Critical
>
> We have an application where we are seeing intermittently screen freezes with the following
error. Apache Flex appears to freeze for a minute to a minute and half before resuming.
> Would you happen to know what might be causing this?
> We are able to see this error when running from Firefox in Debug mode:
> Error: Error #1502: A script has executed for longer than the default timeout period
of 15 seconds.
> at mx.controls::AdvancedDataGrid/expandAll()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:5780]
> at mx.controls::AdvancedDataGrid/collectionChangeHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as:8232]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.collections::HierarchicalCollectionView/internalRefresh()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as:1272]
> at mx.collections::HierarchicalCollectionView/collectionChangeHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalCollectionView.as:1459]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.collections::HierarchicalData/set source()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/advancedgrids/src/mx/collections/HierarchicalData.as:153]
> at mx.binding::Binding/defaultDestFunc()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/Binding.as:305]
> at Function/http://adobe.com/AS3/2006/builtin::call()
> at mx.binding::Binding/innerExecute()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/Binding.as:511]
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> at mx.binding::Binding/wrapFunctionCall()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/Binding.as:418]
> at mx.binding::Binding/execute()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/Binding.as:356]
> at mx.binding::Binding/watcherFired()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/Binding.as:539]
> at mx.binding::Watcher/notifyListeners()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/Watcher.as:317]
> at mx.binding::PropertyWatcher/eventHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/binding/PropertyWatcher.as:385]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at com.homedepot.mm.sv.esvs.model::SVSModelLocator/dispatchEvent()
> at com.homedepot.mm.sv.esvs.model::SVSModelLocator/set acLocalLineItemData()
> at com.homedepot.mm.sv.esvs.view.order::ProductEntry/refreshLineItemDataGrid()[C:\bkpppp\esvs\MMSVESVSWeb\src\com\homedepot\mm\sv\esvs\view\order\ProductEntry.mxml:6638]
> at com.homedepot.mm.sv.esvs.view.order::OrderMaintenanceWindow/measureServiceViewHideHandler()[C:\bkpppp\esvs\MMSVESVSWeb\src\com\homedepot\mm\sv\esvs\view\order\OrderMaintenanceWindow.mxml:1111]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:13688]
> at mx.core::UIComponent/setVisible()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:3301]
> at mx.containers::ViewStack/commitSelectedIndex()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/mx/src/mx/containers/ViewStack.as:1227]
> at mx.containers::ViewStack/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/mx/src/mx/containers/ViewStack.as:767]
> at mx.core::UIComponent/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:8751]
> at mx.managers::LayoutManager/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605]
> at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:821]
> at mx.managers::LayoutManager/validateNow()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:886]
> at mx.core::Application/resizeHandler()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/mx/src/mx/core/Application.as:1742]
> at mx.core::Application/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/mx/src/mx/core/Application.as:1095]
> at mx.core::UIComponent/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:8751]
> at mx.managers::LayoutManager/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605]
> at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:821]
> at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message