Bug: Frequent app crash
See original GitHub issueDescription
Details are provided below. I noticed the app crashes more often than usual since the WinUI 3.
Steps To Reproduce
I don’t know in particular but it occurs mostly when navigating. Also happens randomly when the app is in the background but not minimized.
Some scenarios include:
- Copying a file from a folder and navigating to a destination folder
- While using dual-pane view and navigating back and forth for a few minutes
- When switching tabs
Sometimes, after the error notification, the app would not actually crash yet until few more errors
Steps to fix
- Prevent the crash
Files Version
2.3.54.0
Windows Version
10.0.22623.875
Relevant Assets/Logs
The 0x8000FFFF
exception
2022-10-29 21:56:21.3182|ERROR|AppUnhandledException|Catastrophic failure (0x8000FFFF (E_UNEXPECTED))
System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (0x8000FFFF (E_UNEXPECTED))
2022-10-29 21:56:21.4374|ERROR|AppUnhandledException|Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.Controls.IFrameMethods.Navigate(IObjectReference _obj, Type sourcePageType, Object parameter, NavigationTransitionInfo infoOverride)
at Files.App.Views.ModernShellPage.NavigateToPath(String navigationPath, Type sourcePageType, NavigationArguments navArgs)
at Files.App.Helpers.NavigationHelpers.OpenDirectory(String path, IShellPage associatedInstance, IEnumerable`1 selectItems, ShellLinkItem shortcutInfo, Boolean forceOpenInNewTab)
at Files.App.Helpers.NavigationHelpers.OpenPath(String path, IShellPage associatedInstance, Nullable`1 itemType, Boolean openSilent, Boolean openViaApplicationPicker, IEnumerable`1 selectItems, String args, Boolean forceOpenInNewTab)
at Files.App.Helpers.NavigationHelpers.OpenSelectedItems(IShellPage associatedInstance, Boolean openViaApplicationPicker)
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 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 ABI.System.EventHandler`1.Do_Abi_Invoke[TAbi](Void* thisPtr, IntPtr sender, TAbi args)
The 0x8001010E
exception
2022-10-30 23:53:06.7866|ERROR|AppUnhandledException|A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (The application called an interface that was marshalled for a different thread. (0x8001010E (RPC_E_WRONG_THREAD)))
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (The application called an interface that was marshalled for a different thread. (0x8001010E (RPC_E_WRONG_THREAD)))
---> System.Runtime.InteropServices.COMException (0x8001010E): The application called an interface that was marshalled for a different thread. (0x8001010E (RPC_E_WRONG_THREAD))
at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IWindowMethods.get_Content(IObjectReference _obj)
at Files.App.MainWindow.EnsureWindowIsInitialized()
at Files.App.MainWindow.InitializeApplication(AppActivationArguments activatedEventArgs)
--- End of inner exception stack trace ---
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
The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it...
Read more >How to Fix It When Apps Keep Crashing on Android
There are many common reasons an app may keep crashing on your Android. Try these fixes to solve this common problem.
Read more >Apps keep crashing on your Android phone? Try these fixes
To stop your Android apps from crashing, clear the app cache. Go to Settings > Storage > Other apps > (app name) 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 >Why are my Android phone apps crashing or closing & how ...
Another reason for Android apps crashing can be a lack of storage space in your device. This can occur when you overload your...
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
The
0x8001010E
crash was resolved inmain
.Ah, just saw the COM (0x8000FFFF). Didnt think there was another one