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.
Created attachment 3534 [details]
If you create a new controller in a method (rather than at class level), and then add it's view to the a view that is alive, eventually, that controller will get GC'd, causing your application to crash.
for instance. consider the following code inside a window:
public override void AwakeFromNib ()
outlineViewController = new OutlineViewController ( this.Window.ContentView.Bounds);
after running this for a bit, Xam.mac will clean up the reference to OutlineViewController, even though the controller's view has been added to Window.ContentView via AddSubview.
To repro, run attached application, expand some nodes in the outline view, wait a bit, and then try expanding/collapsing some more.
This appears to have been fixed with our 1.6 release. I have 1.6.27 and am unable to reproduce. Please try it out and let me know if you can still reproduce.