Bug: App crashes
See original GitHub issueDescription
Occurs once when I tried to toggle the “Calculate Folder Sizes” but I’m not sure because it didn’t crash again after reproducing.
Steps To Reproduce
Might not be these steps but for me, it happened this way:
- Go to settings
- Turn on Calculate Folder Sizes,
Steps to fix
- Prevent app crash
Files Version
2.3.51.0
Windows Version
10.0.22623.870
Relevant Assets/Logs
2022-10-22 02:35:38.5439|ERROR|AppUnhandledException|An item with the same key has already been added. Key: C:\
System.ArgumentException: An item with the same key has already been added. Key: C:\
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Files.Backend.Services.SizeProvider.DrivesSizeProvider.CreateProvider(String driveName)
at Files.Backend.Services.SizeProvider.DrivesSizeProvider.UpdateAsync(String path, CancellationToken cancellationToken)
at Files.App.ServicesImplementation.UserSizeProvider.UpdateAsync(String path, CancellationToken cancellationToken)
at Files.App.Filesystem.StorageEnumerators.Win32StorageEnumerator.ListEntries(String path, IntPtr hFile, WIN32_FIND_DATA findData, NamedPipeAsAppServiceConnection connection, CancellationToken cancellationToken, Int32 countLimit, Func`2 intermediateAction, Dictionary`2 defaultIconPairs)
at Files.App.ViewModels.ItemViewModel.<>c__DisplayClass155_1.<<EnumerateItemsFromStandardFolderAsync>b__5>d.MoveNext()
--- End of stack trace from previous location ---
at Files.App.ViewModels.ItemViewModel.EnumerateItemsFromStandardFolderAsync(String path, CancellationToken cancellationToken, LibraryItem library)
at Files.App.ViewModels.ItemViewModel.RapidAddItemsToCollection(String path, LibraryItem library)
at Files.App.ViewModels.ItemViewModel.RapidAddItemsToCollectionAsync(String path, String previousDir, Action postLoadCallback)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
at ABI.Windows.ApplicationModel.Core.IUnhandledErrorMethods.Propagate(IObjectReference _obj)
at Windows.ApplicationModel.Core.UnhandledError.Propagate()
at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperWinUI.<.ctor>b__0_3(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
--- End of stack trace from previous location ---
at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperWinUI.<.ctor>b__0_3(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
at WinRT.EventSource__EventHandler`1.EventState.<GetEventInvoke>b__1_0(Object obj, T e)
at ABI.System.EventHandler`1.Do_Abi_Invoke[TAbi](Void* thisPtr, IntPtr sender, TAbi args)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Why do my apps keep crashing on Android, How to fix it
Another way to fix apps crashing on your phone is to simply restart the device. Restarting the device will kill and then restart...
Read more >Why Do My Apps Keep Crashing on Android?
1. The “Force stop” method · 2. Restart your Android device · 3. Keep your phone updated · 4. Clear your cached data...
Read more >Crashes | App quality
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >Why are my Android phone apps crashing or closing & how ...
Find out why your Samsung Galaxy Android phone apps keep crashing, closing, freezing or stop working. Fix the issue with our guide and...
Read more >8 Ways to Fix Android Apps Crashing
1. Check the Internet Connection · 2. Restart the Crashing App · 3. Restart Your Device · 4. Check the App for Updates...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing for now, please let us know if it happens again.
Can anyone reproduce this?