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] Setting IsClippedToBounds="True" inside a Border control will crash on Windows #18937

Open
activa opened this issue Nov 21, 2023 · 5 comments · May be fixed by #25506
Open

[Windows] Setting IsClippedToBounds="True" inside a Border control will crash on Windows #18937

activa opened this issue Nov 21, 2023 · 5 comments · May be fixed by #25506
Labels
area-controls-border Border area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@activa
Copy link
Contributor

activa commented Nov 21, 2023

Description

Whenever a layout inside a <Border> control has IsClippedToBounds="True", the app will crash on Windows. It's working fine on iOS and Android

For example, this will crash on Windows:

<Border>
    <StackLayout IsClippedToBounds="True"></StackLayout>
</Border>

The same issue is happening with .NET 7. Didn't test .NET 6

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/activa/MauiBugClippedToBounds

Version with bug

8.0.3

Is this a regression from previous behavior?

No, this is something new

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

When launching a debug build, the error message says "An unhandled Win32 error occurred"
@activa activa added the t/bug Something isn't working label Nov 21, 2023
@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter area-controls-border Border labels Nov 22, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Nov 22, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Dec 4, 2023
@ghost
Copy link

ghost commented Dec 4, 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.

@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Dec 25, 2023
@XamlTest
Copy link

Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on Windows 11 and MacCatalyst, not repro on Android 14.0-API34 and iOS 17.0 with below Project:
18937.zip

@olekssmyk
Copy link

I also see that crash only on Windows

@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@activa
Copy link
Contributor Author

activa commented Jul 25, 2024

Is this ever going to be fixed? This bug was reported 8 months ago.

@Migoked
Copy link

Migoked commented Aug 29, 2024

Bug is still there, please fix it.

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