question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Activity log error while editing

See original GitHub issue

System.NullReferenceException: Object reference not set to an instance of an object.   at 
Microsoft.PythonTools.Intellisense.VsProjectAnalyzer.<SendLanguageServerRequestAsync>d__143`2.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.PythonTools.Intellisense.VsProjectAnalyzer.<GetCompletionsAsync>d__147.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at 
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at 
Microsoft.PythonTools.Intellisense.VsProjectAnalyzer.WaitForRequest[T](Task`1 request, String requestName, T defaultValue, Int32 timeoutScale)   at 
Microsoft.PythonTools.Intellisense.VsProjectAnalyzer.WaitForRequest[T](Task`1 request, String requestName)   at
 Microsoft.PythonTools.Intellisense.CompletionAnalysis.GetCompletions(IGlyphService glyphService)   at 
Microsoft.PythonTools.Intellisense.CompletionSource.AugmentCompletionSession(ICompletionSession session, IList`1 completionSets)   at 
Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Start()   at 
Microsoft.PythonTools.Intellisense.IntellisenseController.<TriggerCompletionSession>d__43.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at 
Microsoft.PythonTools.Infrastructure.TaskExtensions.ReThrowTaskException(Object state)   at 
Microsoft.PythonTools.Infrastructure.TaskExtensions.DoNotWait(Task task)   at 
Microsoft.PythonTools.Intellisense.IntellisenseController.HandleChar(Char ch)   at 
Microsoft.PythonTools.Intellisense.IntellisenseController.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)   at 
Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)   at 
Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)   at 
Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)   at 
Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)   at 
Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)   at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c.<DispatchTextInputEvents>b__6_0(KeyProcessor p, TextCompositionEventArgs args)   at 
Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass10_1`1.<Dispatch>b__0()   at
 Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call) --- End of stack trace from previous location where exception was thrown ---   at 
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
huguesvcommented, Jul 9, 2018

image

I omitted hundreds of entries at the top of the call stack:

 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Interpreter.Ast.AstPythonType.GetMember(Microsoft.PythonTools.Interpreter.IModuleContext context, string name) Line 210	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Interpreter.Ast.AstPythonType.GetMember(Microsoft.PythonTools.Interpreter.IModuleContext context, string name) Line 210	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Interpreter.Ast.AstPythonType.GetMember(Microsoft.PythonTools.Interpreter.IModuleContext context, string name) Line 210	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Interpreter.Ast.AstPythonType.GetMember(Microsoft.PythonTools.Interpreter.IModuleContext context, string name) Line 210	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Values.BuiltinNamespace<Microsoft.PythonTools.Interpreter.IPythonType>.GetTypeMember(Microsoft.PythonTools.Parsing.Ast.Node node, Microsoft.PythonTools.Analysis.AnalysisUnit unit, string name) Line 51	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.AnalysisValue.GetMember(Microsoft.PythonTools.Parsing.Ast.Node node, Microsoft.PythonTools.Analysis.AnalysisUnit unit, string name) Line 197	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Values.BuiltinClassInfo.GetMember(Microsoft.PythonTools.Parsing.Ast.Node node, Microsoft.PythonTools.Analysis.AnalysisUnit unit, string name) Line 146	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Analyzer.DDG.LookupBaseMethods(string name, System.Collections.Generic.IEnumerable<Microsoft.PythonTools.Analysis.IAnalysisSet> bases, Microsoft.PythonTools.Parsing.Ast.Node node, Microsoft.PythonTools.Analysis.AnalysisUnit unit) Line 473	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(Microsoft.PythonTools.Parsing.Ast.FunctionDefinition node) Line 492	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Parsing.Ast.FunctionDefinition.Walk(Microsoft.PythonTools.Parsing.Ast.PythonWalker walker) Line 238	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(Microsoft.PythonTools.Parsing.Ast.SuiteStatement node) Line 650	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(Microsoft.PythonTools.Parsing.Ast.PythonWalker walker) Line 34	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Analyzer.DDG.WalkBody(Microsoft.PythonTools.Parsing.Ast.Node node, Microsoft.PythonTools.Analysis.AnalysisUnit unit) Line 515	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.ClassAnalysisUnit.AnalyzeWorker(Microsoft.PythonTools.Analysis.Analyzer.DDG ddg, System.Threading.CancellationToken cancel) Line 428	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.AnalysisUnit.Analyze(Microsoft.PythonTools.Analysis.Analyzer.DDG ddg, System.Threading.CancellationToken cancel) Line 156	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.Analyzer.DDG.Analyze(Microsoft.PythonTools.Analysis.Deque<Microsoft.PythonTools.Analysis.AnalysisUnit> queue, System.Threading.CancellationToken cancel, System.Action<int> reportQueueSize, int reportQueueInterval) Line 75	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Analysis.PythonAnalyzer.AnalyzeQueuedEntries(System.Threading.CancellationToken cancel) Line 946	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Intellisense.AnalysisQueue.GroupAnalysis.Analyze(System.Threading.CancellationToken cancel) Line 288	C#
 	Microsoft.PythonTools.Analysis.dll!Microsoft.PythonTools.Intellisense.AnalysisQueue.Worker(object threadStarted) Line 233	C#
 	mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state)	Unknown
 	mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)	Unknown
 	mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)	Unknown
 	mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)	Unknown
 	mscorlib.dll!System.Threading.ThreadHelper.ThreadStart(object obj)	Unknown
0reactions
zoobacommented, Jul 9, 2018

@AlexanderSher Exactly. We should be checking the return value before assuming it’s okay.

It seems to be new because the analyzer hasn’t been crashing with a stack overflow in the past 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to: Use the Activity Log - Visual Studio (Windows)
Run Visual Studio with the /Log command line switch to write ActivityLog.xml to disk during your session. · After closing Visual Studio, find...
Read more >
Activity Log fails to load when a file has been uploaded to ...
Login as editor, go to the submission, view activity log. See error: the activity log does not load. The following error is in...
Read more >
Activity log JSON error
I consistently get an error message when trying to access the activity log saying, “ERROR Unexpected end of JSON input.” I was getting...
Read more >
activityLog.xml - Developer Community
I get a message box that says that an exceptions has occured and may be caused by an add-in. it gives the full...
Read more >
Activity Log not able to edit - Scouting Forums
Once an event is on there, I cannot delete participants or edit information. If someone else enters the information in error, I cannot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found