Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: App crashing on launch #14053

Closed
pdmaclellan opened this issue Nov 24, 2023 · 14 comments
Closed

Bug: App crashing on launch #14053

pdmaclellan opened this issue Nov 24, 2023 · 14 comments
Labels
crash Bug reports involving a crash help wanted Extra attention is needed needs - additional info Needs more information from the reporter

Comments

@pdmaclellan
Copy link

Description

I have been using this product for 2+ years with no issues. Recently upgraded to ver 3.0.8.0. When opening the app the first time in the day it takes between 30-60 seconds to open. Sometimes longer. Once opened I can close the app and reopen it and it opens as expected very quickly. At times it randomly freezes.

image

image

Steps To Reproduce

Open the Files App
Wait

Requirements

See above description

Files Version

3.0.8.0

Windows Version

Windows 11 Pro 22621.2428

Log File

debug.log

@Josh65-2201
Copy link
Member

Thanks for the report,

@Josh65-2201 Josh65-2201 added the needs - additional info Needs more information from the reporter label Nov 24, 2023
@pdmaclellan
Copy link
Author

pdmaclellan commented Nov 24, 2023 via email

@yaira2
Copy link
Member

yaira2 commented Nov 24, 2023

That would be a concern if this is expected behavior. Much too long a wait and the app freezing makes it unreliable. It hasn't been in the past and as mentioned have been using this product for years.

With which version did this issue first start occurring?

@pdmaclellan
Copy link
Author

pdmaclellan commented Nov 24, 2023 via email

@pdmaclellan
Copy link
Author

debug.log

Version 3.0.11.0 debug

@yaira2
Copy link
Member

yaira2 commented Nov 24, 2023

I see two crashes in the log file

2023-11-24 09:20:20.1345|Warning|System.InvalidCastException: Unable to cast object of type 'System.Text.Json.JsonElement' to type 'Files.Core.Data.Enums.BackdropMaterialType'.
   at Files.App.Helpers.AppSystemBackdrop.OnSettingChanged(Object sender, SettingChangedEventArgs e)
   at Files.App.Utils.Serialization.BaseJsonSettings.RaiseOnSettingChangedEvent(Object sender, SettingChangedEventArgs e)
   at Files.App.Services.Settings.UserSettingsService.ImportSettings(Object import)
   at Files.App.ViewModels.Settings.AdvancedViewModel.ImportSettingsAsync()
2023-11-24 09:20:20.7547|Error|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 object has been closed.

The given object has already been closed / disposed and may no longer be used.)
 ---> System.ObjectDisposedException: The object has been closed.

The given object has already been closed / disposed and may no longer be used.
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropControllerWithTargetsMethods.RemoveSystemBackdropTarget(IObjectReference _obj, ICompositionSupportsSystemBackdrop systemBackdropTarget)
   at Files.App.Helpers.AppSystemBackdrop.OnTargetDisconnected(ICompositionSupportsSystemBackdrop disconnectedTarget)
   at ABI.Microsoft.UI.Xaml.Media.ISystemBackdropOverrides.Do_Abi_OnTargetDisconnected_1(IntPtr thisPtr, IntPtr disconnectedTarget)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IWindow2Methods.set_SystemBackdrop(IObjectReference _obj, SystemBackdrop value)
   at Files.App.MainWindow.InitializeApplicationAsync(Object activatedEventArgs)
   at CommunityToolkit.WinUI.DispatcherQueueExtensions.<>c__DisplayClass2_0.<<EnqueueAsync>b__1>d.MoveNext()
   --- End of inner exception stack trace ---

@yaira2 yaira2 changed the title 30-60 second latency when opening Files, app freezing/crashing Bug: App crashing on launch Nov 24, 2023
@yaira2 yaira2 added help wanted Extra attention is needed crash Bug reports involving a crash and removed needs - additional info Needs more information from the reporter labels Nov 24, 2023
@yaira2 yaira2 moved this to 🔖 Ready to build in Files task board Nov 24, 2023
@NoxArt
Copy link

NoxArt commented Nov 24, 2023

I also had a crash after start today, but there is no error or warning in debug.log

This is in Event viewer

Faulting application name: Files.exe, version: 1.0.0.0, time stamp: 0x6531c3a8
Faulting module name: Microsoft.UI.Input.dll, version: 10.0.22624.1051, time stamp: 0xb0e6654a
Exception code: 0xc0000005
Fault offset: 0x00000000000137cd
Faulting process id: 0x0x7EE0
Faulting application start time: 0x0x1DA1F0FBD84FCCE
Faulting application path: C:\Program Files\WindowsApps\49306atecsolution.FilesUWP_3.0.8.0_x64__et10x9a9vyk8t\Files.App\Files.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.4_4000.1049.117.0_x64__8wekyb3d8bbwe\Microsoft.UI.Input.dll
Report Id: eff55426-9a7c-48df-a056-f16180225276
Faulting package full name: 49306atecsolution.FilesUWP_3.0.8.0_x64__et10x9a9vyk8t
Faulting package-relative application ID: App

@yaira2
Copy link
Member

yaira2 commented Nov 27, 2023

@pdmaclellan what do you have set for the backdrop material?

@pdmaclellan
Copy link
Author

Dark Theme, Mica Alt, Default Background

@yaira2
Copy link
Member

yaira2 commented Nov 27, 2023

Can you try changing the backdrop to none?

@pdmaclellan
Copy link
Author

pdmaclellan commented Nov 29, 2023 via email

@yaira2
Copy link
Member

yaira2 commented Jan 23, 2024

@pdmaclellan can you check the latest preview build to see if this is resolved? https://files.community/download/preview

@yaira2 yaira2 added the needs - additional info Needs more information from the reporter label Jan 23, 2024
@pdmaclellan
Copy link
Author

pdmaclellan commented Jan 23, 2024 via email

@yaira2
Copy link
Member

yaira2 commented Jan 23, 2024

Did it work?

@yaira2 yaira2 closed this as completed Jun 3, 2024
@github-project-automation github-project-automation bot moved this from 🔖 Ready to build to ✅ Done in Files task board Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Bug reports involving a crash help wanted Extra attention is needed needs - additional info Needs more information from the reporter
Projects
Archived in project
Development

No branches or pull requests

4 participants