Program crashes



  • The following error comes almost every time I try to edit/save a new filter, and the program crashes.

    System.ArgumentException: An item with the same key has already been added.
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at Hand2NoteCore.FilterEditor.ActionInFilterViewModel.’”(RangeViewModel , ActionParameters , ActionParameters ) at Hand2NoteCore.FilterEditor.ActionInFilterViewModel.GetModel(ActionInFilter model) at Common.ViewModelBase1.GetModel()
    at Hand2NoteCore.FilterEditor.ActionRowViewModel.<>c.<GetModel>b__4_0(ActionInFilterViewModel x)
    at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
    at Hand2NoteCore.FilterEditor.ActionRowViewModel.GetModel(ActionRow model)
    at Common.ViewModelBase1.GetModel() at Hand2NoteCore.FilterEditor.StreetFilterOptionsViewModel.<>c.<GetModel>b__3_1(ActionRowViewModel x) at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
    at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
    at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Hand2NoteCore.FilterEditor.StreetFilterOptionsViewModel.GetModel(StreetFilterOptions model) at Common.ViewModelBase1.GetModel()
    at Hand2NoteCore.FilterEditor.FilterActionTabViewModel.GetModel(Filter model)
    at Hand2NoteCore.FilterEditor.FilterViewModel.GetModel(Filter model)
    at Common.ViewModelBase`1.GetModel()
    at Hand2NoteCore.FilterEditor.FilterViewModel.SaveExecute()
    at Common.RelayCommand.Execute(Object parameter)
    at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
    at System.Windows.Controls.Primitives.ButtonBase.OnClick()
    at System.Windows.Controls.Button.OnClick()
    at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
    at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
    at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
    at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
    at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
    at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
    at System.Windows.Input.InputManager.ProcessStagingArea()
    at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
    at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
    at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


  • Global Moderator

    What version of Hand2Note have you installed?



  • Hi,

    Version 3.1.16.3

    Btw it only crashes when I try to change certain filters, not on every filter.


  • Global Moderator

    We can't reproduce the problem described. Please, provide us with the additional information.

    1. Enable logging in Configuration -> System -> Logging
    2. Reproduce the problem
    3. Archive the folder with Hand2Note and send to us by email to support@hand2note.com with a link to your message on the forum
    4. Please, make a visual representation of the problem. For example, short video or screenshots where we can see a bug. This will help us a lot to reproduce and fix the problem.

    You can use any convenient file sharing service, for example, http://www.dropbox.com/, if the file exceeds 15MB


Log in to reply
 

Looks like your connection to Hand2Note was lost, please wait while we try to reconnect.