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.
See attached project. This hit the profiler.
If you run it with new ref count, click the button and then swap tabs it will die.
If you change it to be
x = new MyDel ();
v.Delegate = x;
it does not die.
Loaded assembly: /Users/donblas/Programming/Local/NSTabViewDelegateBug/NSTabViewDelegateBug/bin/Debug/NSTabViewDelegateBug.app/Contents/MonoBundle/Xamarin.Mac.dll [External]
Loaded assembly: /Users/donblas/Programming/Local/NSTabViewDelegateBug/NSTabViewDelegateBug/bin/Debug/NSTabViewDelegateBug.app/Contents/MonoBundle/System.dll [External]
Loaded assembly: /Users/donblas/Programming/Local/NSTabViewDelegateBug/NSTabViewDelegateBug/bin/Debug/NSTabViewDelegateBug.app/Contents/MonoBundle/System.Net.Http.dll [External]
Loaded assembly: /Users/donblas/Programming/Local/NSTabViewDelegateBug/NSTabViewDelegateBug/bin/Debug/NSTabViewDelegateBug.app/Contents/MonoBundle/NSTabViewDelegateBug.exe
<NSTabViewItem '': 0x600000102760>
at <unknown> <0xffffffff>
at (wrapper managed-to-native) AppKit.NSApplication.NSApplicationMain (int,string) <IL 0x00093, 0xffffffff>
at AppKit.NSApplication.Main (string) [0x00041] in /Users/donblas/Programming/xamcore/src/AppKit/NSApplication.cs:106
at NSTabViewDelegateBug.MainClass.Main (string) [0x00007] in /Users/donblas/Programming/Local/NSTabViewDelegateBug/NSTabViewDelegateBug/Main.cs:12
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.33dief'
Executing commands in '/private/tmp/mono-gdb-commands.33dief'.
(lldb) process attach --pid 44693
Created attachment 10556 [details]
I have checked this issue with the help of sample app given in comment 2 and instructions provided in comment 1, and observed that now app does not die. Hence I am closing this issue.
Environment Info :
Mac OS X 10.9.5
Xamarin Studio 5.9 (build 430)
Mono 4.0.0 ((detached/c8db1b0)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.2 (6776)
Xamarin.Mac 220.127.116.111 (Business Edition)
Screencast : http://www.screencast.com/t/RfKrplbI