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

Unhandled NullReference exception at PassThroughProcessor.Process crashes application #928

@rikbosch

Description

@rikbosch

Hi,

We've had an application crash, with a stackstrace coming from application insights PassThroughProcessor:

(source: windows event-log)

Application: Ao.TnT.Grains.Host.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at Microsoft.ApplicationInsights.Shared.Extensibility.Implementation.PassThroughProcessor.Process(Microsoft.ApplicationInsights.Channel.ITelemetry)
   at Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.SamplingTelemetryProcessor.Process(Microsoft.ApplicationInsights.Channel.ITelemetry)
   at Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor.Process(Microsoft.ApplicationInsights.Channel.ITelemetry)
   at Ao.Shared.Grains.Host.ApplicationInsights.Filters.SqlDependencyFilter.Process(Microsoft.ApplicationInsights.Channel.ITelemetry)
   at Microsoft.ApplicationInsights.TelemetryClient.Track(Microsoft.ApplicationInsights.Channel.ITelemetry)
   at Ao.Shared.Grains.Host.ApplicationInsights.AITelemetryConsumer.TrackTrace(System.String, Orleans.Runtime.Severity, System.Collections.Generic.IDictionary`2<System.String,System.String>)
   at Orleans.Runtime.LoggerImpl.TrackTrace(System.String, Orleans.Runtime.Severity)
   at Orleans.Runtime.LoggerImpl.WriteLogMessage(Int32, Orleans.Runtime.Severity, System.String, System.Object[], System.Exception)
   at Orleans.Runtime.LoggerImpl.Log(Int32, Orleans.Runtime.Severity, System.String, System.Object[], System.Exception)
   at Orleans.Runtime.AsynchAgent.AgentThreadProc(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)

We have 2 applications reporting with the same insights key.

We're running several instances of these applications in a Service Fabric cluster. The weird thing is that all of the instances crashed, reporting the same stacktrace at the same time in our cluster.

Any idea's what could be causing this?

Version Info

SDK Version : Microsoft.ApplicationInsights.WindowsServer 2.5.0
.NET Version : 4.6.2
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS : Windows Server 2016
Hosting Info (IIS/Azure WebApps/ etc) : ServiceFabric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions