-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[regression/7.0.0] Connectivity.ConnectivityChanged Event throws exception at network change #15843
Copy link
Copy link
Closed
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infofixed-in-8.0.7fixed-in-9.0.100-preview.1.9973i/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/1Work that is important, and has been scheduled for release in this or an upcoming sprintWork that is important, and has been scheduled for release in this or an upcoming sprintpartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withthis is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/windowst/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infofixed-in-8.0.7fixed-in-9.0.100-preview.1.9973i/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/1Work that is important, and has been scheduled for release in this or an upcoming sprintWork that is important, and has been scheduled for release in this or an upcoming sprintpartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withthis is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/windowst/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Description
This exception is thrown at network connection change after I subscribe to Connectivity.ConnectivityChanged event
"The application called an interface that was marshalled for a different thread. (0x8001010E (RPC_E_WRONG_THREAD))"
Steps to Reproduce
Connectivity.ConnectivityChanged += (sender, e) => { // never reach this point };"The application called an interface that was marshalled for a different thread. (0x8001010E (RPC_E_WRONG_THREAD))"

In Release mode it seems the only problem is if the event never get called.
If I change Windows target framework to .NET 6.0, event is called and it seems fine, but exception message is there
It works fine on Android.
Link to public reproduction project repository
https://github.com/mrherkar/MauiAppWithConnectivityChangedIssue
Version with bug
7.0.86
Last version that worked well
6.0
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041.0
Did you find any workaround?
no
Relevant log output