maui
maui copied to clipboard
[Potential Regression] Connectivity.ConnectivityChanged app crash
Description
I have a user who is reporting crashes after the recent update to 8.0.7 when the app is open in the foreground and the PC goes to sleep/hibernate and wakes up again. He uses Windows 10. I can't reproduce it myself with Windows 11. According to the stack trace, this could be caused by this change. [WinUI] Add workaround for Connectivity check on Win10 #19261
We use
Connectivity.ConnectivityChanged += (sender, args) =>
{
_isNetworkConnected = args.NetworkAccess > NetworkAccess.None;
WeakReferenceMessenger.Default.Send(new NetworkStateChangedMessage());
};
After waking up he gets the following exception (pipe is being closed):
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.6 SR1
Affected platforms
Windows
Affected platform versions
Windows 10
Did you find any workaround?
no
Relevant log output
No response