Skip to content

Bug: System.ArgumentException: An item with the same key has already been added #13682

@yaira2

Description

@yaira2

Description

System.ArgumentException: An item with the same key has already been added. Key: ShowFavoritesSection

Steps To Reproduce

Unknown but appears to happen on launch

Requirements

  • Fix crash

Files Version

v3.0.1

Windows Version

10.0.19045

Log File

System.Collections.Generic
Dictionary`2.TryInsert (TKey key, TValue value, InsertionBehavior behavior)
System.Collections.Generic
Dictionary`2.Add (TKey key, TValue value)
Files.App.Utils.Serialization.Implementation
CachingJsonSettingsDatabase.GetValue[TValue] (String key, TValue defaultValue)
Files.App.Utils.Serialization
BaseJsonSettings.Get[TValue] (TValue defaultValue, String propertyName)
Files.App.ViewModels.UserControls
SidebarViewModel.CreateSectionAsync (SectionType sectionType)
Files.App.ViewModels.UserControls
SidebarViewModel.GetOrCreateSectionAsync (SectionType sectionType)
Files.App.ViewModels.UserControls.SidebarViewModel.<>c__DisplayClass72_0
<<Manager_DataChanged>b__0>d.MoveNext ()
Files.App.ViewModels.UserControls
SidebarViewModel.Manager_DataChanged (Object sender, NotifyCollectionChangedEventArgs e)
System.Threading.Tasks.Task
<>c.<ThrowAsync>b__128_0 (Object state)
Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext
<>c__DisplayClass2_0.<Post>b__0 ()
WinRT
ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0 (Int32 hr)
ABI.Windows.ApplicationModel.Core
IUnhandledErrorMethods.Propagate (IObjectReference _obj)
Microsoft.AppCenter.Utils
ApplicationLifecycleHelperWinUI.<ctor>b__0_3 (Object sender, UnhandledErrorDetectedEventArgs eventArgs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashBug reports involving a crash

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions