Select to view content in your preferred language

Migrated from 2.0 to 2.1 beta - map hangs

2018
17
10-09-2010 06:50 AM
IdoFlatow
Emerging Contributor
I've been working with the 2.0 version of the map control and today I installed version 2.1 beta to check the touch and gestures. When I zoom in and pan with the 2.1 version that WPF applications hangs for a few seconds and then performs the operations. This behavior happens all the time (WPF app hangs for couple of seconds on zoom and pan) in v2.1 and did not happen in v2.0

I'm using the simplest example of a user control containing a map with a single layer (tried both arcgis and bing).

Hope this bug can be fixed.

Ido.
0 Kudos
17 Replies
dotMorten_esri
Esri Notable Contributor
Could you share the simple code you have? I'd like to see if I can reproduce it.
Also what hardware and type of touch screen are you using? What version of WPF? (.NET 3.5 or 4.0?)
0 Kudos
IdoFlatow
Emerging Contributor
I've tried to use the simple gis samples from the WPF SDK and also wrote a simple application like so:
<UserControl x:Class="SilverlightApp.Page"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:esri="http://schemas.esri.com/arcgis/client/2009">    
<Grid x:Name="LayoutRoot" Background="White">          
      <esri:Map x:Name="MyMap" Extent="-120, 20, -100, 40" >           
 <esri:Map.Layers>           
     <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"                     Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />          
  </esri:Map.Layers>       
 </esri:Map>            
</Grid>
</UserControl>


I'm using an ACER 1420P: http://www.microsoftpdc.com/tablet
The WPF version is 4

As I wrote before, the only thing I've changed in my project was the assebmlies of the mapcontrol from version 2.0 to 2.1 and thats when the hang start occuring.

BTW, I tried to run the code in debug and breaked when the hang occured; I've found that the code is calling a sleep method, but could not understand where it originated from.
0 Kudos
dotMorten_esri
Esri Notable Contributor
That's interesting. We actually have several of those laptops and haven't noticed that happening.
0 Kudos
IdoFlatow
Emerging Contributor
Hi,

I'm using this simple code on my laptop which is a dell studio xps 1645 with core i7 720, 8gb ram, ati radeon hd 4670:
<Window x:Class="WpfApplication4.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
        Title="MainWindow">
    <Grid>
        <esri:Map x:Name="MyMap">
            <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
                                             Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />
        </esri:Map>
    </Grid>
</Window>

Running under .NET 4, WPF.

When using the dlls from version 2.0.0.314, performing zoom in/out and panning rapidly works quite well and the "flow" of the screen is clear. When removing the old dlls and placing the dlls from version 2.1.0.401, the application gets sluggish, hangs when panning for a few ms, and then just skips to the target extent without showing the "flow". This is even worse when trying to use touch because you keep touching the screen which only increases the delay and hang.

If you are trying to reproduce this problem, please make sure you try it with a slow network that produces many waiting requests (when running with my machine on a slow internet bandwidth, I got up to 80 waiting requests).
0 Kudos
IdoFlatow
Emerging Contributor
Any progress with identifying this bug?

I've tried placing some controls on top of the map (button, treeview...) and it seems that when the application freezes after panning and zooming, the controls freeze also and do not respond to events. Only after the application stops freezing, the events are raised.
0 Kudos
IdoFlatow
Emerging Contributor
No updates? it seems that 7 days should be suffice to check if it is a bug or something else...
0 Kudos
JenniferNery
Esri Regular Contributor
I cannot reproduce this with your code but I am using a different hardware.  Maybe another process is interfering or causing your WPF App to hang or become sluggish.  I know that one of my co-workers notice that our Anti-Virus update checker can do this to any WPF app.
0 Kudos
IdoFlatow
Emerging Contributor
I cannot reproduce this with your code but I am using a different hardware.  Maybe another process is interfering or causing your WPF App to hang or become sluggish.  I know that one of my co-workers notice that our Anti-Virus update checker can do this to any WPF app.


Not sure that an external app causes this. I'm talking about two different computers with two different sets of hardware. I mention this again - when replacing the 2.1 version with the dlls from the 2.0 version is works fine !! on both machines !!

I guess I'll just have to wait for the official 2.1 version to see it this problem goes away...
0 Kudos
dotMorten_esri
Esri Notable Contributor
We are aware of one issue that causes wpf to perform worse in some configurations when tiles needs to load, although I've never seen it as slow as you say it is (seems more choppy than "stuck"). We will have that fixed for final release.
0 Kudos