Created attachment 22728 [details]
When I stop debugging the attached sample, the app crashes and the OS gives me an error asking if I want to ignore or reopen.
Also when I run the gMusic for mac, and stop debugging. The app locks up and never closes:
Here are 2 problems reported...
I was not able to reproduce crash with attached project... Can you copy paste About information in Visual Studio for Mac?(probably I need specific version of XM)
I was able to reproduce Hanging by gMusic and "fixed" in in IDE by ForceTerminating process: https://github.com/mono/monodevelop/pull/2581
Actual fix needs to be done by Xamarin.Mac or Mono to close application when VM_EXIT is called(https://github.com/mono/mono/blob/master/mono/mini/debugger-agent.c#L7422)
We run into this constantly when working on Workbooks & Inspector.
It's possible that the CMD_VM_EXIT path in the debugger is calling managed Environment.Exit (if TRY_MANAGED_SYSTEM_ENVIRONMENT_EXIT is set), in which case, the actual culprit for this bug may be #52604.
I attached a simple repro case to that bug.
For those that speak in URIs: https://bugzilla.xamarin.com/show_bug.cgi?id=52604
I highly suspect that's the root cause of this issue, although I also think the PR in comment #1 is correct (a method called "KillProcess" probably does want to send SIGKILL
(ForceTerminate) and not SIGTERM (Terminate)).
Fixed in version 184.108.40.206 (master)
Author: David Karla??
Commit: 42646517660a5a6ebb04086bf271cbb6197b7a70 (mono/monodevelop)
Fixed in version 220.127.116.114 (d15-3)
Author: Lluis Sanchez
Commit: dac776e0d941c9a00c711e82eaa2a390155db885 (mono/monodevelop)
This bug reported 2 bugs.
Crashing is bug in runtime and is reported as https://bugzilla.xamarin.com/show_bug.cgi?id=52604 other bug Hanging is fixed with this bug. So test if applications are closed after debugging is stopped, crashing and report windows are not fixed with this bug since it's runtime bug.
As per above comment I have checked this with d15.3 build and debugger is able to disconnect from Mac application. Hence marking this as verified.
Build info: https://gist.github.com/raghorteprasad/d1bd993f287b2b06e49be1263e97a74a