Bug 34049 - I can run my application after xamarin 3.11.1443.0 update
Summary: I can run my application after xamarin 3.11.1443.0 update
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.0 (iOS9)
Hardware: PC Windows
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-09-18 02:34 UTC by Audrius
Modified: 2015-10-13 08:46 UTC (History)
8 users (show)

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:

Description Audrius 2015-09-18 02:34:34 UTC
In debuging mode i receive this error message:
MonoTouch.RuntimeException: Cannot get the method descriptor for the selector 'drain:' on the type 'MonoTouch.Foundation.NSObjec…

Here is more detailed information.

Error on main Cannot get the method descriptor for the selector 'drain:' on the type 'MonoTouch.Foundation.NSObject', because the selector does not correspond to a method   at MonoTouch.Registrar.DynamicRegistrar.GetMethodNoThrow (System.Type original_type, System.Type type, System.String selector) [0x0009b] in /Users/builder/data/lanes/2077/d230615b/source/maccore/src/ObjCRuntime/DynamicRegistrar.cs:875 \n  at MonoTouch.Registrar.DynamicRegistrar.GetMethodDescription (System.Type type, IntPtr selector) [0x00007] in /Users/builder/data/lanes/2077/d230615b/source/maccore/src/ObjCRuntime/DynamicRegistrar.cs:849 \n  at MonoTouch.ObjCRuntime.Runtime.GetMethodForSelector (IntPtr cls, IntPtr sel) [0x00000] in /Users/builder/data/lanes/2077/d230615b/source/maccore/src/ObjCRuntime/Runtime.cs:399 \n  at MonoTouch.ObjCRuntime.Runtime.get_method_for_selector (IntPtr cls, IntPtr sel) [0x00000] in <filename unknown>:0 \n  at (wrapper native-to-managed) MonoTouch.ObjCRuntime.Runtime:get_method_for_selector (intptr,intptr)\n  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)\n  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/2077/d230615b/source/maccore/src/UIKit/UIApplication.cs:74 \n  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0001c] in /Users/builder/data/lanes/2077/d230615b/source/maccore/src/UIKit/UIApplication.cs:57 \n  at VisionTouch.iPhone.Application.Main (System.String[] args) [0x00002] in C:\\Projects\\MyApplication\\MyProject\\Main.cs:20
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-10-09 04:08:43 UTC
Can you share your project with us so that we can try to reproduce this ourselves?
Comment 6 Rolf Bjarne Kvinge [MSFT] 2015-10-13 06:19:18 UTC
@Audrius, I can't reproduce this either, but this isn't an error that I would expect to differ between device types.

Is there anything I need to do in the app to reproduce it, or is it enough to just run it? Can you still reproduce if you delete the app from the device and then re-install it?
Comment 8 Rolf Bjarne Kvinge [MSFT] 2015-10-13 07:39:50 UTC
@Audrius, first can you add "-v -v -v -v" to the additional mtouch arguments in the project's iOS Build options, and then attach the full build log (after a clean & rebuild)?
Comment 9 Audrius 2015-10-13 08:31:05 UTC
i guess i found issue that could take affect to this error. I found mysterious arguments i ios build options. --registrar:legacy. When i removed these argumets, my program dont crash with this error. But still debug session isnt stable. Some times it crashes, some times not. From this point i guess i can continue work with my tasks. Sorry for disturb.
Comment 10 Rolf Bjarne Kvinge [MSFT] 2015-10-13 08:46:09 UTC
OK, I'll close this then.