Files icon indicating copy to clipboard operation
Files copied to clipboard

Bug: When opening Files, it will close after 1–2 seconds

Open wharjack opened this issue 2 years ago • 8 comments

Description

When I enable “Toggle the preview pane”, it will automatically close when I close it and open it again Screenshot image

From Windows Event Viewer

Category: Files.App.App
EventId: 0

A cycle occurred while laying out the GUI.

Exception: 
Microsoft.UI.Xaml.LayoutCycleException: A cycle occurred while laying out the GUI.

Solution I found out that by disabling the “Toggle the preview pane” fixes the problem.

image

Steps To Reproduce

  1. Open Files App
  2. Click the three dots "..." or "See more" in the upper right corner
  3. Click "New Pane"
  4. Enable "Toggle the preview pane" or press "Ctrl + P"
  5. Close the Files App
  6. Open it again

Requirements

Fix crash when opening Files App because of adding a New Pane in Home and enabling “Toggle the preview pane”

Files Version

Version: 2.4.71.0, Windows Version: 10.0.19044.2965

Windows Version

Windows 10 Pro 21H2 27/‎08/‎2022 19044.2965 Windows Feature Experience Pack 1000.19041.1000.0

Log file

debug.log

wharjack avatar May 16 '23 20:05 wharjack

Thanks for the report. I am unable to reproduce this, Can you give the following information.

  • Can you see if this is an issue in the preview version. https://files.community/download

Josh65-2201 avatar May 16 '23 22:05 Josh65-2201

@Josh65-2201 this type of issue is usually dependent on the screen size and resolution, at the end of the day it's an issue with WinUI but there are workarounds that sometimes help. The main challenge is being able to reproduce the issue to work on a fix.

yaira2 avatar May 16 '23 23:05 yaira2

I reproduced by following steps.

  1. Enable the Tags widget.
  2. Enable the preview pane.
  3. Start the dual pane mode.

Edit: I have found that the crash occurs when the tag widget is enabled and the pane is not wide enough. Whether or not dual panes or the preview pane is enabled is not directly relevant.

hishitetsu avatar May 17 '23 00:05 hishitetsu

@hishitetsu thank you so much

image

I forgot I changed some of its settings

Yes, it won't close if it's full screen. I tried it and it's okay

wharjack avatar May 17 '23 06:05 wharjack

The crash seems to occur when the home page is too long vertically. The Tags widget tends to be longer and crashes more easily, but this is not a problem with the Tags widget itself.

hishitetsu avatar May 17 '23 15:05 hishitetsu

@hishitetsu Do you think this is related issue in the WinUI team? https://github.com/microsoft/microsoft-ui-xaml/issues/7768

0x5bfa avatar Jun 28 '23 08:06 0x5bfa

@hishitetsu Do you think this is related issue in the WinUI team? https://github.com/microsoft/microsoft-ui-xaml/issues/7768

There is a difference between WinUI 2 and 3, but it may be so.

hishitetsu avatar Jun 28 '23 08:06 hishitetsu

@hishitetsu Do you think this is related issue in the WinUI team? https://github.com/microsoft/microsoft-ui-xaml/issues/7768

It's the same issue, that said, the workaround mentioned won't work for us because we're on WinUI 3.

yaira2 avatar Jun 28 '23 16:06 yaira2

@wharjack this issue will be resolved in the upcoming v2.5.20 release.

yaira2 avatar Jul 04 '23 15:07 yaira2