Select to view content in your preferred language

Crashing with rapid Shift + MouseClick

706
2
10-14-2013 01:11 PM
CW
by
Emerging Contributor
Is there a bug I'm not finding documented wherein if while holding down the shift key and rapidly clicking within the map causes the client to crash with a white screen and with no error to give a hint towards the cause of it?

The clicking has to be rapid to reproduce. On the map I've got a FillSymbol that has a VisualStateManager but I cant find anything telling me that would be the issue, anyone have any advice or experience with this defect?
0 Kudos
2 Replies
AnttiKajanus1
Deactivated User
Can you provide solution where I could reproduce it?
0 Kudos
CW
by
Emerging Contributor
Hi thanks for the response. A whole solution to try against would take me some time to slap together since what it sits in now is gigantic, however here's an abridged version of the view. One of my guys wants to blame the FillSymbol, but I think something else is the culprit, but so far I haven't been able to retrieve any hint of the error to help me investigate. Let me know if anything jumps out at you, another pair of eyes is greatly appreciated!

<UserControl.Resources>

        <esri:SimpleMarkerSymbol x:Key="RedMarkerSymbol" Color="Red" Size="12" Style="Circle" />
        <esri:TextSymbol x:Key="THELabelSymbol" FontSize="12"/>
        <esri:SimpleLineSymbol x:Key="DrawLineSymbol" Color="Green" Width="4" />
        <esri:SimpleFillSymbol x:Key="DrawFillSymbol" Fill="#3300FF00" BorderBrush="Green" BorderThickness="2" />
        <esri:PictureMarkerSymbol x:Name="DropPinMarkerSymbol" OffsetX="0" OffsetY="23" Source="........blah.png"/>

        <esri:FillSymbol x:Key="THEFill">
            <esri:FillSymbol.ControlTemplate>
                <ControlTemplate>
                    <Path x:Name="Element"
                  Fill="#FFCCCCCC"
                  Stroke="Blue"
              StrokeThickness="3" StrokeDashArray="3,5" StrokeDashCap="Triangle" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
      Opacity=".35"/>      
                </ControlTemplate>
            </esri:FillSymbol.ControlTemplate>
        </esri:FillSymbol>

        <esri:FillSymbol x:Key="cluFill" Fill="{Binding THEFillColor}">
            <esri:FillSymbol.ControlTemplate>
                <ControlTemplate>
                    <Path x:Name="Element"
                  Stroke="#FFFF00"
                  StrokeThickness="3"
      StrokeDashArray="2,1"
      StrokeDashOffset="0"
      Opacity="1"
                Fill="{Binding Symbol.Fill}"        
                StrokeStartLineCap="Round"
                StrokeEndLineCap="Round"
                StrokeLineJoin="Round" Cursor="Hand">
     

                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="00:00:00"
                                      Storyboard.TargetName="Element"
                                      Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.25" />
                                        <DoubleAnimation BeginTime="00:00:00"
                                      Storyboard.TargetName="Element"
                                      Storyboard.TargetProperty="StrokeThickness" To="4" Duration="0:0:0.25" />
          
          <DoubleAnimation BeginTime="0:0:0" Storyboard.TargetName="Element" Storyboard.TargetProperty="StrokeDashOffset" 
            Duration="0:4:0" RepeatBehavior="Forever" From="1000" To="0"/>
         
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimation BeginTime="00:00:00"
                                      Storyboard.TargetName="Element"
                                      Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.25" />
                                        <DoubleAnimation BeginTime="00:00:00"
                                      Storyboard.TargetName="Element"
                                      Storyboard.TargetProperty="StrokeThickness" To="3" Duration="0:0:0.25" />
           
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
               
                   
                        <Path.Effect>
                            <DropShadowEffect Opacity="0"/>
                        </Path.Effect>
                    </Path>

    
                </ControlTemplate>
            </esri:FillSymbol.ControlTemplate>
        </esri:FillSymbol>

        <esri:DynamicLayerInfoCollection x:Key="DynamicLayers">
            <esri:DynamicLayerInfo ID="0" Name="Blah" DefaultVisibility="False" >
                <esri:DynamicLayerInfo.Source>
                 <esri:LayerMapSource MapLayerID="0"/>
    </esri:DynamicLayerInfo.Source>
            </esri:DynamicLayerInfo>
            <esri:DynamicLayerInfo ID="1" Name="Blah1" DefaultVisibility="True">
                <esri:DynamicLayerInfo.Source>
                 <esri:LayerMapSource MapLayerID="1"/>
    </esri:DynamicLayerInfo.Source>
            </esri:DynamicLayerInfo>
        </esri:DynamicLayerInfoCollection>
        <esri:LayerDrawingOptionsCollection x:Key="LayerDrawing">
            <esri:LayerDrawingOptions LayerID="5">
                <esri:LayerDrawingOptions.Renderer>
                    <esri:SimpleRenderer>
                        <esri:SimpleFillSymbol BorderBrush="Brown" Fill="Transparent" BorderThickness="2"/>
                    </esri:SimpleRenderer>
                </esri:LayerDrawingOptions.Renderer>
            </esri:LayerDrawingOptions>
            <esri:LayerDrawingOptions LayerID="4">
                <esri:LayerDrawingOptions.Renderer>
                    <esri:SimpleRenderer>
                        <esri:SimpleFillSymbol BorderBrush="SaddleBrown" Fill="Transparent" BorderThickness="2"/>
                    </esri:SimpleRenderer>
                </esri:LayerDrawingOptions.Renderer>
            </esri:LayerDrawingOptions>
        </esri:LayerDrawingOptionsCollection>
       
        <esri:EditGeometry x:Key="MyEditor" IsEnabled="True"
                         Map="{Binding ElementName=Map}" 
                          />
        <esri:Draw x:Key="Drawer"
                  Map="{Binding ElementName=Map}" 
                  DrawMode="None" 
                  FillSymbol="{StaticResource DrawFillSymbol}"
                   LineSymbol="{StaticResource DrawLineSymbol}"
                   DrawComplete="Drawer_OnDrawComplete"/>
        
       <esri:Draw x:Key="PinDrawer"
                   Map="{Binding ElementName=Map}"
                   DrawMode="Point"
                   DrawComplete="PinDrawer_OnDrawComplete" />

        <esri:Draw x:Key="BinDrawer"
                   Map="{Binding ElementName=Map}"
                   DrawMode="Point"
                   DrawComplete="BinDrawer_OnDrawComplete" />
        
    </UserControl.Resources>    
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource StandardLightAccentLineBrush}">
        <esri:Map x:Name="Map" controls:CursorSet.ID="{Binding CursorSet}"
                 WrapAround="true"
                 IsLogoVisible="False">
            <esri:Map.Extent>
                <esri:Envelope XMin="-1.38957793088E7" YMin="2812752.3691999987" XMax="-7449272.308800001" YMax="6352014.369199999" >
                    <esri:Envelope.SpatialReference>
                        <esri:SpatialReference WKID="3857"/>
                    </esri:Envelope.SpatialReference>
                </esri:Envelope>
            </esri:Map.Extent>
        </esri:Map>

  <esri:ScaleLine Map="{Binding ElementName=Map}" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Foreground="White">
   <esri:ScaleLine.Effect>
          <DropShadowEffect ShadowDepth="2" BlurRadius="4" Opacity="0.75"/>
         </esri:ScaleLine.Effect>
  </esri:ScaleLine>
        <esri:MapProgressBar Map="{Binding ElementName=Map}" 
   HorizontalAlignment="Center" VerticalAlignment="Bottom"
   Width="200" Height="36" Margin="25" Style="{StaticResource MyCustomProgressBarStyle}"/>
        <esri:Navigation Margin="5" IsTabStop="False"
   Map="{Binding ElementName=Map}"
         HorizontalAlignment="Left" VerticalAlignment="Top">
         <esri:Navigation.Resources>
          <Style TargetType="Button">
           <Setter Property="IsTabStop" Value="False"/>
    </Style>
   </esri:Navigation.Resources>
        </esri:Navigation>
                
       </Grid>
</UserControl>
0 Kudos