Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

SEHException from QuickPulseTelemetryModule.StateThreadWorker #1088

Closed
dennis-yemelyanov opened this issue Oct 24, 2018 · 2 comments
Closed
Assignees
Milestone

Comments

@dennis-yemelyanov
Copy link

When using Application Insights in .NET console application, sometimes the process crashes with below exception. Although the exception itself comes from .NET code, it looks like this code is called from QuickPulseTelemetryModule. Any ideas what might be causing this error?

Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
at System.Threading.Monitor.ObjWait(Boolean, Int32, System.Object)
at System.Threading.Monitor.Wait(System.Object, Int32, Boolean)
at System.Threading.Monitor.Wait(System.Object, Int32)
at System.Threading.ManualResetEventSlim.Wait(Int32, System.Threading.CancellationToken)
at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32, System.Threading.CancellationToken)
at System.Threading.Tasks.Task.InternalWait(Int32, System.Threading.CancellationToken)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule.StateThreadWorker(System.Threading.CancellationToken)
at Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.QuickPulse.Helpers.QuickPulseThreadModuleScheduler+State.Worker(System.Object)
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
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(System.Object)

Version Info

SDK Version : 2.7.2
.NET Version : 4.6.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : Visual Studio
OS : Windows 10
Hosting Info (IIS/Azure WebApps/ etc) : Azure App Service

@lmolkova lmolkova added the bug label Jul 1, 2019
@lmolkova
Copy link
Member

lmolkova commented Jul 1, 2019

up

<Event><System><Provider Name=".NET Runtime"/><EventID>1026</EventID><Level>1</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2019-06-20T01:00:09Z"/><EventRecordID>-302883078</EventRecordID><Channel>Application</Channel><Computer>--</Computer><Security/></System><EventData><Data>
   at Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsEventListener.OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs)
   at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32, System.Guid*, System.Diagnostics.Tracing.EventWrittenEventArgs)
   at System.Diagnostics.Tracing.EventSource.DispatchToAllListeners(Int32, System.Guid*, System.Diagnostics.Tracing.EventWrittenEventArgs)
   at System.Diagnostics.Tracing.EventSource.WriteToAllListeners(Int32, System.Guid*, System.Object[])
   at System.Diagnostics.Tracing.EventSource.WriteToAllListeners(Int32, System.Guid*, Int32, EventData*)
   at System.Diagnostics.Tracing.EventSource.WriteEventWithRelatedActivityIdCore(Int32, System.Guid*, Int32, EventData*)
   at System.Diagnostics.Tracing.EventSource.WriteEvent(Int32, System.String, System.String)
   at Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule.StateThreadWorker(System.Object)
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   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(System.Object)</Data></EventData></Event>

@lmolkova lmolkova added this to the 2.11 milestone Jul 1, 2019
@lmolkova lmolkova added the p1 label Jul 2, 2019
@lmolkova
Copy link
Member

lmolkova commented Jul 2, 2019

Azure Functions team notice that happens with many Functions v1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants