-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Windows] Connectivity changed on throws an exception and sometimes crashes the app #7393
Comments
Basic repro on casual Wi-Fi × airplane mode switching on Windows in sample MAUI Blazor app:
|
Repro no. 2.
|
Hi, any changes in the status of this issue? Example: When I share network from phone to laptop and turn internet on/off on the phone, the Windows app crashes when an event handler is registered just as shown in the sample. |
not repro with vs main build(32627.385). There is no wlan module on my machine, so I change internet connectivity by connecting and disconnecting VPN. |
This issue is for any Internet connection type . Not only WiFi. You can simply disable Ethernet connection in settings, that would work as well. |
Is this bug still happening? I can't reproduce nor can I repro the other issue #9972 not the winui bug microsoft/WindowsAppSDK#2965 (comment) If this is happening still, please update this issue with a repro sample and attach the Also, attach the exact windows build using |
Hi @janseris. 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. |
Hi @janseris. 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 issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
When I switch between airplane mode and non-airplane mode in the train (train wifi is available) first ConnectivityChanged works well.
Every subsequent change of the connectivity throws this exception:
Also, when this happens, the
Connectivity.ConnectivityChanged
event handler is usually (not regularly) not hit again (I print current connection status in this event handler).Sometimes, the app crashes with this exception and sometimes it does not. The application crashes when ConnectivityChanged eventhandler is executed. The application however sometimes still crashes without entering the event handler at all.
There is no issue on Android.
Steps to Reproduce
MAUI Blazor app Debug mode
Version with bug
Release Candidate 3 (current)
Last version that worked well
RC 2 I think
Affected platforms
Windows
Affected platform versions
Windows 10 21H1
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: