dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.87k stars 1.68k forks source link

Binding OnIdiom inside IsVisible causes crash in release mode #16725

Open the-crow-club opened 11 months ago

the-crow-club commented 11 months ago

Description

If we use binding to a IsVisible property along with OnIdiom markup extension app crashes in release mode at InitiliazeCompenent(). Works fine on debug mode.

Ex : `

ghost commented 11 months ago

Hi @the-crow-club. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

drasticactions commented 11 months ago

Having a GitHub repo with this code makes it easier for us to quickly debug, verify, and potentially fix the issue against a codebase that you can also test against to verify our changes, as well as use it to create test cases against in the future. I can understand that it can be tedious to do, but it will be helpful.

the-crow-club commented 11 months ago

@drasticactions Sorry but i cant provide git hub repo due to my limited access to github at my workspace

ghost commented 11 months ago

Hi @the-crow-club. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

the-crow-club commented 11 months ago

@XamlTest a bit of help here?

XamlTest commented 11 months ago

I can verify this issue on Visual Studio Enterprise 17.8.0 Preview 1.0. Repro on Android 13.0-API33 and iOS .NET 8, not repro on Windows 11 with below Project: 16725.zip

ghost commented 10 months ago

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.

hwsmo commented 8 months ago

Hi, I can also confirm the bug. It cost me a lot of nerves until I found out that this was the case. Very frustrating :(

masoltani commented 4 months ago

Hi, I can also confirm the bug. It cost me a lot of nerves until I found out that this was the case. Very frustrating :(

Hi, I am facing the same issue with .NET 8.

formerlymisterhenson commented 2 months ago

Facing the same issue - as a workaround I created a converter (which basically does the conditional part mentionend by op)