Layout cycle detected when resizing a view that has a NavigationView and TabBar
ArchieCoder opened this issue · 5 comments
Current behavior
When the view gets smaller, an exception is fired and the app crashes
Expected behavior
No crash
How to reproduce it (as minimally and precisely as possible)
or
1- Create a new project with the default option (Fluent and Materal, it's irrevelant).
2- Copy paste the page content of the HomePage from Commerce app. The goal is to test the NavigationView + Tab bar. Fix the namespaces.
3- Deploy and resize the app.
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
5.2.121
Affected platforms
Windows (WinAppSDK)
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
Interesting, I tried to resize super fast and I was able to see the TabBar for 1 second before the app crashes.
Good news, the utu:AutoLayout is the cause the crash.
If you replace utu:AutoLayout with StackPanel, there is no crash however, the rendering is not what to expect.
At least, it can help investigate the issue.
Good news, the utu:AutoLayout is the cause the crash.
If you replace utu:AutoLayout with StackPanel, there is no crash however, the rendering is not what to expect.
At least, it can help investigate the issue.
Yes @kazo0 also noticed the same thing with his tests. We will continue to investigate.
Thank you for the feedback @ArchieCoder, appreciated.
Cause of the bug has been found and this PR should fix it: #1138
Thanks @ArchieCoder for reporting this bug!
cc @kazo0