Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

NullReferenceException in ConsoleLogScope.DisposableScope.Dispose #8

@NArnott

Description

@NArnott

I've used this logger in lots of applications, and had great success. However, it crashes occasionally when used with the Azure SignalR client (see stack trace below). Once it crashes once, it does so repeatedly. (several thousands crashes logs in an hour's time).

This is running in a AspNetCore 2.2.0 application. I'm currently using LoggingAdvanced version 0.4.0.

I originally opened a ticket with Microsoft's SignalR team, and after a couple months of back and forth, they said it wasn't their bug... so can you review and see if this is an issue on your end?

SignalR: https://www.nuget.org/packages/Microsoft.Azure.SignalR/1.0.9

System.NullReferenceException: Object reference not set to an instance of an object. at LoggingAdvanced.Console.ConsoleLogScope.DisposableScope.Dispose() at Microsoft.Extensions.Logging.Logger.Scope.Dispose() at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.DisposeAsyncCore() at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.DisposeAsync() at Microsoft.Azure.SignalR.ServiceConnectionBase.ProcessIncomingAsync() at Microsoft.Azure.SignalR.ServiceConnectionBase.StartAsync(String target)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions