Skip to content

Bug: Opening a new window when a window is present causes weird behaviour #16835

@zzsmkr

Description

@zzsmkr

Description

While having the app running in background, opening a new window (using ctrl+n, moving a tab out of existing window etc.) causes the Files app to start up and load for some time like the option is turned off. Even if "leave app running in background" is turned on, the tray icon will disappear upon closing all windows, but the app wil still run in background. Opening any new windows in this state causes the app to slowly load instead of instantly "popping in" until the background process is terminated completely.

Steps To Reproduce

  1. Have files running in background
  2. Have a Files app window open
  3. Open up a new window without closing the first one

Files Version

3.9.1.0

Windows Version

26100.3194

User ID

7A79F09D-74C2-41FB-B96E-7E1DDD988CE7

Log File

2025-02-20 16:21:40.2647|Information|App launched. Launch args type: ProtocolActivatedEventArgs
2025-02-20 16:21:40.7652|Information|Adding cloud provider "iCloud Drive" mapped to C:\Users\zaza\iCloudDrive
2025-02-20 16:21:41.2567|Information|Adding cloud provider "iCloud Photos" mapped to C:\Users\zaza\Pictures\iCloud Photos\Photos
2025-02-20 16:21:41.2708|Information|Drive added: C:, Fixed
2025-02-20 16:21:42.5329|Information|STORE: Checking for updates...
2025-02-20 16:21:50.6048|Information|App launched. Launch args type: ProtocolActivatedEventArgs
2025-02-20 16:21:51.0583|Information|Adding cloud provider "iCloud Drive" mapped to C:\Users\zaza\iCloudDrive
2025-02-20 16:21:51.8187|Information|Drive added: C:, Fixed
2025-02-20 16:21:51.9311|Information|Adding cloud provider "iCloud Photos" mapped to C:\Users\zaza\Pictures\iCloud Photos\Photos
2025-02-20 16:21:52.3267|Information|System.Runtime.InteropServices.COMException (0x8001010E)
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.Interop.WinRTNotifyCollectionChangedEventArgsRuntimeClassFactory.CreateInstanceWithAllParameters(NotifyCollectionChangedAction action, IList newItems, IList oldItems, Int32 newIndex, Int32 oldIndex)
at ABI.System.Collections.Specialized.NotifyCollectionChangedEventArgs.CreateMarshaler2(NotifyCollectionChangedEventArgs value)
at ABI.System.Collections.Specialized.NotifyCollectionChangedEventHandler.NativeDelegateWrapper.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Files.App.ViewModels.UserControls.Widgets.QuickAccessWidgetViewModel.<>c__DisplayClass19_0.<<ModifyItemAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Files.Shared.Extensions.SafetyExtensions.IgnoreExceptions(Func1 action, ILogger logger, Type exceptionToIgnore)
2025-02-20 16:21:54.2501|Information|STORE: Checking for updates...
2025-02-20 16:22:00.0440|Information|App launched. Launch args type: ProtocolActivatedEventArgs
2025-02-20 16:22:00.4699|Information|Adding cloud provider "iCloud Drive" mapped to C:\Users\zaza\iCloudDrive
2025-02-20 16:22:01.2462|Information|Drive added: C:, Fixed
2025-02-20 16:22:01.3163|Information|Adding cloud provider "iCloud Photos" mapped to C:\Users\zaza\Pictures\iCloud Photos\Photos
2025-02-20 16:22:02.1795|Information|STORE: Checking for updates...
2025-02-20 16:22:04.3921|Information|App launched. Launch args type: ProtocolActivatedEventArgs
2025-02-20 16:22:04.8263|Information|Adding cloud provider "iCloud Drive" mapped to C:\Users\zaza\iCloudDrive
2025-02-20 16:22:05.5513|Information|Drive added: C:, Fixed
2025-02-20 16:22:05.8484|Information|Adding cloud provider "iCloud Photos" mapped to C:\Users\zaza\Pictures\iCloud Photos\Photos
2025-02-20 16:22:06.6489|Information|STORE: Checking for updates...
2025-02-20 16:22:17.7214|Information|The app is being activated. Activation type: ProtocolActivatedEventArgs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions