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.

Crash when immediately switching while a folder is being loaded

See original GitHub issue

Describe the bug When you instantly switch while the folder loads, the app crashes.

To Reproduce Steps to reproduce the behavior:

  1. Create a new tab.
  2. Click on a large folder pinned on the sidebar
  3. Switch two the another tab very fast
  4. App will crash

Expected behavior App shouldn’t crash and the refresh task should run in background.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 Pro 2004
  • App version: v0.13.0 (Downloaded from the Microsoft Store)

Additional context

2020-08-14 14:08:36.7060|ERROR|Files.App|Object reference not set to an instance of an object.|System.NullReferenceException: Object reference not set to an instance of an object.
   at Files.Filesystem.ItemViewModel.UpdateDirectoryInfo() + 0xf0
   at Files.Filesystem.ItemViewModel.<RapidAddItemsToCollectionAsync>d__70.MoveNext() + 0x970
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object) + 0x1e
   at System.Action`1.Invoke(T) + 0x28
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33
   at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
   at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32) + 0xb8
   at __Interop.ForwardComStubs.Stub_11[TThis](__ComObject, Int32) + 0x24
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object, UnhandledErrorDetectedEventArgs) + 0x3d
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object, UnhandledErrorDetectedEventArgs) + 0x75
   at System.EventHandler`1.Invoke(Object, TEventArgs) + 0x2e
   at __Interop.Intrinsics.HasThisCall__23[TArg0](Object, IntPtr, Object, TArg0) + 0x36
   at Files!<BaseAddress>+0x12a44a0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JaiganeshKumarancommented, Aug 17, 2020

@gave92 I tried it and it still seems to crash but this time it needs to be done extremely fast (< 50ms). Regular users may not notice it but we should fix it.

1reaction
JaiganeshKumarancommented, Aug 14, 2020

@gave92 But that’s for the recycle bin. I will build the latest branch and try it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Explorer crashes when moving/opening files
Nearly every time I try to open or move a file, the folder it is in stops responding and eventually causes Windows Explorer...
Read more >
Crash on opening a different directory while another ...
If I open another directory while the directory is loading (circular progress is running), Files crashes after about 10 seconds.
Read more >
Windows Explorer crashes when opening folder with a ...
It appears the folder view is the problem. Change the view for that folder and its sub folders. The folder does not crash...
Read more >
Windows 10 Explorer Keeps Crashing? Here Are 10 ...
Follow the instructions below to do that: Step 1: Open File Explorer, then right-click the folder you want to make changes to choose...
Read more >
[SOLVED] Windows File Explorer Keeps Crashing on ...
We are going to tell you how to solve Windows 10 File Explorer Crash easily and quickly. Just take a few minutes to...
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