We're updating the issue view to help you get more done. 

Showing properties of shapefile causes crash

Description

Mentioned here: http://mapwindow5.codeplex.com/workitem/25396

The attached shapefile causes MW5 to crash.

I did a quick analyses and the shapefile is displays properly on the map, the table editor can open it and the shape is not invalid.

The error is:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 Description: Exception has been thrown by the target of an invocation. Stack trace: bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) bij System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) bij System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) bij MW5.Plugins.PluginBroadcaster.BroadcastEvent[T](MemberExpression expression, Object sender, T args, PluginIdentity identity, Nullable`1 defaultHandler) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\PluginBroadcaster.cs:regel 125 bij MW5.Plugins.PluginBroadcaster.BroadcastEvent[T](Expression`1 eventHandler, IMuteLegend sender, T args) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\PluginBroadcaster.cs:regel 64 bij MW5.Controls.LegendPresenter.RunCommand(LegendCommand command) in d:\dev\MapWindow-v5\GitHub\src\MW5\Controls\LegendPresenter.cs:regel 141 bij MW5.Plugins.Mvp.CommandDispatcher`1.RunCommandCore(String key) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\Mvp\CommandDispatcher.cs:regel 171 bij MW5.Plugins.Mvp.CommandDispatcher`1.ItemClick(Object sender, EventArgs e) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\Mvp\CommandDispatcher.cs:regel 152 bij System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) bij System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) bij System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) bij Syncfusion.Windows.Forms.Tools.ContextMenuStripEx.OnMouseUp(MouseEventArgs mea) bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bij System.Windows.Forms.Control.WndProc(Message& m) bij System.Windows.Forms.ToolStrip.WndProc(Message& m) bij System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Description: Specified argument was out of the range of valid values. Parameter name: type Stack trace: bij MW5.Plugins.Symbology.Views.CategoriesSubView.CheckFieldType(AttributeType type, Boolean uniqueValues) in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Views\CategoriesSubView.cs:regel 253 bij MW5.Plugins.Symbology.Views.CategoriesSubView.<FillFieldList>b__8(IAttributeField f) in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Views\CategoriesSubView.cs:regel 272 bij System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() bij MW5.Plugins.Symbology.Views.CategoriesSubView.FillFieldList(String name) in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Views\CategoriesSubView.cs:regel 272 bij MW5.Plugins.Symbology.Views.CategoriesSubView.Initialize() in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Views\CategoriesSubView.cs:regel 188 bij MW5.Plugins.Mvp.SubViewBase`1.Initialize(TModel model) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\Mvp\SubViewBase.cs:regel 19 bij MW5.Plugins.Mvp.SubViewPresenter`3.Initialize(TModel model) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\Mvp\SubViewPresenter.cs:regel 28 bij MW5.Plugins.Symbology.Views.VectorStyleView.Initialize() in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Views\VectorStyleView.cs:regel 104 bij MW5.Plugins.Mvp.ComplexPresenter`3.Init(TModel model) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\Mvp\ComplexPresenter.cs:regel 142 bij MW5.Plugins.Mvp.ComplexPresenter`3.Run(TModel argument, IWin32Window parent) in d:\dev\MapWindow-v5\GitHub\src\MW5.Plugins\Mvp\ComplexPresenter.cs:regel 121 bij MW5.DI.Castle.WindsorCastleContainer.Run[TPresenter,TArgument](TArgument arg, IWin32Window parent) in d:\dev\MapWindow-v5\GitHub\src\MW5.DI\MW5.DI.Castle\WindsorCastleContainer.cs:regel 91 bij MW5.Plugins.Symbology.Helpers.FormHelper.ShowLayerProperties(IAppContext context) in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Helpers\FormHelper.cs:regel 149 bij MW5.Plugins.Symbology.Menu.LegendListener.LayerDoubleClicked(IMuteLegend legend, LayerEventArgs e) in d:\dev\MapWindow-v5\GitHub\src\Plugins\MW5.Symbology\Menu\LegendListener.cs:regel 108

Environment

None

Status

Assignee

Paul Meems

Reporter

Paul Meems

Labels

None

Fix versions

Affects versions

v5.1.1.0

Priority

Medium