Bug 45278 - AsyncManager.Run is deadlocking the IDE
Summary: AsyncManager.Run is deadlocking the IDE
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: High major
Target Milestone: 4.3.0 (C9)
Assignee: Stephen Shaw
URL:
: 46874 ()
Depends on: 46874
Blocks:
  Show dependency tree
 
Reported: 2016-10-11 15:05 UTC by Jeremy Kolb
Modified: 2017-02-07 06:16 UTC (History)
11 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
logs (6.41 KB, application/x-zip-compressed)
2016-10-12 14:14 UTC, Ben Beckley
Details
Minidump no heap (6.92 MB, application/octet-stream)
2016-10-12 18:24 UTC, Jeremy Kolb
Details


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 on Developer Community 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.

Related Links:
Status:
VERIFIED FIXED

Description Jeremy Kolb 2016-10-11 15:05:39 UTC
Every time I open the designer (and even if I then close the tab that had the axml file open) and then build Visual Studio freezes.  The UI hangs forever until I go into the task manager and kill java.exe.  After I do that the build continues.  This is killing my productivity.
Comment 3 Alan McGovern 2016-10-12 08:24:59 UTC
Ben, can you get a dump of all the threads from the deadlocked VS instance? If you start a second copy of VS and attach the debugger to the instance which hung you should be able to see everything in the `Threads` window
Comment 4 Alan McGovern 2016-10-12 08:33:21 UTC
Also, all logs should be attached too
Comment 5 Ben Beckley 2016-10-12 14:14:21 UTC
Created attachment 17999 [details]
logs

Working on reproducing it again. Here are the logs though.
Comment 6 Alan McGovern 2016-10-12 16:52:26 UTC
There's nothing in the logs which looks like it could trigger a freeze, so the 'Threads' window is probably our best bet right now. Thread 1 should be the main thread and will show where it has deadlocked, but one or more other threads are likely to be participating in the hang, so we'd need the traces from them too to be sure we get it fixed.
Comment 7 Jeremy Kolb 2016-10-12 18:24:28 UTC
Created attachment 18006 [details]
Minidump no heap

Here's a dump file
Comment 8 Jeremy Kolb 2016-10-12 18:30:35 UTC
After that dump file was created I killed java.exe and the following showed up in the output log.  It may or may not help you.

