question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Files Crash on Scrolling Folders Content of Same Type

See original GitHub issue

Description

After starting to scroll on just any simple folder, sometimes, this warning message shows up “Something gone wrong” then the app will be closed, and unless you click on the warning message you’ll lose all your tabs and can’t restore them! Then this happens on any folder! this happens often, not always, but consistently till it resolves on itself after some minutes…

Steps To Reproduce

randomly happens on scrolling any open and obviously scrollable folder

Expected behavior

not to crash! and at least restore your open tabs normally

Files Version

2.1.24.0

Windows Version

Windows 10 pro build 19044 version 21H2

Relevant Assets/Logs

2022-05-22 11:37:19.7109|INFO|OnActivated|App activated by CommandLineLaunch 2022-05-22 11:37:19.9002|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:37:20.1169|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:37:23.3721|INFO|GetDrivesAsync|Drive added: H:, Removable 2022-05-22 11:37:34.9196|WARN|BuildConnection|Could not initialize FTP connection! System.Threading.Tasks.TaskCanceledException: A task was canceled. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xad at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb at Files.Helpers.NamedPipeAsAppServiceConnection.<Connect>d__10.MoveNext() + 0x148 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x89 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() + 0xf at Files.Helpers.AppServiceConnectionHelper.<BuildConnection>d__8.MoveNext() + 0x11b

2022-05-22 11:37:38.5889|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. 2022-05-22 11:37:47.8514|INFO|OnActivated|App activated by CommandLineLaunch 2022-05-22 11:37:48.4754|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:37:48.5534|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:37:48.8244|INFO|GetDrivesAsync|Drive added: C:, Fixed 2022-05-22 11:37:48.9235|INFO|GetDrivesAsync|Drive added: D:, Fixed 2022-05-22 11:37:49.0095|INFO|GetDrivesAsync|Drive added: E:, Fixed 2022-05-22 11:37:49.1005|INFO|GetDrivesAsync|Drive added: F:, Fixed 2022-05-22 11:37:49.1645|INFO|GetDrivesAsync|Drive added: G:, Fixed 2022-05-22 11:37:49.2225|INFO|GetDrivesAsync|Drive added: H:, Removable 2022-05-22 11:37:49.7933|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive 2022-05-22 11:37:52.9296|INFO|IsRunningOnArm|Running on ARM: False 2022-05-22 11:37:55.0380|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. 2022-05-22 11:38:00.0134|INFO|OnActivated|App activated by ToastNotification 2022-05-22 11:38:00.2724|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:38:00.2884|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:38:00.3384|INFO|GetDrivesAsync|Drive added: C:, Fixed 2022-05-22 11:38:00.3884|INFO|GetDrivesAsync|Drive added: D:, Fixed 2022-05-22 11:38:01.0249|INFO|GetDrivesAsync|Drive added: E:, Fixed 2022-05-22 11:38:01.3910|INFO|GetDrivesAsync|Drive added: F:, Fixed 2022-05-22 11:38:01.4815|INFO|GetDrivesAsync|Drive added: G:, Fixed 2022-05-22 11:38:01.5535|INFO|IsRunningOnArm|Running on ARM: False 2022-05-22 11:38:01.8325|INFO|GetDrivesAsync|Drive added: H:, Removable 2022-05-22 11:38:01.9965|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive 2022-05-22 11:38:12.4358|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. 2022-05-22 11:39:05.6497|INFO|OnLaunched|App launched. Prelaunch: False 2022-05-22 11:39:06.0497|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:39:06.3617|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:39:19.5494|INFO|OnLaunched|App launched. Prelaunch: False 2022-05-22 11:39:20.1676|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:39:20.4236|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:39:20.5636|INFO|GetDrivesAsync|Drive added: C:, Fixed 2022-05-22 11:39:20.7106|INFO|GetDrivesAsync|Drive added: D:, Fixed 2022-05-22 11:39:20.8196|INFO|GetDrivesAsync|Drive added: E:, Fixed 2022-05-22 11:39:20.8876|INFO|GetDrivesAsync|Drive added: F:, Fixed 2022-05-22 11:39:20.9786|INFO|GetDrivesAsync|Drive added: G:, Fixed 2022-05-22 11:39:21.0586|INFO|GetDrivesAsync|Drive added: H:, Removable 2022-05-22 11:39:21.5059|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive 2022-05-22 11:39:23.3725|INFO|IsRunningOnArm|Running on ARM: False 2022-05-22 11:40:00.0621|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. 2022-05-22 11:40:06.9875|INFO|OnActivated|App activated by ToastNotification 2022-05-22 11:40:07.2555|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:40:07.2725|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:40:07.3296|INFO|GetDrivesAsync|Drive added: C:, Fixed 2022-05-22 11:40:07.3895|INFO|GetDrivesAsync|Drive added: D:, Fixed 2022-05-22 11:40:07.4385|INFO|GetDrivesAsync|Drive added: E:, Fixed 2022-05-22 11:40:07.4825|INFO|GetDrivesAsync|Drive added: F:, Fixed 2022-05-22 11:40:07.9315|INFO|GetDrivesAsync|Drive added: G:, Fixed 2022-05-22 11:40:08.8666|INFO|GetDrivesAsync|Drive added: H:, Removable 2022-05-22 11:40:09.1621|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive 2022-05-22 11:40:09.1891|INFO|IsRunningOnArm|Running on ARM: False 2022-05-22 11:41:43.6558|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. 2022-05-22 11:41:49.2515|INFO|OnActivated|App activated by ToastNotification 2022-05-22 11:41:49.5374|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:41:49.5534|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:41:50.0406|INFO|GetDrivesAsync|Drive added: C:, Fixed 2022-05-22 11:41:50.9823|INFO|GetDrivesAsync|Drive added: D:, Fixed 2022-05-22 11:41:51.2299|INFO|IsRunningOnArm|Running on ARM: False 2022-05-22 11:41:51.5249|INFO|GetDrivesAsync|Drive added: E:, Fixed 2022-05-22 11:41:51.5309|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive 2022-05-22 11:41:51.6289|INFO|GetDrivesAsync|Drive added: F:, Fixed 2022-05-22 11:41:51.8079|INFO|GetDrivesAsync|Drive added: G:, Fixed 2022-05-22 11:41:51.9204|INFO|GetDrivesAsync|Drive added: H:, Removable 2022-05-22 11:45:06.7695|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. 2022-05-22 11:45:12.5719|INFO|OnActivated|App activated by ToastNotification 2022-05-22 11:45:12.8750|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:45:12.8920|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:45:13.3786|INFO|GetDrivesAsync|Drive added: C:, Fixed 2022-05-22 11:45:14.3039|INFO|GetDrivesAsync|Drive added: D:, Fixed 2022-05-22 11:45:14.5839|INFO|IsRunningOnArm|Running on ARM: False 2022-05-22 11:45:14.8732|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive 2022-05-22 11:45:14.8770|INFO|GetDrivesAsync|Drive added: E:, Fixed 2022-05-22 11:45:14.9797|INFO|GetDrivesAsync|Drive added: F:, Fixed 2022-05-22 11:45:15.1037|INFO|GetDrivesAsync|Drive added: G:, Fixed 2022-05-22 11:48:09.8955|INFO|OnActivated|App activated by CommandLineLaunch 2022-05-22 11:48:09.9113|WARN|MergeSettings|Merging settings failed System.ArgumentException: The parameter is incorrect.

