Unhandled InvalidOperationException crashes Visual Studio

Aug 4, 2011 at 7:58 PM

I've just started getting this exception when trying to load my Python solution:

Application: devenv.exeFramework Version: v4.0.30319Description: The process was terminated due to an unhandled exception.Exception Info: System.InvalidOperationExceptionStack:   at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)   at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNextRare()   at System.Collections.Generic.List`1+Enumerator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()   at Microsoft.PythonTools.Interpreter.PythonTypeDatabase.RunFixups()   at Microsoft.PythonTools.Interpreter.Default.CPythonModule.EnsureLoaded()   at Microsoft.PythonTools.Interpreter.Default.CPythonModule.GetMember(Microsoft.PythonTools.Interpreter.IModuleContext, System.String)   at Microsoft.PythonTools.Analysis.Values.BuiltinNamespace`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetMember(Microsoft.PythonTools.Parsing.Ast.Node, Microsoft.PythonTools.Analysis.Interpreter.AnalysisUnit, System.String)   at Microsoft.PythonTools.Analysis.Values.BuiltinModule.GetMember(Microsoft.PythonTools.Parsing.Ast.Node, Microsoft.PythonTools.Analysis.Interpreter.AnalysisUnit, System.String)   at Microsoft.PythonTools.Analysis.Values.NamespaceSetExtensions.GetMember(System.Collections.Generic.ISet`1<Microsoft.PythonTools.Analysis.Values.Namespace>, Microsoft.PythonTools.Parsing.Ast.Node, Microsoft.PythonTools.Analysis.Interpreter.AnalysisUnit, System.String)   at Microsoft.PythonTools.Analysis.Interpreter.ExpressionEvaluator.EvaluateMember(Microsoft.PythonTools.Analysis.Interpreter.ExpressionEvaluator, Microsoft.PythonTools.Parsing.Ast.Node)   at Microsoft.PythonTools.Analysis.Interpreter.ExpressionEvaluator.EvaluateWorker(Microsoft.PythonTools.Parsing.Ast.Node)   at Microsoft.PythonTools.Analysis.Interpreter.ExpressionEvaluator.EvaluateCall(Microsoft.PythonTools.Analysis.Interpreter.ExpressionEvaluator, Microsoft.PythonTools.Parsing.Ast.Node)   at Microsoft.PythonTools.Analysis.Interpreter.ExpressionEvaluator.EvaluateWorker(Microsoft.PythonTools.Parsing.Ast.Node)   at Microsoft.PythonTools.Analysis.Interpreter.DDG.Walk(Microsoft.PythonTools.Parsing.Ast.AssignmentStatement)   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(Microsoft.PythonTools.Parsing.Ast.PythonWalker)   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(Microsoft.PythonTools.Parsing.Ast.PythonWalker)   at Microsoft.PythonTools.Analysis.Interpreter.FunctionAnalysisUnit.AnalyzeWorker(Microsoft.PythonTools.Analysis.Interpreter.DDG)   at Microsoft.PythonTools.Analysis.Interpreter.DDG.Analyze(Microsoft.PythonTools.Analysis.Deque`1<Microsoft.PythonTools.Analysis.Interpreter.AnalysisUnit>)   at Microsoft.PythonTools.Analysis.PythonAnalyzer.Microsoft.PythonTools.Analysis.IGroupableAnalysisProject.AnalyzeQueuedEntries()   at Microsoft.PythonTools.Library.Intellisense.AnalysisQueue+GroupAnalysis.Analyze()   at Microsoft.PythonTools.Library.Intellisense.AnalysisQueue.Worker()   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)   at System.Threading.ThreadHelper.ThreadStart()

This causes Visual Studio to crash. This has only started happening since I installed RC2, but it didn't start immediately after installing RC2 (I've been using it a couple days), so that may be unrelated. I did attempt uninstalling and reinstalling the Python Tools package.

I will be attempting to work around this by seeing if I can create a new solution or new project files.

David