Bug 26584 - [iOS] Using custom render locks up the app on returning from background
Summary: [iOS] Using custom render locks up the app on returning from background
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.1
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-30 01:57 UTC by Prashant Cholachagudda
Modified: 2016-04-08 19:26 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Prashant Cholachagudda 2015-01-30 01:57:48 UTC
After upgrading to Unified APIs Forms app locks up and throws an exception on returning from Background

We get the following exception, when the app comes from the background to the foreground.

{System.InvalidCastException: Unable to cast object of type 'Google.Maps.MapView' to type 'MapKit.MKMapView'.
at Xamarin.Forms.Maps.iOS.MapRenderer.MkMapViewOnRegionChanged (System.Object sender, MapKit.MKMapViewChangeEventArgs mkMapViewChangeEventArgs) [0x00000] in <filename unknown>:0
at MapKit.MKMapView+_MKMapViewDelegate.RegionChanged (MapKit.MKMapView mapView, Boolean animated) [0x00014] in /Developer/MonoTouch/Source/monotouch/src/build/native/MapKit/MKMapView.g.cs:1771
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
at GPSSecurity.iOS.Application.Main (System.String[] args) [0x00002] in g:\GPSSecurity Apps\Branches\2.3\GPSSecurity\GPSSecurity.iOS\Main.cs:17 }

Test case and steps to reproduce are in the private comment below
Comment 3 Rui Marinho 2016-04-08 19:26:18 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team