Bug 8429 - [xbuild] the msbuild process prevents MD from closing
Summary: [xbuild] the msbuild process prevents MD from closing
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: High normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-11-15 12:11 UTC by Stephen Shaw
Modified: 2017-01-19 23:41 UTC (History)
4 users (show)

Tags: resgen
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 for Bug 8429 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Stephen Shaw 2012-11-15 12:11:46 UTC
If I have a solution open and hit 'cmd q' to close out MD (running it from the command line) it just hangs and shows up as not responding.  If on the console I kill the msbuild.exe process MD closing the solution and then exits.

sgshaw@sgshaw_pro:~ $ ps aux |grep -i monodevelop
dyld: DYLD_ environment variables being ignored because main executable (/bin/ps) is setuid or setgid
sgshaw          31639  99.0  0.6  1141584 215756 s002  R+    9:47AM  12:03.51 mono-sgen --gc=sgen MonoDevelop.exe --no-redirect
sgshaw          31931   0.0  0.0  2432768    716 s009  R+   10:01AM   0:00.00 grep -i monodevelop
sgshaw          31660   0.0  0.7  3125164 239040 s002  S+    9:48AM   0:28.78 /usr/bin/java -Djava.awt.headless=true -jar /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/java/AndroidDesigner.jar 53870 False
sgshaw          31643   0.0  0.2   809908  83392 s002  U+    9:48AM   0:19.23 /Library/Frameworks/Mono.framework/Versions/2.10.9/bin/mono /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Projects.Formats.MSBuild.exe
sgshaw@sgshaw_pro:~ $ kill 31643
sgshaw@sgshaw_pro:~ $ 


The dump from kill -QUIT 31639 is:

Full thread dump:

"Autosave" tid=0x0xb128f000 this=0x0x1c9b54b0 thread handle 0x1a9 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005f>
  at MonoDevelop.SourceEditor.AutoSave.AutoSaveThread () <0x0001e>
  at System.Threading.Thread.StartInternal () <0x00059>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"Threadpool worker" tid=0x0xb0c83000 this=0x0x1694fd40 thread handle 0x177 state : interrupted state owns ()

"Syntax highlighting" tid=0x0xb118d000 this=0x0x19a21090 thread handle 0x191 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005f>
  at Mono.TextEditor.Highlighting.SyntaxModeService.ProcessQueue () <0x000ce>
  at System.Threading.Thread.StartInternal () <0x00059>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"<unnamed thread>" tid=0x0xb0691000 this=0x0xdb3dae0 thread handle 0x124 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.Thread.Sleep_internal (int) <0xffffffff>
  at System.Threading.Thread.Sleep (int) <0x00017>
  at System.IO.KeventWatcher.Monitor () <0x0023b>
  at System.Threading.Thread.StartInternal () <0x00059>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"Threadpool worker" tid=0x0xb097d000 this=0x0xdb3fc90 thread handle 0x12e state : interrupted state owns ()

"IO Threadpool worker" tid=0x0xb07f9000 this=0x0xdb3eab0 thread handle 0x12b state : interrupted state owns ()

"Threadpool worker" tid=0x0xb0d85000 this=0x0x17a01350 thread handle 0x17c state : interrupted state owns ()
  at (wrapper managed-to-native) System.Net.Sockets.Socket.Connect_internal (intptr,System.Net.SocketAddress,int&) <0xffffffff>
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint) <0x0013b>
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest) <0x003f7>
  at System.Net.WebConnection.InitConnection (object) <0x00183>
  at System.Net.WebConnection.<WebConnection>m__17 (object) <0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"Threapool monitor" tid=0x0xb06b3000 this=0x0xdb3db90 thread handle 0x128 state : interrupted state owns ()

"<threadpool thread>" tid=0x0xb07d7000 this=0x0xdb3ea00 thread handle 0x12a state : interrupted state owns ()

