maui
maui copied to clipboard
.NET MAUI Blazor crash on Windows platform when call Shell.Current.GoToAsync()
Description
I am testing to use a login page with BlazorWebView and switch to Shell after login. The app crashes on Windows platform, but it works well on Android and iOS.
Steps to Reproduce
- Clone the below git repository
$ git clone https://github.com/shugaoye/PassXYZLib.git
$ git clone https://github.com/shugaoye/PassXYZ.Vault2.git
$ cd PassXYZ.Vault2
$ git checkout CH07_02
- Load solution file from
PassXYZ.Vault2/PassXYZ.Vault.sln. Build and test on Windows. It will crash. Username: test1 Password: 12345 - Build and test on Android and iOS. It works well.
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net6.0-windows10.0.19041.0
Did you find any workaround?
I cannot find any workaround so far. There is no much can see in the log. The only message that I can see is:
The program '[20644] PassXYZ.Vault.exe' has exited with code 3221225477 (0xc0000005) 'Access violation'.
Relevant log output
'PassXYZ.Vault.exe' (CoreCLR: DefaultDomain): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\PassXYZ.Vault.dll'. Symbols loaded.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\KPCLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\PassXYZLib.dll'. Symbols loaded.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'Snippets'.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.IO.Compression.ZipFile.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
PassXYZ: OnStart, InBackground=False
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.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.
'PassXYZ.Vault.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.
'PassXYZ.Vault.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.
'PassXYZ.Vault.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.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.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\KeePassLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Drawing.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
PxDatabase: Created instance
LoginUser created.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
LoginViewModel: data_path=C:\Users\Roger_Ye\AppData\Local\data
PxUser: LoadLocalUsersAsync 3
username=test1, password=12345
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\PassXYZ.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Net.WebClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.ComponentModel.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Net.Requests.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.ComponentModel.EventBasedAsync.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.IO.Compression.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Diagnostics.Process.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x1d28 has exited with code 0 (0x0).
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\SkiaSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
AppShell: source=//LoginPage, target=//RootPage
ItemsPage Browse created
ItemsViewModel: loading test1
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Runtime.InteropServices.RuntimeInformation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'PassXYZ.Vault.exe' (CoreCLR: clrhost): Loaded 'D:\src\github\PassXYZ.Vault2\PassXYZ.Vault\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\AppX\System.Buffers.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
ItemsViewModel: loading from test1
The program '[20644] PassXYZ.Vault.exe' has exited with code 3221225477 (0xc0000005) 'Access violation'.
@shugaoye run with your attached project on windows, I could not find code of GoToAsync() and login page. could you take a look if attached repro project is right.
Hi @shugaoye. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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.
Sorry, I forget to mention the tag to be used. Please checkout tag CH07_02.
git checkout CH07_02
You can set a break point at function OnLoginClicked() in file PassXYZ.Vault/ViewModels/LoginViewModel.cs
@shugaoye thanks for your update, but go into the CH07_02 tag and download the file, file not find in the solution, could you confirm with this? Are there any items missing?

Hi @shugaoye. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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.
Please checkout PassXYZLib at the same level of PassXYZ.Vault. $ git clone https://github.com/shugaoye/PassXYZLib.git
I am having same problem: "(0xc0000005) 'Access violation'." No problem on Android emulator.
https://github.com/dotnet/maui/discussions/8462
Problem is going from razor page which is used in BlazerWebView in a xaml page to another xaml page.
verified repro on windows.
I created a simple app and you can repeat as below:
- Checkout the code
git clone https://github.com/shugaoye/mauiapp.git
git checkout issue8372
- After you clone this project, please build MauiApp1 project.
- Run this app, In the login page, you can just click the Sign in button.
Please set breakpoint at the below function in
MauiApp1/Pages/Login.razor.cs
private async void OnLogin(MouseEventArgs e)
{
await Shell.Current.GoToAsync($"//MainPage");
Debug.WriteLine($"Login clicked and invoke GoToAsync");
}
- The above code should bring you to
MainPagewhich is a XAML page, but it crashes.
Same happens on non-razor. As soon as I prefix the route with "//" for an absolute route it crashes.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
I had this same issue, but it was the case of me forgetting to register the page route in the AppShell code-behind in a .NET MAUI app.
I have a similar issue but I am not using shell.
My app seems to crash when I call PushAsync on the navigation page.
@Hackmodford Try the "solutions" here:
https://stackoverflow.com/q/68639893/7076615
In particular, try installing that third-party template file thing. You have to search for the title of it in the marketplace - the link in the answer is broken afaik. So when you create your Content Page, use the third-party templates and not the default .NET MAUI one. I don't think this will solve it, but it's worth a try.
I may have solved it by making sure to call pushasync from the main thread.
Hi @shugaoye. 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.
Verified this issue with Visual Studio Enterprise 17.8.0 Preview 1.0. Not repro on windows platform.