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.
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
Can you share your project with us so that we can try to reproduce this ourselves?
@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?
@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)?
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.
OK, I'll close this then.