Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
I showed this exception for Rolf Bjarne at Evolve 2013 Conferance and he asked me to file a bug.
Using the Google Maps component in a UIPageViewController. It is opened with a button using a Segue Push from the root view with UINavigationController. When you click the back button you get an exception:
MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[GMSVectorMapViewBridge v]: unrecognized selector sent to instance 0xd329d80
at at (wrapper managed-to-native) MonoTouch.Foundation.NSObject:monotouch_release_managed_ref (intptr)
at MonoTouch.Foundation.NSObject.ReleaseManagedRef () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:98
at MonoTouch.Foundation.NSObject+NSObject_Disposer.Drain (MonoTouch.Foundation.NSObject ctx) [0x00062] in /Developer/MonoTouch/Source/monotouch/src/shared/Foundation/NSObject2.cs:545
at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string,intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at MiniHacks.Application.Main (System.String args) [0x00000] in /Users/fredrik/Projects/MiniHacks/MiniHacks/Main.cs:17
This code causes the failure:
public override void LoadView ()
var camera = CameraPosition.FromCamera (latitude: 59.338,
mapView = MapView.FromCamera (View.Bounds, camera);
mapView.MapType = MapViewType.Normal;
mapView.MyLocationEnabled = false;
View = mapView;
Replacing "View = mapView" with "View.Add (mapView);" and the problem is gone.
I've seen this last week (evolve) and got a similar error this morning.
2013-04-22 10:11:26.175 GMapsiOS[11080:23203] Google Maps SDK for iOS version: 188.8.131.523
2013-04-22 10:11:26.177 GMapsiOS[11080:23203] New version of Google Maps SDK for iOS available: 184.108.40.20663
2013-04-22 10:11:26.254 GMapsiOS[11080:1d603] -[__NSCFDictionary objectForKeyedSubscript:]: unrecognized selector sent to instance 0x1b17ca20
It seems to be related to XS starting an older version of the simulator (e.g. 5.1) when the (native) library requires something newer (e.g. 6.0). I filled a bug for this:
Can you still duplicate the issue ? if so can you check if XS and the Application Output shows the same simulator version ? thanks!
This is the google maps doing stuff in the dealloc method (which ends up trying to call managed code), after the native object has been disconnected from the managed object.
This bug was targeted for a past milestone, moving to the next non-hotfix active milestone.
This was fixed a while ago, now we only disconnect from the native object after dealloc has completed.