Exception thrown: 'System.Net.Sockets.SocketException' in System.dll
Exception thrown: 'System.IO.IOException' in System.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : ReadMessage failed
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at Xamarin.AndroidDesigner.Java.JavaCommunicationContext.ReadMessageLoop()
Exception thrown: 'System.OperationCanceledException' in mscorlib.dll
Exception thrown: 'System.OperationCanceledException' in mscorlib.dll
Exception thrown: 'System.InvalidOperationException' in System.dll
The thread 0x2af0 has exited with code 0 (0x0).
Exception thrown: 'System.InvalidOperationException' in System.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
The thread 0x1bb4 has exited with code 0 (0x0).
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
The thread 0x2e80 has exited with code 0 (0x0).
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
The thread 0x844 has exited with code 0 (0x0).
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
The thread 0x1580 has exited with code 0 (0x0).
The thread 0x28b4 has exited with code 0 (0x0).
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : XsdCompletion
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<GetResources>d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<LoadResources>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<GetAttributeValueCompletions>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<PopulateAttributeValues>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.Completion.AndroidLayoutCompletionEngine.<BuildRawCompletionData>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidDesignerSession.<GenerateXsdCompletionFiles>d__275.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.Android.MonoAndroidFlavoredProject Error: 0 : Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Merq.AsyncManager.Run(Func`1 asyncMethod)
   at Xamarin.VisualStudio.Android.MonoAndroidFlavoredProject.OnBuildBegin(vsBuildScope scope, vsBuildAction action) in c:\Users\builder\data\lanes\3822\3b7df6f5\source\xamarinvs\src\Core\VisualStudio.Android\ProjectSystem\MonoAndroidFlavoredProject.cs:line 646
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'System.AggregateException' in mscorlib.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : The layout could not be loaded
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<DoRefreshAsync>d__102.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : The layout could not be loaded
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<DoRefreshAsync>d__102.MoveNext()
Exception thrown: 'Xamarin.AndroidDesigner.Java.JavaErrorMessageException' in mscorlib.dll
Xamarin.VisualStudio.ActivationManager Error: 0 : Initial layout loading failed
Xamarin.AndroidDesigner.Java.JavaErrorMessageException: Connection is closed
   at Xamarin.AndroidDesigner.Java.JavaProcessConnection.<GetResponse>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<InitSession>d__105.MoveNext()
Exception thrown: 'Xamarin.Designer.DesignerException' in Xamarin.AndroidDesigner.dll
Exception thrown: 'Xamarin.Designer.DesignerException' in mscorlib.dll
Comment 9 Alan McGovern 2016-10-12 18:32:24 UTC
Thanks for the dump, we'll load that up and see what info we can get from it!

Also, did killing java.exe result in VS becoming unfrozen?
Comment 10 Jeremy Kolb 2016-10-12 18:35:46 UTC
Yes it unfreezes VS.
Comment 11 Alan McGovern 2017-01-06 14:56:08 UTC
The minidump shows this is another case of AsyncManager.Run deadlocking the IDE, which is a duplicate of bug #45278. However this is in another part of the code so I won't mark it as a direct duplicate in case there is a workaround that can be applied here to avoid the usage of this API.

The relevant part of the trace is:

> Microsoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTaskFactory.WaitSynchronouslyCore(System.Threading.Tasks.Task task)	Unknown
> Microsoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTaskFactory.WaitSynchronously(System.Threading.Tasks.Task task)	Unknown
> Microsoft.VisualStudio.Threading.dll!Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()	Unknown
> [Frames below may be incorrect and/or missing, no binaries loaded for Merq.Async.Core.dll]	
> [Frames below may be incorrect and/or missing, no binaries loaded for Xamarin.VisualStudio.Android.dll]	
> EnvDTE.dll!EnvDTE._dispBuildEvents_SinkHelper.OnBuildBegin(EnvDTE.vsBuildScope A_1, EnvDTE.vsBuildAction A_2)	Unknown
Comment 12 Erik Hoeksma 2017-01-12 20:27:38 UTC
Additionally (I'm running into the same problem once every 2 hours) when you hardkill devenv.exe (which was my solution) VS2015 restarts, and sometimes (because of the hardkill) the IDE fails to recognize any Xamarin elements / namespaces (everything has a red underline "could not find assembly...".

Only fix for this is removing the .suo file, after which everything is back to normal. Might be something worth checking out.
Comment 13 Alan McGovern 2017-01-17 16:21:40 UTC
I believe this was addressed by removing the problematic call to `AsyncManager.Run`. There are more problematic calls to address, but the specific one in this stacktrace is now gone.

master: https://github.com/xamarin/XamarinVS/commit/3570b247a38a5b83b3a2aaafcdfb296e4d762d18
cycle9: https://github.com/xamarin/XamarinVS/commit/7ffc5d77b66d438660b2c43d1f6737ccbcf119d5
Comment 14 Jeremy Kolb 2017-01-17 16:23:06 UTC
That repo doesn't seem to exist.
Comment 15 Alan McGovern 2017-01-17 19:19:49 UTC
*** Bug 46874 has been marked as a duplicate of this bug. ***
Comment 16 Shruti 2017-02-02 08:01:44 UTC
@Jeremy, Could you please check this issue with latest Beta builds. 

Please reopen it if this issue still persist.

Waiting for your response!
Comment 17 Shruti 2017-02-07 06:16:58 UTC
hey @Jeremy,  As per comment14, It seems that this issue does not exist any more. So I am closing this issue. 


Please feel free to reopen this issue If you faced again.