Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using version 3.8.3 System.NullReferenceException on SentrySDK.Dispose() #1176

Closed
DarthSonic opened this issue Aug 26, 2021 · 2 comments
Closed
Labels
ASP.NET Bug Something isn't working

Comments

@DarthSonic
Copy link

DarthSonic commented Aug 26, 2021

Environment

How do you use Sentry?
Sentry ASP.NET MVC

Which SDK and version?
SDK 3.8.3
.NET 4.8

Steps to Reproduce

  1. start debug session
  2. merge branch while debug session running
  3. exception is thrown

Would also be thrown if there is an intended application shutdown initiated that triggers Application_OnEnd.

Expected Result

No exceptions should be thrown. There was no exception using SDK < 3.8(.1?)

Actual Result

image

Stack Trace

   at Sentry.AspNet.Internal.HttpContextScopeStackContainer.get_Stack() in /_/src/Sentry.AspNet/Internal/HttpContextScopeStackContainer.cs:line 13
   at Sentry.Internal.SentryScopeManager.get_ScopeAndClientStack() in /_/src/Sentry/Internal/SentryScopeManager.cs:line 18
   at Sentry.Internal.SentryScopeManager.ScopeSnapshot.Dispose() in /_/src/Sentry/Internal/SentryScopeManager.cs:line 142
   at Sentry.Internal.Hub.Dispose() in /_/src/Sentry/Internal/Hub.cs:line 413
   at Sentry.SentrySdk.DisposeHandle.Dispose() in /_/src/Sentry/SentrySdk.cs:line 137
   at CleverMatch.Web.MvcApplication.Application_OnEnd() in C:\Source\Repos\CleverMatch\CleverMatch.Web\Global.asax.cs:line 686
@bruno-garcia
Copy link
Member

Thanks for raising this. It came up through #1157
We're looking to add a fix soon but it would really help us/speed it up if we'd get a PR with a fix

There's more description here:

#1157 (comment)

@bruno-garcia bruno-garcia added ASP.NET Bug Something isn't working labels Aug 26, 2021
@lucas-zimerman
Copy link
Collaborator

Closed with #1180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASP.NET Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants