talhatima / flexlib

Automatically exported from code.google.com/p/flexlib
1 stars 0 forks source link

Flex upgrades hang the browser #347

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Our product used work fine with Flex 3.2. After we upgrade to Flex 4.0, there 
is a popup menu, in the popup menu, there is a More menu item to show more 
options, when I click on the More button, the browser hangs, and later on an 
Exception will be displayed by IE.

This issue is very urgent to us, please let us know how can we fix this issue.

The exception is as below

Error: Error #1502: A script has executed for longer than the default timeout 
period of 15 seconds.
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UITextField/validateNow()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UITextField.as:2194]
    at mx.core::UITextField/get measuredWidth()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UITextField.as:1360]
    at mx.controls.menuClasses::MenuItemRenderer/measure()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\menuClasses\MenuItemRenderer.as:583]
    at mx.core::UIComponent/measureSizes()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8216]
    at mx.core::UIComponent/validateSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8140]
    at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:889]
    at mx.controls::List/http://www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\List.as:1706]
    at mx.controls::Menu/measureWidthOfItems()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Menu.as:1322]
    at mx.controls::List/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\List.as:906]
    at mx.controls::Menu/commitProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Menu.as:1244]
    at controls::ScrollableMenu/measure()[C:\e1DevEnv\svn\EngageOne13\AdminUI\src\controls\ScrollableMenu.as:124]
    at mx.core::UIComponent/measureSizes()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8216]
    at mx.core::UIComponent/validateSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8140]
    at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:889]
    at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:384]
    at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193]
    at controls::WindowManager$/addPopUp()[C:\e1DevEnv\svn\EngageOne13\AdminUI\src\controls\WindowManager.as:26]
    at controls::VariableTextInput/moreMenuItemSelected()[C:\e1DevEnv\svn\EngageOne13\AdminUI\src\controls\VariableTextInput.as:96]

Not sure if it is related to mx.managers.PopUpManager.addPopUp or it is related 
to mx.controls.menu, I passed menu as parameter for addPopUP.

Appreciate your reply.

Original issue reported on code.google.com by teresa...@pb.com on 14 Feb 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Hi, We were also suffering the same problem - we were using flexlib-2.4 - 
updating to flexlib-2.5 and the problem went away. Ive no idea why!
Cheers N.

Original comment by neil%liq...@gtempaccount.com on 31 Mar 2011 at 8:57

GoogleCodeExporter commented 9 years ago
I'm facing the same issue. Was this error resolved?

Original comment by Reinard....@krs.co.za on 3 Oct 2012 at 11:16

GoogleCodeExporter commented 9 years ago
Ok, upgrading to flexlib-2.5 solved the issue. 

The only thing that I can see was changed was in ScrollableMenu.as. Right at 
the end of the measure() function there was a call to commitProperties(). This 
was removed, which seem to have resolved the issue.

Original comment by Reinard....@krs.co.za on 3 Oct 2012 at 11:51