Skip to content

Instantly share code, notes, and snippets.

@OmerRaviv
Created November 9, 2015 17:05
Show Gist options
  • Save OmerRaviv/90f78502ab32a907524d to your computer and use it in GitHub Desktop.
Save OmerRaviv/90f78502ab32a907524d to your computer and use it in GitHub Desktop.
Visual Studio hangs with this on the UI thread
[Managed to Native Transition]
> WindowsBase.dll!System.Windows.Threading.DispatcherSynchronizationContext.Wait(System.IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout) Unknown
mscorlib.dll!System.Threading.SynchronizationContext.InvokeWaitMethodHelper(System.Threading.SynchronizationContext syncContext, System.IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.WaitWithBuilderThreadStart(System.Threading.WaitHandle[] handles, bool recursive, Microsoft.Build.Execution.LegacyThreadingData threadingData, int submissionId) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.StartNewBuildRequests(Microsoft.Build.BackEnd.FullyQualifiedBuildRequest[] requests) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.RequestBuilder.<StartNewBuildRequests>d__51>(ref Microsoft.Build.BackEnd.RequestBuilder.<StartNewBuildRequests>d__51 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.StartNewBuildRequests(Microsoft.Build.BackEnd.FullyQualifiedBuildRequest[] requests) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.BuildProjects(string[] projectFiles, Microsoft.Build.Collections.PropertyDictionary<Microsoft.Build.Execution.ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.RequestBuilder.<BuildProjects>d__33>(ref Microsoft.Build.BackEnd.RequestBuilder.<BuildProjects>d__33 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.BuildProjects(string[] projectFiles, Microsoft.Build.Collections.PropertyDictionary<Microsoft.Build.Execution.ProjectPropertyInstance>[] properties, string[] toolsVersions, string[] targets, bool waitForResults) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskHost.BuildProjectFilesInParallelAsync(string[] projectFileNames, string[] targetNames, System.Collections.IDictionary[] globalProperties, System.Collections.Generic.IList<string>[] undefineProperties, string[] toolsVersion, bool returnTargetOutputs) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.Build.Framework.BuildEngineResult>.Start<Microsoft.Build.BackEnd.TaskHost.<BuildProjectFilesInParallelAsync>d__52>(ref Microsoft.Build.BackEnd.TaskHost.<BuildProjectFilesInParallelAsync>d__52 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskHost.BuildProjectFilesInParallelAsync(string[] projectFileNames, string[] targetNames, System.Collections.IDictionary[] globalProperties, System.Collections.Generic.IList<string>[] undefineProperties, string[] toolsVersion, bool returnTargetOutputs) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskHost.InternalBuildProjects(string[] projectFileNames, string[] targetNames, System.Collections.IDictionary[] globalProperties, System.Collections.Generic.IList<string>[] undefineProperties, string[] toolsVersion, bool returnTargetOutputs) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.Build.Framework.BuildEngineResult>.Start<Microsoft.Build.BackEnd.TaskHost.<InternalBuildProjects>d__48>(ref Microsoft.Build.BackEnd.TaskHost.<InternalBuildProjects>d__48 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskHost.InternalBuildProjects(string[] projectFileNames, string[] targetNames, System.Collections.IDictionary[] globalProperties, System.Collections.Generic.IList<string>[] undefineProperties, string[] toolsVersion, bool returnTargetOutputs) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.MSBuild.ExecuteTargets(Microsoft.Build.Framework.ITaskItem[] projects, System.Collections.Hashtable propertiesTable, string[] undefineProperties, System.Collections.ArrayList targetLists, bool stopOnFirstFailure, bool rebaseOutputs, Microsoft.Build.Framework.IBuildEngine3 buildEngine, Microsoft.Build.BackEnd.TaskLoggingHelper log, System.Collections.ArrayList targetOutputs, bool useResultsCache, bool unloadProjectsOnCompletion, string toolsVersion) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<bool>.Start<Microsoft.Build.BackEnd.MSBuild.<ExecuteTargets>d__77>(ref Microsoft.Build.BackEnd.MSBuild.<ExecuteTargets>d__77 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.MSBuild.ExecuteTargets(Microsoft.Build.Framework.ITaskItem[] projects, System.Collections.Hashtable propertiesTable, string[] undefineProperties, System.Collections.ArrayList targetLists, bool stopOnFirstFailure, bool rebaseOutputs, Microsoft.Build.Framework.IBuildEngine3 buildEngine, Microsoft.Build.BackEnd.TaskLoggingHelper log, System.Collections.ArrayList targetOutputs, bool useResultsCache, bool unloadProjectsOnCompletion, string toolsVersion) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.MSBuild.BuildProjectsInParallel(System.Collections.Hashtable propertiesTable, string[] undefinePropertiesArray, System.Collections.ArrayList targetLists, bool success, bool[] skipProjects) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<bool>.Start<Microsoft.Build.BackEnd.MSBuild.<BuildProjectsInParallel>d__74>(ref Microsoft.Build.BackEnd.MSBuild.<BuildProjectsInParallel>d__74 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.MSBuild.BuildProjectsInParallel(System.Collections.Hashtable propertiesTable, string[] undefinePropertiesArray, System.Collections.ArrayList targetLists, bool success, bool[] skipProjects) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.MSBuild.ExecuteInternal() Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<bool>.Start<Microsoft.Build.BackEnd.MSBuild.<ExecuteInternal>d__73>(ref Microsoft.Build.BackEnd.MSBuild.<ExecuteInternal>d__73 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.MSBuild.ExecuteInternal() Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26>(ref Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.ItemBucket bucket, System.Collections.Generic.IDictionary<string, string> taskIdentityParameters, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TaskBuilder.<InitializeAndExecuteTask>d__24>(ref Microsoft.Build.BackEnd.TaskBuilder.<InitializeAndExecuteTask>d__24 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.ItemBucket bucket, System.Collections.Generic.IDictionary<string, string> taskIdentityParameters, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask, System.Collections.Generic.Dictionary<string, string> lookupHash) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TaskBuilder.<ExecuteBucket>d__19>(ref Microsoft.Build.BackEnd.TaskBuilder.<ExecuteBucket>d__19 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask, System.Collections.Generic.Dictionary<string, string> lookupHash) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode mode, Microsoft.Build.BackEnd.Lookup lookup) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TaskBuilder.<ExecuteTask>d__18>(ref Microsoft.Build.BackEnd.TaskBuilder.<ExecuteTask>d__18 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode mode, Microsoft.Build.BackEnd.Lookup lookup) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.Logging.TargetLoggingContext loggingContext, Microsoft.Build.BackEnd.BuildRequestEntry requestEntry, Microsoft.Build.BackEnd.ITargetBuilderCallback targetBuilderCallback, Microsoft.Build.Execution.ProjectTargetInstanceChild taskInstance, Microsoft.Build.BackEnd.TaskExecutionMode mode, Microsoft.Build.BackEnd.Lookup inferLookup, Microsoft.Build.BackEnd.Lookup executeLookup, System.Threading.CancellationToken cancellationToken) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TaskBuilder.<ExecuteTask>d__13>(ref Microsoft.Build.BackEnd.TaskBuilder.<ExecuteTask>d__13 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.Logging.TargetLoggingContext loggingContext, Microsoft.Build.BackEnd.BuildRequestEntry requestEntry, Microsoft.Build.BackEnd.ITargetBuilderCallback targetBuilderCallback, Microsoft.Build.Execution.ProjectTargetInstanceChild taskInstance, Microsoft.Build.BackEnd.TaskExecutionMode mode, Microsoft.Build.BackEnd.Lookup inferLookup, Microsoft.Build.BackEnd.Lookup executeLookup, System.Threading.CancellationToken cancellationToken) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder taskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext targetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode mode, Microsoft.Build.BackEnd.Lookup lookupForInference, Microsoft.Build.BackEnd.Lookup lookupForExecution) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TargetEntry.<ProcessBucket>d__48>(ref Microsoft.Build.BackEnd.TargetEntry.<ProcessBucket>d__48 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder taskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext targetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode mode, Microsoft.Build.BackEnd.Lookup lookupForInference, Microsoft.Build.BackEnd.Lookup lookupForExecution) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder taskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry requestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext projectLoggingContext, System.Threading.CancellationToken cancellationToken) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.TargetEntry.<ExecuteTarget>d__42>(ref Microsoft.Build.BackEnd.TargetEntry.<ExecuteTarget>d__42 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder taskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry requestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext projectLoggingContext, System.Threading.CancellationToken cancellationToken) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(Microsoft.Build.BackEnd.ITaskBuilder taskBuilder) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.TargetBuilder.<ProcessTargetStack>d__22>(ref Microsoft.Build.BackEnd.TargetBuilder.<ProcessTargetStack>d__22 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(Microsoft.Build.BackEnd.ITaskBuilder taskBuilder) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(Microsoft.Build.BackEnd.Logging.ProjectLoggingContext loggingContext, Microsoft.Build.BackEnd.BuildRequestEntry entry, Microsoft.Build.BackEnd.IRequestBuilderCallback callback, string[] targetNames, Microsoft.Build.BackEnd.Lookup baseLookup, System.Threading.CancellationToken cancellationToken) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.TargetBuilder.<BuildTargets>d__11>(ref Microsoft.Build.BackEnd.TargetBuilder.<BuildTargets>d__11 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(Microsoft.Build.BackEnd.Logging.ProjectLoggingContext loggingContext, Microsoft.Build.BackEnd.BuildRequestEntry entry, Microsoft.Build.BackEnd.IRequestBuilderCallback callback, string[] targetNames, Microsoft.Build.BackEnd.Lookup baseLookup, System.Threading.CancellationToken cancellationToken) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.BuildProject() Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<System.__Canon>.Start<Microsoft.Build.BackEnd.RequestBuilder.<BuildProject>d__57>(ref Microsoft.Build.BackEnd.RequestBuilder.<BuildProject>d__57 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.BuildProject() Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport() Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.RequestBuilder.<BuildAndReport>d__49>(ref Microsoft.Build.BackEnd.RequestBuilder.<BuildAndReport>d__49 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport() Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.RequestThreadProc(bool setThreadParameters) Unknown
mscorlib.dll!System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Microsoft.Build.BackEnd.RequestBuilder.<RequestThreadProc>d__48>(ref Microsoft.Build.BackEnd.RequestBuilder.<RequestThreadProc>d__48 stateMachine) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.RequestThreadProc(bool setThreadParameters) Unknown
Microsoft.Build.dll!Microsoft.Build.BackEnd.RequestBuilder.WaitWithBuilderThreadStart(System.Threading.WaitHandle[] handles, bool recursive, Microsoft.Build.Execution.LegacyThreadingData threadingData, int submissionId) Unknown
Microsoft.Build.dll!Microsoft.Build.Execution.BuildSubmission.Execute() Unknown
Microsoft.VisualStudio.CommonIDE.dll!Microsoft.VisualStudio.Build.ComInteropWrapper.ProjectShim.BuildTargetsImpl(string[] targetNamesToBuild, Microsoft.VisualStudio.Build.ComInteropWrapper.ITargetOutputs targetOutputs, bool retainCachedProjectInstance, bool isRealBuild, bool isOutOfProcBuild, Microsoft.VisualStudio.Build.ComInteropWrapper.IProjectShimBuildTargetsAsyncCallback callback) Unknown
Microsoft.VisualStudio.CommonIDE.dll!Microsoft.VisualStudio.Build.ComInteropWrapper.ProjectShim.BuildTargetListWithFlagsAndOutputs(string targetList, Microsoft.VisualStudio.Build.ComInteropWrapper.ITargetOutputs targetOutputs, Microsoft.VisualStudio.Build.ComInteropWrapper.BuildSettingsShim buildFlags, bool isRealBuild, bool isOutOfProcBuild) Unknown
Microsoft.VisualStudio.CommonIDE.dll!Microsoft.VisualStudio.Build.ComInteropWrapper.ProjectShim.BuildTargetListWithFlags(string targetList, System.Collections.IDictionary targetOutputs, Microsoft.VisualStudio.Build.ComInteropWrapper.BuildSettingsShim buildFlags, bool isRealBuild, bool isOutOfProcBuild) Unknown
[Native to Managed Transition]
@OmerRaviv
Copy link
Author

Happens randomly when Resharper 10 is installed. Doesn't reproduce once I uninstall Resharper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment