Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Debug - A cycle occurred while laying out the GUI #17234

Open
pishah opened this issue Sep 6, 2023 · 5 comments
Open

Windows Debug - A cycle occurred while laying out the GUI #17234

pishah opened this issue Sep 6, 2023 · 5 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 s/triaged Issue has been reviewed t/bug Something isn't working
Milestone

Comments

@pishah
Copy link

pishah commented Sep 6, 2023

Description

I get a debug error "A cycle occurred while laying out the GUI" when using the Window Snap to size, but only for the smallest size that takes up 25% of the Screen. So if I do Windows Key + Left, it is fine and takes up half the screen. But if I then do Windows Key + Up/Down to use only the corner of the screen I get that error and the app closes.

It doesn't happen in every project but this particular one "link at the end" it does. Very possible I am doing something wrong, very new to Maui and trying to learn. To reproduce, run the project and snap it to any of the corners in Windows and it will crash. The project is here https://github.com/pishah/SnowballCalculator

Thank you

Steps to Reproduce

  1. Build/run the project https://github.com/pishah/SnowballCalculator
  2. Snap the Application to any of the corners of Windows so it only takes up 25% of the screen.
  3. You should get the error and the app will close.

I still haven't figured out exactly what is causing it, sorry, if I do I will update.

Link to public reproduction project repository

https://github.com/pishah/SnowballCalculator

Version with bug

7.0.92

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@pishah pishah added the t/bug Something isn't working label Sep 6, 2023
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Sep 6, 2023
@PureWeen PureWeen added this to the Backlog milestone Sep 6, 2023
@ghost
Copy link

ghost commented Sep 6, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@PureWeen
Copy link
Member

PureWeen commented Sep 6, 2023

Can you test on the latest .NET8?

@XamlTest XamlTest added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Sep 8, 2023
@ghost
Copy link

ghost commented Sep 8, 2023

Hi @pishah. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@XamlTest
Copy link
Collaborator

XamlTest commented Sep 8, 2023

Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0. Cannot repro this on Windows 11(7.0.9 and 8.0.0-preview.7.23376.1) with below Project:
SnowballCalculator.zip
Snap

@pishah
Copy link
Author

pishah commented Sep 8, 2023

Thank you, maybe it is just my two computers. Weird that all the Textboxes are cutoff in that video though. I have never seen that before. Maybe a much bigger issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants