Skip to content

User session crash on DoLeaveAction(Boolean discardData) #123

@BTony95

Description

@BTony95

Describe the bug
We run a C# application where we use Dynatrace as a logging/tracing system.
We have noticed that some users experience a crash with stacktrace below without any clue why this happens.

To Reproduce
The crash appears at random and we can't force a reproduce unfortunately.

Expected behavior
We do not expect a user session to crash by this issue. We want to be able to handle this issue in the background without any issues seen by the enduser

Stacktrace (Slightly redacted)

Exception information


ThreadIdentity:
ClaimsPrincipal:
UserName: XXXXXXX

  1. System.NullReferenceException
    Message: Object reference not set to an instance of an object.
    HResult: 80004003
    Data:
    System.Object:

StackTrace
at Dynatrace.OpenKit.Core.Objects.BaseAction.DoLeaveAction(Boolean discardData)
at Dynatrace.OpenKit.Core.Objects.BaseAction.LeaveAction()
at NinjaProject.Dynatrace.Extensions.UserTrackingTelemetry.Dispose() in D:\BLD1_work\44\s\NinjaProject.Dynatrace.Extensions\Logic\UserTrackingTelemetry.cs:line 88
at System.Threading.Tasks.DynatraceTaskExtensions.d__1`1.MoveNext() in D:\BLD1_work\44\s\NinjaProject.Dynatrace.Extensions\Extensions\DynatraceTaskExtensions.cs:line 37
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

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