1

Resolved

Deadlock while closing project

description

UI thread is blocked acquiring a lock:

00f6dddc 711c111e 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.PythonTools.Repl.BasePythonReplEvaluator+CommandProcessorThread.ProcessExited(System.Object, System.EventArgs)+0x26 [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Python\Product\PythonTools\PythonTools\Repl\BasePythonReplEvaluator.cs @ 248]
00f6ddf8 711bff33 00000000 00000000 00000000 System_ni!System.Diagnostics.Process.OnExited()+0xa2 [f:\dd\ndp\fx\src\Services\Monitoring\system\Diagnosticts\Process.cs @ 1639]
00f6de24 711c09fb 00000000 00000000 00000000 System_ni!System.Diagnostics.Process.RaiseOnExited()+0x57 [f:\dd\ndp\fx\src\Services\Monitoring\system\Diagnosticts\Process.cs @ 1748]
00f6de5c 0ecae214 00000000 00000000 00000000 System_ni!System.Diagnostics.Process.get_HasExited()+0x19f [f:\dd\ndp\fx\src\Services\Monitoring\system\Diagnosticts\Process.cs @ 288]
00f6dea0 0ecae070 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.PythonTools.Repl.BasePythonReplEvaluator+CommandProcessorThread.Dispose()+0x154 [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Python\Product\PythonTools\PythonTools\Repl\BasePythonReplEvaluator.cs @ 920]
00f6deb0 0ecae013 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.PythonTools.Repl.PythonReplEvaluator.Close()+0x18 [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Python\Product\PythonTools\PythonTools\Repl\PythonReplEvaluator.cs @ 168]
00f6debc 0ecadde9 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.PythonTools.Repl.BasePythonReplEvaluator.CloseReplWindow(System.Object)+0x3b [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Python\Product\PythonTools\PythonTools\Repl\BasePythonReplEvaluator.cs @ 1580]
00f6df38 0d429869 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.PythonTools.Project.PythonProjectNode.Dispose(Boolean)+0xa9 [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Python\Product\PythonTools\PythonTools\Project\PythonProjectNode.cs @ 710]
00f6df5c 0ecadc53 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.VisualStudioTools.Project.HierarchyNode.Close()+0x61 [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Common\Product\SharedProject\HierarchyNode.cs @ 1713]
00f6df88 0ecad759 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.VisualStudioTools.Project.ProjectNode.Close()+0x7b [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Common\Product\SharedProject\ProjectNode.cs @ 1586]
00f6df98 0ecad657 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.VisualStudioTools.Project.CommonProjectNode.Close()+0xd1 [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Common\Product\SharedProject\CommonProjectNode.cs @ 1219]
00f6dfb8 0b30d4f6 00000000 00000000 00000000 Microsoft_PythonTools!Microsoft.VisualStudioTools.Project.ProjectNode.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close()+0x1f [d:\DevDiv\OffCycle\xTVS\Open_Source\Python_Main\Common\Product\SharedProject\ProjectNode.cs @ 5469]
*** ERROR: Module load completed but symbols could not be loaded for C:\windows\assembly\GAC\Microsoft.VisualStudio.Shell.Interop\7.1.40304.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Shell.Interop.dll
00f6dfe0 734741db 00000000 00000000 00000000 Microsoft_VisualStudio_Shell_Interop!DomainNeutralILStubClass.IL_STUB_COMtoCLR()+0x16
00f6e048 0414a076 011e10a8 00f6e074 b42b465c clr!COMToCLRDispatchHelper+0x28 [f:\dd\ndp\clr\src\vm\i386\asmhelpers.asm @ 1975]
00f6e05c 65654823 00000000 0e4e6edc 00000000 CLRStub[StubLinkStub]@b20d32980414a076
00f6e090 67973a87 0e4e6edc c1a83db7 02d97fd8 ProjectAggregator!CProjectAggregator::Close+0x21 [f:\dd\vscommon\projectaggregator\projectaggregator.cpp @ 145]
00f6e0c0 6797395b 00000000 00000000 02d97fd8 msenv!CProject::Close+0x143 [f:\dd\env\msenv\core\project.cpp @ 598]
00f6e0e4 67971e02 00000000 00000000 00000000 msenv!CSolution::RemoveProjectByCProject+0xc7 [f:\dd\env\msenv\core\vsslnpst.cpp @ 19097]


But it looks like the lock has been orphaned:
4473 18c8e5a8 3 1 0e540868 0 XXX 2f5fac14 System.Object


Not sure how the lock was not closed of properly... I had opened some interactive windows via the environments node.

comments