Files
Files copied to clipboard
Bug: When opening Files, it will close after 1–2 seconds
Description
When I enable “Toggle the preview pane”, it will automatically close when I close it and open it again
Screenshot
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.
Steps To Reproduce
- Open Files App
- Click the three dots "..." or "See more" in the upper right corner
- Click "New Pane"
- Enable "Toggle the preview pane" or press "Ctrl + P"
- Close the Files App
- 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
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 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.
I reproduced by following steps.
- Enable the Tags widget.
- Enable the preview pane.
- 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 thank you so much
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
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 Do you think this is related issue in the WinUI team? https://github.com/microsoft/microsoft-ui-xaml/issues/7768
@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 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.
@wharjack this issue will be resolved in the upcoming v2.5.20 release.