Select to view content in your preferred language

Flex Viewer 2.2 gets Stuck

3464
9
12-28-2010 03:48 AM
SimonMorgan
Frequent Contributor
When using a widget that zooms to a location (enhanced search, bookmarks etc), the viewer soemtimes does not refresh the map. It just has a white background or stays pixellated. Has anyone else experienced this? I have added a number of widgets, some of which have not explicitly been modified since 2.2 was released. However, this does happen with 2.2 release widgets also. I am using Bing as my base map. Switching base map does not cause the map to refresh either. It does not seem to happen at a specific time interval nor is it predictabl;e when it will happen with a specific widget. Anyone have any thoughts?
Tags (2)
0 Kudos
9 Replies
MehulChoksey
Esri Contributor
Could you keep an eye on the http requests and response that are going through with tools such as firebug/httpfox fiddler so that when ever you see viewer not refreshing the map, its cause can be pinpointed.
0 Kudos
SimonMorgan
Frequent Contributor
Could you keep an eye on the http requests and response that are going through with tools such as firebug/httpfox fiddler so that when ever you see viewer not refreshing the map, its cause can be pinpointed.


So I managed to reproduce my issue, this time with fiddler running (attached file si the output). What is interesting is that I used Robert's enchance search widget. When I drug aselection polygon over the area, it produced results highlighted with the red selection graphic. However, when I did this, fiddler was no longer logging. It stopped logging when flexviewer got stuck after I zoomed in and then zoomed out. I am using Bing as my basemap.
0 Kudos
MehulChoksey
Esri Contributor
Attached request and response didnt help. Do you have debug version of flash player? if not could you try installing debug version of the player so that it can throw runtime error to help figure out the cause.
0 Kudos
SimonMorgan
Frequent Contributor
Attached request and response didnt help. Do you have debug version of flash player? if not could you try installing debug version of the player so that it can throw runtime error to help figure out the cause.


Here is the output from the debug version of flash after I click to open an esearch widget:

VerifyError: Error #1014: Class com.esri.viewer::BaseWidget could not be found.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_Assets_swf_mx_s kins_cursor_VBoxDivider_381069706 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_Assets_swf___br okenImage_235808565 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()
ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_assets_images_a rrow_up_png_2037389294 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_assets_images_a rrow_up_png_2037389294 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_Assets_swf_curs orStretch_1097191134 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()

ReferenceError: Error #1065: Variable _InfoPopupWidget_Styles__embed_css_assets_pan_pan_ se_png_2062712660 is not defined.

at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/moduleCompleteHandler()
0 Kudos
MehulChoksey
Esri Contributor
This error occurs if you use ArcGIS Flex Viewer 2.1 compiled widget with 2.2 Viewer.

Try compiling your entire source with 2.2 (including all your widgets) This should fix this error

There was change made in 2.2 to get rid of following warning  that was reported in http://forums.arcgis.com/threads/13542-Flex-4.1-SDK-Warning-with-FlexViewer-2.1?highlight=warning

"Description Resource Path Location Type
com.esri.viewer:BaseWidget is a module or application that is directly referenced. This will cause com.esri.viewer:BaseWidget and all of its dependencies to be linked in with index. Using an interface is the recommended practice to avoid this. flexviewer2.1 Unknown Flex Problem"

Docs will be updated with this information.
0 Kudos
SimonMorgan
Frequent Contributor
This error occurs if you use ArcGIS Flex Viewer 2.1 compiled widget with 2.2 Viewer.

Try compiling your entire source with 2.2 (including all your widgets) This should fix this error

There was change made in 2.2 to get rid of following warning  that was reported in http://forums.arcgis.com/threads/13542-Flex-4.1-SDK-Warning-with-FlexViewer-2.1?highlight=warning

"Description Resource Path Location Type
com.esri.viewer:BaseWidget is a module or application that is directly referenced. This will cause com.esri.viewer:BaseWidget and all of its dependencies to be linked in with index. Using an interface is the recommended practice to avoid this. flexviewer2.1 Unknown Flex Problem"

Docs will be updated with this information.


I only compile with flexviewer 2.2. Although I do have a couple of widgets that have not been updated sicne 2.2 was released. Should I remove these from my code and then compile again?
0 Kudos
MehulChoksey
Esri Contributor
Yes. Give that a try
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   Are absolutely sure you are using the right compiled version with the particular version of the viewer you are on? I think these errors are associated with the wrong version of the swf being used.
0 Kudos
SimonMorgan
Frequent Contributor
Yes. Give that a try


Figured it out. I narrowed it down to one widget. When I originally upgraded to 2.2 I modified the existing esearch widget config file I had to match the new format as mentioned in the important changes document that downloads with the widget. Well I must have done it wrong because I just re-did my esearch config files from scratch (using the config file that you incldue int he zip file as a template) and now I do not have a problem, even with widgets compiled that do not explicitly support 2.2.
0 Kudos