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.

Application hangs on startup then crashes

See original GitHub issue

Description

Sometimes the application freezes at startup. It does not show sidebar contents and files. After a few seconds it crashes and restarts normally.

Steps To Reproduce

No response

Expected behavior

Use the application.

Files Version

2.1.13.0

Windows Version

Windows 10 Pro 21H2

Relevant Assets/Logs

2022-02-17 09:52:38.4569|WARN|OnLaunched|Error during InitializeAppComponentsAsync() System.AggregateException: One or more errors occurred. (A type initializer threw an exception. To determine which type, inspect the InnerException’s StackTrace property.) —> System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException’s StackTrace property. —> System.Exception: The message filter indicated that the application is busy.

A COM call (IID: {638BB2DB-451D-4661-B099-414F34FFB9F1}, method index: 6) to an ASTA (thread 17580) appears deadlocked and was timed out. at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21 at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*) + 0xbe at __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x37 at Files.Filesystem.FolderSizeProvider…ctor() + 0x7d at _$ILCT$.$ILT$ReflectionDynamicInvoke$.InvokeRetV(Object, IntPtr, InvokeUtils.ArgSetupState&, Boolean) + 0x38 at System.InvokeUtils.CalliIntrinsics.Call(IntPtr, Object, IntPtr, InvokeUtils.ArgSetupState&, Boolean) + 0x43 at System.InvokeUtils.CallDynamicInvokeMethod(Object, IntPtr, Object, IntPtr, IntPtr, Object, Object[], BinderBundle, Boolean, Boolean, Boolean) + 0x179 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite, RuntimeResolverContext) + 0x164 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite, TArgument) + 0xe0 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite, RuntimeResolverContext) + 0xa1 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite, TArgument) + 0x10d at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite, ServiceProviderEngineScope) + 0x2c at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type) + 0xf2 at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2) + 0x9a at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type, ServiceProviderEngineScope) + 0x2b at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type) + 0xc at Microsoft.Toolkit.Mvvm.DependencyInjection.Ioc.GetServiceT + 0x3a at Files.Filesystem.DrivesManager…cctor() + 0x1b at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xf1

— End of inner exception stack trace — at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x1ad at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstruction(Void*, StaticClassConstructionContext*) + 0xf at Files.Filesystem.DrivesManager.<GetDrivesAsync>d__25.MoveNext() + 0x4f0 — 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) + 0x70 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.Filesystem.DrivesManager.<EnumerateDrivesAsync>d__15.MoveNext() + 0x92 — 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) + 0x70 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.App.<>c__DisplayClass77_0.<<InitializeAppComponentsAsync>b__0>d.MoveNext() + 0x18d — 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) + 0x70 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.App.<InitializeAppComponentsAsync>d__77.MoveNext() + 0x5d

— End of inner exception stack trace — —> (Inner Exception #0) System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException’s StackTrace property. —> System.Exception: The message filter indicated that the application is busy.

A COM call (IID: {638BB2DB-451D-4661-B099-414F34FFB9F1}, method index: 6) to an ASTA (thread 17580) appears deadlocked and was timed out. at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21 at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*) + 0xbe at __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x37 at Files.Filesystem.FolderSizeProvider…ctor() + 0x7d at _$ILCT$.$ILT$ReflectionDynamicInvoke$.InvokeRetV(Object, IntPtr, InvokeUtils.ArgSetupState&, Boolean) + 0x38 at System.InvokeUtils.CalliIntrinsics.Call(IntPtr, Object, IntPtr, InvokeUtils.ArgSetupState&, Boolean) + 0x43 at System.InvokeUtils.CallDynamicInvokeMethod(Object, IntPtr, Object, IntPtr, IntPtr, Object, Object[], BinderBundle, Boolean, Boolean, Boolean) + 0x179 — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite, RuntimeResolverContext) + 0x164 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite, TArgument) + 0xe0 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite, RuntimeResolverContext) + 0xa1 at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite, TArgument) + 0x10d at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite, ServiceProviderEngineScope) + 0x2c at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type) + 0xf2 at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2) + 0x9a at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type, ServiceProviderEngineScope) + 0x2b at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type) + 0xc at Microsoft.Toolkit.Mvvm.DependencyInjection.Ioc.GetServiceT + 0x3a at Files.Filesystem.DrivesManager…cctor() + 0x1b at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0xf1

— End of inner exception stack trace — at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x1ad at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstruction(Void*, StaticClassConstructionContext*) + 0xf at Files.Filesystem.DrivesManager.<GetDrivesAsync>d__25.MoveNext() + 0x4f0 — 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) + 0x70 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.Filesystem.DrivesManager.<EnumerateDrivesAsync>d__15.MoveNext() + 0x92 — 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) + 0x70 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.App.<>c__DisplayClass77_0.<<InitializeAppComponentsAsync>b__0>d.MoveNext() + 0x18d — 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) + 0x70 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.App.<InitializeAppComponentsAsync>d__77.MoveNext() + 0x5d <—

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vertigobocommented, Feb 17, 2022

From the UI I can see that this option is already turned off.

0reactions
Mdshobucommented, Jul 13, 2022

I’m Really Sorry Now Im Very Busy

On Wed, Jul 13, 2022, 20:22 Yair Aichenbaum @.***> wrote:

Closed #8395 https://github.com/files-community/Files/issues/8395 as completed.

— Reply to this email directly, view it on GitHub https://github.com/files-community/Files/issues/8395#event-6985509987, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2ARU4V7J4EZRASPKN5LBGDVT2YIFANCNFSM5OUF2SDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

All applications not responding, then crashing
1) Press Windows key + S, this will open search · 2) Type cmd, run command prompt as administrator · 3) Enter this...
Read more >
[Solved] Windows 10 Freezes on Startup or Boot
Method 1: Disable fast startup · 1) Type power option in the search box from Start, then click Power & sleep settings from...
Read more >
How to Fix Freezing & Other Issues During Windows Startup
An electrical short is often the cause of reboot loops and hard freezes while Windows is starting. Test the RAM. If one of...
Read more >
Windows computer freezes, hangs or crashes randomly
Windows 11/10 keeps hanging, crashing or freezing · 1. System Restore · 2. Run Junk Cleaner · 3. Run Windows Updates · 4....
Read more >
Windows 11 Freezes or Crashes Randomly? Here's How ...
If you find Windows 11 freezes on startup or after upgrade ... Step 2: Type performance in the search box of this app...
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