Error trying to write application data container value at System.Runtime.InteropServices.WindowsRuntime.IMapSharedReferenceTypesStubClass.Insert[TKey, TValue](IDictionary`2, TKey, TValue) + 0xd1 at Windows.ApplicationModel.DataTransfer.DataPackagePropertySet.global::System.Collections.Generic.IDictionary<System.String,System.Object>.set_Item(String, Object) + 0x21 at Files.ViewModels.SettingsViewModel.Get[TValue](TValue, String) + 0x22d at Files.Helpers.RegistryToJsonSettingsMerger.MergeSettings() + 0xaf

2022-05-22 11:48:09.9282|WARN|StartAppCenter|AppCenter could not be started. Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0. at Newtonsoft.Json.Linq.JObject.Load(JsonReader, JsonLoadSettings) + 0xf6 at Newtonsoft.Json.Linq.JObject.Parse(String, JsonLoadSettings) + 0x60 at Files.App.<StartAppCenter>d__76.MoveNext() + 0x198

2022-05-22 11:48:11.6904|INFO|EnumerateDrivesAsync|Adding cloud provider “OneDrive” mapped to C:\Users**\OneDrive

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gave92commented, May 22, 2022

And again our favorite error:

2022-05-22 11:45:06.7695|ERROR|AppUnhandledException|Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete. Windows.UI.Xaml.LayoutCycleException: Layout cycle detected. Layout could not complete. Layout cycle detected. Layout could not complete.

0reactions
Josh65-2201commented, Jul 11, 2022

Merging with #9019

Read more comments on GitHub >

github_iconTop Results From Across the Web

File Explorer crashes when scrolling with "Content" view
I am finding that File Explorer is crashing after a search is complete and try to scroll through the list (200-500+) if the...
Read more >
When scrolling down with scroll bar, Files crashes. #8863
Steps to crash. Went to my working directory. Right clicked. Used the scroll bar in order to scroll down the menu items. App...
Read more >
Windows 10: File Explorer Crashes while scrolling on folders
File Explorer Crashes while scrolling on folders · Open a new Explorer window. · Click View in the ribbon. · Click Options. ·...
Read more >
Windows Explorer crashes when opening folder with a ...
After installing VS17 Update 1, I can no longer open any folder with a Typescript file in it in Windows Explorer (Windows 10)....
Read more >
Windows Explorer Slow Folder Loading Problems FIX
It is essentially the same as Windows Explorer but with added features and functionality. File Explorer is one of the most used applications ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found