maui
maui copied to clipboard
MAUI Windows app launches as white screen and hangs
Description
I created a new .NET MAUI Blazor app, added minimal customization (details below) and ran it on Windows. When I launched it, it launched as a white rectangle and was hanging.
Here's the app (white screen on left), as well as the VS debugger, which I "paused" the app on to get a dump:
I captured a dump of the hung process (accessible only within Microsoft): DMP file
Steps to Reproduce
- Create new .NET MAUI Blazor app
- Replace the code in
MainPage.xaml.cs
with the following: (might not even be relevant, but I happened to do it)public MainPage() { InitializeComponent(); blazorWebView.BlazorWebViewInitialized += BlazorWebView_BlazorWebViewInitialized; } private void BlazorWebView_BlazorWebViewInitialized(object sender, Microsoft.AspNetCore.Components.WebView.BlazorWebViewInitializedEventArgs e) { #if WINDOWS var webview2 = e.WebView; webview2.CoreProcessFailed += Webview2_CoreProcessFailed; #endif } #if WINDOWS private void Webview2_CoreProcessFailed(Microsoft.UI.Xaml.Controls.WebView2 sender, Microsoft.Web.WebView2.Core.CoreWebView2ProcessFailedEventArgs args) { // log this event to see if it's the cause of the failure } #endif
- Run the app (with debugger, but not sure if it's relevant)
Note: This repos only rarely. Multiple people have seen it.
Link to public reproduction project repository
N/A
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
If you re-run the app, chances are it will work. It fails very randomly.
Relevant log output
No response
This situation seems easy to encounter on windows10 pc with poor performance.
Interesting. In my case it's a fairly high end desktop. Intel 10K CPU, SSD, tons of RAM. I don't see this issue often - maybe once a week? But I've definitely seen it before.
I mostly work with Blazor Hybrid apps, so I know I've seen it in .NET MAUI Blazor. I don't recall if I've seen it in non-Blazor apps.
Has anyone seen the "100% white app window" issue in a .NET MAUI app without Blazor?
Yes, I've experienced it without Blazor. I use dark mode so for me it's a black, unresponsive screen. Occasionally the screen layout/elements show but it remains unresponsive. It always works on a recompile and happens seldomly enough that I haven't looked into it.
I have a very high-end gaming pc, 13th gen i9, 64GB ram, SSD, RTX 4090, and this happens to me pretty frequently, sometimes 2 or 3 times in a row.
I get this with any MAUI app, w/ or w/o blazor.
I am having this issue as well with my MAUI Blazor app. For me, it is happening randomly, and I have not been able to find the exact steps to make the white screen show up every time, but it is happening when I debug with Android and Windows and also on iOS with the app deployed to TestFlight and the app store.
I am starting to notice that if I leave the iOS app running in the background for about a couple of hours and then come back to it and kill the app and reopen the app, that is when I get the white screen immediately after the splash screen.
The iOS crash logs don't have much, they just mention that watchdog killed the app because it was unresponsive.
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL"},
"termination" : {"code":2343432205,"flags":6,"namespace":"FRONTBOARD","reasons":["<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-update watchdog transgression: application<com.BlazorMaui>:49441 exhausted real (wall clock) time allowance of 10.00 seconds","ProcessVisibility: Foreground","ProcessState: Running","WatchdogEvent: scene-update","WatchdogVisibility: Background","WatchdogCPUStatistics: (","\"Elapsed total CPU time (seconds): 6.430 (user 4.080, system 2.350), 10% CPU\",","\"Elapsed application CPU time (seconds): 0.010, 0% CPU\"",") reportType:CrashLog maxTerminationResistance:Interactive>"]}
I've been trying to figure out where the app is getting hung up, and while debugging, I've noticed that the InitializeComponent()
call in the MainPage.xaml.cs
file is called, but in my MainLayout.razor.cs
file, I have a JSInterop
call in OnAfterRenderAsync()
and the app is never getting to this point.
When debugging using the Windows Machine option, this is where my Output file stops.
'MauiApp.exe' (CoreCLR: DefaultDomain): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\MauiApp.dll'. Symbols loaded.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\WinRT.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.WinUI.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.CompilerServices.Unsafe.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.ObjectModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.ComponentModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Numerics.Vectors.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Windows.SDK.NET.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Security.Cryptography.Algorithms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Security.Cryptography.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Security.Cryptography.Csp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Security.Cryptography.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.InteractiveExperiences.Projection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Controls.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.DependencyInjection.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Configuration.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Essentials.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Controls.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Components.WebView.Maui.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Logging.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Logging.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Configuration.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Graphics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Authorization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Components.Authorization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Xml.ReaderWriter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Private.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Net.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Logging.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.ComponentModel.TypeConverter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Components.WebView.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.JSInterop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Components.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Components.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Options.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Text.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Text.Encoding.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.DependencyInjection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Diagnostics.Tracing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Threading.ThreadPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Linq.Expressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Reflection.Emit.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'Snippets'.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Controls.Compatibility.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Reflection.Emit.Lightweight.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Reflection.Emit.ILGeneration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Reflection.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.Loader.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.FileProviders.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.FileProviders.Composite.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Graphics.Canvas.Interop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.FileProviders.Embedded.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Xml.XDocument.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Private.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Threading.Thread.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Text.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\xamarin\hotreload\Xamarin.HotReload.VSAgentAdapter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\netstandard.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\xamarin\hotreload\Microsoft.VisualStudio.DesignTools.TapContract.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\xamarin\hotreload\Xamarin.HotReload.Contracts.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'c:\program files\microsoft visual studio\2022\preview\common7\ide\extensions\xamarin\hotreload\Microsoft.Maui.Controls.HotReload.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.IO.Pipes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.Serialization.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Private.DataContractSerialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.Serialization.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.Serialization.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
(When the App freezes, it stops here.)
When the Windows debugging doesn't hang, I am missing information in the Output. I get everything above and also the following text.
(When the app doesn't freeze, I get these extra lines in the Output.)
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Text.Encodings.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.Intrinsics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\MauiApp.SharedLib.dll'. Symbols loaded.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Extensions.Configuration.Binder.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Identity.Client.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.IdentityModel.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Security.Claims.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.AspNetCore.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Collections.Immutable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'Microsoft.Identity.Client.MsalUiRequiredException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Identity.Client.MsalUiRequiredException' in System.Private.CoreLib.dll
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Diagnostics.DiagnosticSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MauiApp.exe' (CoreCLR: clrhost): Loaded 'C:\source\repos\MauiApp\MauiApp.Maui\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\System.Net.Security.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
EDIT: I was able to fix the white screen issue on my end. I am using MSAL, and there was an issue with the silent login.
I also have this issue with my MAUI Blazor app. At random times when I debug, a blank screen appears. Only restart debugging resolves this issue.
Chiming in: We experience this randomly with our MAUI app (no Blazor)
My app launches to a stuck white screen ~40% of the time I launch it with XAML Hot Reload enabled and debugger attached (I haven't tried other ways). I've only been using .net maui for 2 days and this has happened at least 30 times. It's a new .net maui project created with VS 2022 and the default application template.
Operating System: Windows 11 Home 64-bit (10.0, Build 22621) (22621.ni_release.220506-1250)
Processor: AMD Ryzen 7 3800X 8-Core Processor (16 CPUs), ~4.2GHz
Memory: 32768MB RAM
DirectX Version: DirectX 12
Card name: NVIDIA GeForce RTX 2070
Current Mode: 3440 x 1440 (32 bit) (165Hz)
Driver Version: 31.0.15.3699
Very hard to repro, but I will try with hot reload disabled for a bit and see if it happens. I wonder if there is some timing issue and it is clearing out the page...
I created new dotnet maui 8 app in Visual Studio 17.8.0 Priview 2.0. Then copied all the code from dotnet 7 project. Now the app screen is blank on Windows, Android and iOS.
I can also repro it sometimes on .NET 8 GA. At least it doesn't seem to happen in release.
I'm experiencing two separate issues:
Occasional hang during debugging
This seems a lot like what was described above - sometimes when debugging the App just hangs with a black screen (Dark theme) and I need to restart it. I have the following observations:
- It can happen several times in a row
- it happens more often after I've been working on the project for a good few hours; rarely (if ever) it happens at the start
- it's not exclusive to MAUI, as I've seen similar behavior with a Prism WPF app
- Started happening after update to .Net 6 for the Prism app.
This is more of a nuisance. Also I think it's more likely to be related to VS than MAUI specifically.
Consistent hang ONLY in Release build
This is an actual problem for me ATM. My app starts with Debugging (in both Debug and Release configs), but when build as a Windows executable - it starts up the window and hangs on a blanc purple page (It's only PoC project, so I haven't really changed any defaults form the Blazor Hybrid template). Looks similar to issue for Android target. Any help on this will be greatly appreciated.
My team experiences this issue intermittently. It seems to happen most frequently the first time I boot, launch VS, and launch a MAUI app (we use Blazor Hybrid). But it seems like it crops up randomly, too. Dark mode (win11) --> empty black window, normal --> empty white window. Happens with win11 and win10. Has been happening since .NET 6. I just had it happen this morning with .NET 8 MAUI Blazor project and VS v17.8.3.
Sometimes closing the empty app window does not stop the application from running/debugging in VS. It must be stopped manually from VS.
I've been running into this issue intermittently, recently playing around with the sample MAUI app from Visual Studio 2022. On the first startup, no changes were made, it showed this blank screen. I am running on Windows 10 and deploying to Windows 10.
Some observations:
- Sometimes repeats several times and has to be rebuilt
- When I close the window, the debugger is still running (unlike normally where it stops the debugger when closing the window) so I have to stop the execution from Visual Studio.
Any logs or similar that I could provide to help this issue along?
Hi @Eilon. 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.
This should be an unstable issue. We verified it with Visual Studio Enterprise 17.9.0 Preview 3. Not repro with MAUI Blazor and Maui project.
I have this issue quite a few times, with different projects, so I tried it out with Visual Studio Community 17.9.0 Preview 4.0.
I started up my .Net MAUI project, started the debugger and immediately triggered this bug. Usually, I stop the debugger and start again, and it works, but with the preview version, I could not get rid of it. Every single time I started, I had the blank screen. Rebuilding did solve it.
I then tried starting and stopping it a few times, without making any changes and no re-build happening, and after the 4th time I triggered the bug again.
My project is not public, so I can't share it. I hope someone else can do that. But I can confirm that this bug is still present (and just as annoying).
P.S. I tried with the Community Edition, but I have seen this on my work laptop with the Professional Edition as well.
TO REPRODUCE: Grab an older iPhone or iPad, e.g. one from 2016. Update your MAUI to latest, build the sample project (file -> new project) and you should be hit with this problem every single time. It doesn't depend on your build machine, it depends on the speed of the target device (iPhone or iPad).
The "bug" is in MAUI itself, due to it taking too long to finish initializing the app. What iOS does is give it 20 seconds and once that's up, it terminates it. Can verify by clicking on View -> Other Windows -> Device Log, wait for the app to get terminated and then look for "watchdog transgression" in Device Log.
Put bluntly, MAUI is too slow and could do with some optimization.
Still experiencing this with VS2022 v17.8.5 and a .NET 8 MAUI Blazor hybrid app. I can close the empty app window and the debugger continues to run in VS. Seems to happen far less frequently than before, though.
Deploying as win-x64, developing on win11 machine with decent specs.
TO REPRODUCE: Grab an older iPhone or iPad, e.g. one from 2016. Update your MAUI to latest, build the sample project (file -> new project) and you should be hit with this problem every single time. It doesn't depend on your build machine, it depends on the speed of the target device (iPhone or iPad).
The "bug" is in MAUI itself, due to it taking too long to finish initializing the app. What iOS does is give it 20 seconds and once that's up, it terminates it. Can verify by clicking on View -> Other Windows -> Device Log, wait for the app to get terminated and then look for "watchdog transgression" in Device Log.
Put bluntly, MAUI is too slow and could do with some optimization.
I experience this issue with debugging with windows machine as the target. It's not related to IOS. Startup time is not long, maybe 1-2 seconds. You maybe right, that it has something to do with some kind of response time in startup, but if you experience it in IOS as well, then it must be something in MAUI itself.
Same issue here with MAUI app (debugging Windows Machine), Blank screen now and again (maybe once a day). Restart debugging always helps. Still there after upgrading to 17.8.6.
.NET MAUI App VS 2022 Community edition 17.8.6 Windows 11 Pro Build 22631 12th Gen Intel(R) Core(TM) i9-12900KS 65Gb memory
Same issue, very annoying. Is this only in debug? I am afraid to ship this app to customers...
Windows 11 VS 2022 High end PC: Ryzen 7, 32GB RAM, RTX 3080
@VictorioBerra I have an app that I'm using internally on iOS and Android built on .net6 and I haven't seen this happen in release, but ofc you should test your own version before you ship.
I wonder if it will help to update the version of the Windows App SDK? I do know we are using an older version for some known issues with advanced/custom/win32 reasons, but that is more of a safe choice as opposed to it not working. So updating the WinAppSDK my fix a few issues generally.
I face the same problem here with Visual Studio Enterprise 2022 version 17.8.6, using MAUI app .NET version 8, without Blazor.
A blank window is shown, and it happens 8-9 times out of 10 when I try to debug on Windows Machine target, even cleaning the solution and/or project, which causes frustration. The worse is that when closing this blank window, the debugger is still working and needs me to hit the Stop
button!!
I even tried two times to open VS Installer, and hit More
> Repair
which took quite long time in downloading and installing about 801 packages then restarting the PC and after all nothing works!
I remember this was happening also with previous versions as well, and I had hope this annoying bug would be fixed finally, but unfortunately it's not! This causes a lot of loses, especially when you're giving lecture/course to students, and you have to keep restarting the app and debug many times to explain something, but in vain even with an empty default MAUI project without any modification!
My machine is modern one, Intel i7-12700H, 16GB RAM, GeForce RTX 3060 6GB, and SSD M.2, with Windows 11 version 10.0.22631.3007
A new notice in regarding to this point
The worse is that when closing this blank window, the debugger is still working and needs me to hit the Stop button!!
When I opened the Task Manager, I found the MAUI app itself is listed in the Task Manager processes list as if I didn't close it like any other normal application even though it's no longer shown on the screen nor in the Taskbar after I hit the x
button, and when I did right-click then End Task
the Visual Studio ended the debug!
In addition to this, Event Viewer doesn't show any error nor warning log about the app nor even about the Visual Studio!
BUT in Visual Studio's Output window
, these were the latest two lines:
The program '[21712] MauiApp.exe: Program Trace' has exited with code 0 (0x0).
The program '[21712] MauiApp.exe' has exited with code 1 (0x1).
Interesting. In my case it's a fairly high end desktop. Intel 10K CPU, SSD, tons of RAM. I don't see this issue often - maybe once a week? But I've definitely seen it before.
I mostly work with Blazor Hybrid apps, so I know I've seen it in .NET MAUI Blazor. I don't recall if I've seen it in non-Blazor apps.
Has anyone seen the "100% white app window" issue in a .NET MAUI app without Blazor?
See Update 2 for potential solution.
Same here, but on Android devices and Emulators (api 34). Used to work 2 days ago, but today I did
- dotnet workload update
- update visual studio 2022 to latest I only did the ugprade because SecureStorage stopped working with the upgrade i did roughly two weeks ago, also app release just wouldn't work on Android anymore. App used to work just fine before these two upgrades.
Result (Emulator)
Repeat
- Create a new maui blazor project in vs2022.
- Run Debug on Windows, it works.
- Run on any Android emulator or device, MainLayout never loads.
Zip with project and bin output for android. net8.0-android.zip new-project.zip
Update 1 Stopping debugger will close the blank app window. Then an app instance will appear in Recent Apps, running. When focused, the app will run normally. Attaching the debugger seems to contribute to the problem somehow.
Update 2 (Solution?)
Removing checkbox from Common Language Runtime Exceptions solved the problem for my app.
It's not specific for the blazor hybrid. I experience it often with the non-hybrid MAUI. Looking through all the comments, it appears to be on several platforms. Android, iOS and Windows were mentioned.
I wonder if it will help to update the version of the Windows App SDK? I do know we are using an older version for some known issues with advanced/custom/win32 reasons, but that is more of a safe choice as opposed to it not working. So updating the WinAppSDK my fix a few issues generally.
It does not help. I didn't experience the white screen problem at all until cca 2 weeks ago when i upgraded all packages and Visual Studio. Upgraded workloads today and now the app won't go at all beyond white screen on Android (device or emulator). On win still works fine like it used to.