"Background parser" tid=0x0xb050d000 this=0x0x1c9b5cf0 thread handle 0x1d4 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne (int,bool) <0x0007f>
  at MonoDevelop.Ide.TypeSystem.TypeSystemService.WaitForParseJob (int) <0x0001b>
  at MonoDevelop.Ide.TypeSystem.TypeSystemService.ParserUpdateThread () <0x0002f>
  at System.Threading.Thread.StartInternal () <0x00059>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"Threadpool worker" tid=0x0xb0a7f000 this=0x0x10f035b0 thread handle 0x195 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Diagnostics.Process.WaitForExit_internal (System.Diagnostics.Process,intptr,int) <0xffffffff>
  at System.Diagnostics.Process.WaitForExit (int) <0x0020f>
  at System.Diagnostics.Process.WaitForExit () <0x00013>
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.WaitForExit () <0xffffffff>
  at Xamarin.AndroidDesigner.JavaProcessConnection.<StartJavaProcess>m__13 (object) <0x00017>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"<unnamed thread>" tid=0x0xb108b000 this=0x0x18c3cbc0 thread handle 0x18a state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.Thread.Sleep_internal (int) <0xffffffff>
  at System.Threading.Thread.Sleep (int) <0x00017>
  at System.Runtime.Remoting.Channels.Tcp.TcpConnectionPool.ConnectionCollector () <0x00037>
  at System.Threading.Thread.StartInternal () <0x00059>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"Threadpool worker" tid=0x0xb07b5000 this=0x0xdb3dc40 thread handle 0x129 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne (int,bool) <0x0007f>
  at System.Net.HttpWebRequest.GetRequestStream () <0x000ab>
  at MonoDevelop.Core.LogReporting.LogReportingService.TryUploadReport (string,byte[]) <0x002d3>
  at MonoDevelop.Core.LogReporting.LogReportingService.ProcessCache () <0x0010b>
  at MonoDevelop.Ide.LogReportingStartup.<Run>m__1DF (object) <0x0000b>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"Background dispatcher" tid=0x0xb040b000 this=0x0x6ec170 thread handle 0x10b state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005f>
  at MonoDevelop.Ide.DispatchService.backgroundDispatcher () <0x000c1>
  at System.Threading.Thread.StartInternal () <0x00059>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"Threadpool worker" tid=0x0xb0b81000 this=0x0x6ee060 thread handle 0x170 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Net.Sockets.Socket.Receive_internal (intptr,byte[],int,int,System.Net.Sockets.SocketFlags,int&) <0xffffffff>
  at System.Net.Sockets.Socket.Receive_nochecks (byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.Sockets.SocketError&) <0x00033>
  at System.Net.Sockets.Socket.Receive (byte[],int,int,System.Net.Sockets.SocketFlags) <0x0006f>
  at System.Net.Sockets.NetworkStream.Read (byte[],int,int) <0x0007b>
  at System.IO.BufferedStream.Read (byte[],int,int) <0x00216>
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream,byte[],int) <0x0001f>
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream,byte[]) <0x00027>
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Channels.ITransportHeaders,System.IO.Stream,System.Runtime.Remoting.Channels.ITransportHeaders&,System.IO.Stream&) <0x0017f>
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) <0x0029d>
  at MonoDevelop.Core.Execution.DisposerFormatterSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) <0x00373>
  at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke (System.Runtime.Remoting.Messaging.IMessage) <0x0035a>
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&) <0x00433>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object_object_object_Exception&_object[]& (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_remoting_wrapper (intptr,intptr) <0xffffffff>
  at (wrapper remoting-invoke) MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.RunTarget (string,MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[],MonoDevelop.Projects.Formats.MSBuild.ILogWriter,MonoDevelop.Projects.Formats.MSBuild.MSBuildVerbosity) <0xffffffff>
  at MonoDevelop.Projects.Formats.MSBuild.RemoteProjectBuilder.RunTarget (string,MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[],MonoDevelop.Projects.Formats.MSBuild.ILogWriter,MonoDevelop.Projects.Formats.MSBuild.MSBuildVerbosity) <0x0002b>
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.RunTarget (MonoDevelop.Core.IProgressMonitor,string,MonoDevelop.Projects.ConfigurationSelector) <0x000e7>
  at MonoDevelop.Projects.SolutionItem.OnRunTarget (MonoDevelop.Core.IProgressMonitor,string,MonoDevelop.Projects.ConfigurationSelector) <0x000b6>
  at MonoDevelop.Projects.SolutionEntityItem.OnRunTarget (MonoDevelop.Core.IProgressMonitor,string,MonoDevelop.Projects.ConfigurationSelector) <0x00157>
  at MonoDevelop.Projects.DefaultProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x000db>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.ProjectServiceExtension.RunTarget (MonoDevelop.Core.IProgressMonitor,MonoDevelop.Projects.IBuildTarget,string,MonoDevelop.Projects.ConfigurationSelector) <0x0009a>
  at MonoDevelop.Projects.SolutionItem.RunTarget (MonoDevelop.Core.IProgressMonitor,string,MonoDevelop.Projects.ConfigurationSelector) <0x00036>
  at MonoDevelop.MonoDroid.MonoDroidProject.<RunResgen>m__7 (object) <0x0009f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"GUI Thread" tid=0x0xacc83a28 this=0x0x6ec010 thread handle 0x103 state : not waiting owns ()
  at (wrapper managed-to-native) System.Net.Sockets.Socket.Receive_internal (intptr,byte[],int,int,System.Net.Sockets.SocketFlags,int&) <0xffffffff>
  at System.Net.Sockets.Socket.Receive_nochecks (byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.Sockets.SocketError&) <0x00033>
  at System.Net.Sockets.Socket.Receive (byte[],int,int,System.Net.Sockets.SocketFlags) <0x0006f>
  at System.Net.Sockets.NetworkStream.Read (byte[],int,int) <0x0007b>
  at System.IO.BufferedStream.Read (byte[],int,int) <0x00216>
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream,byte[],int) <0x0001f>
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream,byte[]) <0x00027>
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Channels.ITransportHeaders,System.IO.Stream,System.Runtime.Remoting.Channels.ITransportHeaders&,System.IO.Stream&) <0x0017f>
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) <0x0029d>
  at MonoDevelop.Core.Execution.DisposerFormatterSink.SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage) <0x00373>
  at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke (System.Runtime.Remoting.Messaging.IMessage) <0x0035a>
  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&) <0x00433>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_object_object_object_Exception&_object[]& (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_remoting_wrapper (intptr,intptr) <0xffffffff>
  at (wrapper remoting-invoke) MonoDevelop.Projects.Formats.MSBuild.BuildEngine.UnloadProject (MonoDevelop.Projects.Formats.MSBuild.IProjectBuilder) <0xffffffff>
  at MonoDevelop.Projects.Formats.MSBuild.RemoteBuildEngine.UnloadProject (MonoDevelop.Projects.Formats.MSBuild.IProjectBuilder) <0x0001c>
  at MonoDevelop.Projects.Formats.MSBuild.RemoteProjectBuilder.Dispose () <0x0002f>
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Dispose () <0x0001f>
  at MonoDevelop.Projects.SolutionItem.Dispose () <0x00238>
  at MonoDevelop.Projects.SolutionEntityItem.Dispose () <0x0016f>
  at MonoDevelop.Projects.Project.Dispose () <0x00063>
  at MonoDevelop.Projects.DotNetProject.Dispose () <0x0014b>
  at MonoDevelop.MonoDroid.MonoDroidProject.Dispose () <0x000c7>
  at MonoDevelop.Projects.SolutionFolder.Dispose () <0x00059>
  at MonoDevelop.Projects.Solution.Dispose () <0x00032>
  at MonoDevelop.Ide.RootWorkspace.Close (bool,bool) <0x00291>
  at MonoDevelop.Ide.Gui.DefaultWorkbench.Close () <0x0014b>
  at MonoDevelop.Ide.Gui.Workbench.Close () <0x00017>
  at MonoDevelop.Ide.IdeApp.Exit () <0x00017>
  at MonoDevelop.Ide.Commands.ExitHandler.Run () <0x0000b>
  at MonoDevelop.Components.Commands.CommandHandler.Run (object) <0x00013>
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (object) <0x00016>
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand,MonoDevelop.Components.Commands.CommandInfo,object,object,MonoDevelop.Components.Commands.CommandSource) <0x000ff>
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (object,object,object,MonoDevelop.Components.Commands.CommandSource) <0x008c7>
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (object,MonoDevelop.Components.Commands.CommandSource) <0x0001b>
  at MonoDevelop.Components.Commands.CommandManager.OnKeyPressed (object,Gtk.KeyPressEventArgs) <0x0050b>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00147>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x00022>
  at System.Delegate.DynamicInvokeImpl (object[]) <0x001e3>
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x00033>
  at System.Delegate.DynamicInvoke (object[]) <0x00016>
  at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <0x0012f>
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <0x00023>
  at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0x00523>
  at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x0000b>
  at MonoDevelop.Ide.IdeApp.Run () <0x0000b>
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions) <0x01553>
  at MonoDevelop.Ide.IdeStartup.Main (string[]) <0x000e7>
  at MonoDevelop.Startup.MonoDevelopMain.Main (string[]) <0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>
