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

[MAUI][dotnet8][Windows] - A blink occurs when opening a new window #26849

Open
rodirigos opened this issue Dec 27, 2024 · 17 comments
Open

[MAUI][dotnet8][Windows] - A blink occurs when opening a new window #26849

rodirigos opened this issue Dec 27, 2024 · 17 comments
Labels
area-controls-window Window i/regression This issue described a confirmed regression on a currently supported version s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@rodirigos
Copy link

rodirigos commented Dec 27, 2024

Description

In .NET 7, windows wait to render the content before opening. In .NET 8 and later, an unintended flicker occurs while loading this content. This flicker comes with a default background.

Image

Steps to Reproduce

1 - Create multiple windows using Application.Current.OpenWindow()
2 - See the blink before opening the content

To check a reprodution, just open this application here
https://github.com/rodirigos/MauiBlinkingTest

It is also happening in Winui directly, but the blink is way faster
microsoft/microsoft-ui-xaml#10259

Link to public reproduction project repository

https://github.com/rodirigos/MauiBlinkingTest
It is also happening directly in WinUI
https://github.com/rodirigos/NewWindowTest

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.101

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@rodirigos rodirigos added the t/bug Something isn't working label Dec 27, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@danielancines
Copy link

I have a MDI large application for a Bank in .net Maui, using Pinvoke.SetParent and not able to migrate to .net 8 and 9 because of this behavior.

@lfmouradasilva
Copy link

Same issue here. This is a breaking change, and it’s blocking me from updating my application.

@fpedrolucas95
Copy link

I'm also experiencing this flickering issue in a .NET Maui desktop application. This is a significant blocker for updating to .NET 8 and 9, as it creates a poor user experience.

@Elwilton
Copy link

I’m facing the same issue. I’m trying to migrate from .NET 7 to .NET 8 and having problems with the presentation of new screens.

@jfversluis jfversluis added s/needs-repro Attach a solution or code which reproduces the issue area-controls-window Window potential-regression This issue described a possible regression on a currently supported version., verification pending labels Dec 28, 2024
@rodirigos
Copy link
Author

rodirigos commented Dec 28, 2024

In this example, you can open multiple windows by just clicking the button in the default test application.
https://github.com/rodirigos/MauiBlinkingTest

It is really simple to reproduce the issue. It will open multiple windows and you can check the behavior since the pages were in another color.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Dec 28, 2024
@RoiChen001
Copy link

@rodirigos The repository you provided is private and we don't have access to it. Could you add it to the public repository or recreate a new sample project for us? Looking forward to your reply!

@rodirigos
Copy link
Author

Already changed the visibility!

@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed i/regression This issue described a confirmed regression on a currently supported version and removed potential-regression This issue described a possible regression on a currently supported version., verification pending labels Dec 31, 2024
@RoiChen001
Copy link

This issue can be reproduced at the latest 17.13.0 Preview 2.1(9.0.21 & 8.0.100), but it worked fine at .NET7.

@danielancines
Copy link

danielancines commented Jan 3, 2025

Hey guys, any update about this? We finished a large trading application upgrade to dotnet 8, but we cannot move forward because of this situation. Since .net 7 is out of support, my manager is asking me every day about a beta version using dotnet 8.

@mattleibow
Copy link
Member

We updated WinUI in each version of .NET MAUI, so this may be a bug that is in WinUI and due to MAUI loading things at launch it makes it more noticeable.

Did you run as release mode without the debugger attached? Also, can you enable <PublishReadyToRun>true</PublishReadyToRun> when publishing as this does some more AOT compilation.

I wonder if this is just a delay with various hot reload things happening and not actually a release issue. I am sure we pause things at launch to prepare the hot reloads and debuggers.

@mattleibow mattleibow removed the s/needs-attention Issue has more information and needs another look label Jan 6, 2025
@mattleibow mattleibow added this to the Backlog milestone Jan 6, 2025
@mattleibow mattleibow added the s/needs-info Issue needs more info from the author label Jan 6, 2025
@rodirigos
Copy link
Author

Yes. In release version, same behavior.
Image

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Jan 6, 2025
@rodirigos
Copy link
Author

Hi. Any update on this problem?

@danielancines
Copy link

Morning guys, any update on this?

@lfmouradasilva
Copy link

Hi. Any update on this?

@fpedrolucas95
Copy link

Any update about this issue?

@Elwilton
Copy link

Any update on this issue?
My team and I had to pause a migration because of this issue.
Do we have any predictions for a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-window Window i/regression This issue described a confirmed regression on a currently supported version s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants