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
22.21k stars 1.75k forks source link

Black Screen when resuming iOS App when debugging #24793

Closed czuck closed 1 month ago

czuck commented 1 month ago

Description

On iOS, when app is minimized and then resumed it displays a black screen. Stop the VS debugger and app resumes properly.

Steps to Reproduce

Create a File New MAUI App. Run the app. Minimize the app, then resume it - the first time it normally works properly. Minimize the app, then resume it - the screen is black. repeat, the issue will persist. Stop the debugger and resume the app, the screen paints.

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.6.1

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

QianaJiao commented 1 month ago

It can be repro on 9.0.0-rc.1.24453.9 & 8.0.82 & 8.0.3, I guess this should not be an SDK issue. If you open the XAML live Preview windows, this bug will repro. If you do not open it, the bug does not repro. Animation NOTE: not repro on android and Windows platform.

jfversluis commented 1 month ago

@drasticactions so is this related to the preview or Hot Reload or something maybe?

drasticactions commented 1 month ago

@jfversluis I would need to debug it, but my guess based on that video is "kinda" leaning toward "yes"

Live Preview calls for screenshots from Visual Diagnostics in MAUI to update its view. It could be that calling it either in the background or when the window reloads is causing it to hang. But I don't think it's code directly inside of the hot reload agents that could cause it.

So it could be something that would need to be fixed in MAUI when calling for the screenshots, in the hot reload agents to not try to get screenshots if the app is backgrounded, or both.

It should be moved to VSFeedback for now.

dotnet-policy-service[bot] commented 1 month ago

Thanks for the issue report @czuck! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
dotnet-policy-service[bot] commented 1 month ago

Thanks for the issue report @czuck! This issue appears to be a problem with Visual Studio (Code), so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS (Code).

If you encounter a problem with Visual Studio or the .NET MAUI VS Code Extension, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or .NET MAUI VS Code Extension repository to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.