ERROR [2012-11-15 09:53:53Z]: Failed to upload report to the server
System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Core.LogReporting.LogReportingService.TryUploadReport (System.String filename, System.Byte[] data) [0x00000] in <filename unknown>:0 
ERROR [2012-11-15 09:53:53Z]: Error running resgen
System.Runtime.Remoting.RemotingException: Tcp transport error.

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: interrupted
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus (System.IO.Stream networkStream, System.Byte[] buffer) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream requestStream, ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x00000] in <filename unknown>:0 
  at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) [0x00000] in <filename unknown>:0
Comment 1 Lluis Sanchez 2014-05-09 05:37:52 UTC
Is this something you can still reproduce?
Comment 2 Stephen Shaw 2014-05-22 18:56:01 UTC
I'm not working on anything anymore that might cause this. I saw this when working with a huge Xamarin.Android solution (50ish+ projects).
Comment 3 Greg Munn 2015-02-13 10:48:42 UTC
I've been working with an Android project with 57 projects and have not seen this issue. Do you think we can close this?
Comment 4 Stephen Shaw 2015-02-13 11:52:39 UTC
I'd hate to just close this because it is an old bug. Is there any reason to believe that this is fixed and won't happen?

Unfortunately, I'm not working at the place with this solution anymore. I could try and reach out to them about it though.
Comment 5 Mikayla Hutchinson [MSFT] 2015-02-13 13:37:03 UTC
Note that this is caused by automatically running the RunResgen target.

To reproduce it, I would try a project with a very long build time for the resgen target, clean the build, do something that would cause the resgen target to run, and immediately quit XS.
Comment 6 Greg Munn 2015-04-02 13:03:38 UTC
I can see a definite pause in XS when quitting if it is in the middle of running the RunResgen target, so it's still an issue.

Given we are waiting on processes to exit and clean up when we are quitting,is it worth having some sort of notification in the status bar or something to that effect?
Comment 7 Stephen Shaw 2017-01-19 23:41:01 UTC
Does this commit maybe help resolve this issue?
https://github.com/mono/monodevelop/commit/06a9d3ef1d8e576e28235ddaba9369269c894430