System.InvalidCastException when using a custom map handler on iOS and .NET 9. #26000
Labels
area-controls-map
Map / Maps
platform/iOS 🍎
potential-regression
This issue described a possible regression on a currently supported version., verification pending
t/bug
Something isn't working
Milestone
Description
After updating to .NET 9 (MAUI 9.0.10) whenever opening my customized map control while the app is still looking for the GPS location the app crashes with the below error:
NativeHandle Registrar_Callbacks.callback_1320_MapKit_MKMapView__MKMapViewDelegate_GetViewForAnnotation(IntPtr pobj, IntPtr sel, IntPtr p0, IntPtr p1, IntPtr* exception_gchandle).
The same was not happening in .NET 8.
This is happening only in release mode.
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: