getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
566 stars 203 forks source link

System.IO.IOException in DebugStackTrace #3307

Closed jamescrosswell closed 4 weeks ago

jamescrosswell commented 4 weeks ago

Reported by @tipa here:

@jamescrosswell I am currently playing around with the SDK (hoping to contribute to https://github.com/getsentry/sentry-dotnet/issues/3260) and I am seeing this exception: image

It originates somewhere from the method changed above: image

From the message it looks like assemblyName was (upper case). Also the docs mention that an upper-case "Unknown" is returned: https://learn.microsoft.com/en-us/dotnet/api/system.reflection.module.fullyqualifiedname?view=net-8.0 I don't know what exactly that code does, but worth pointing out that the if-check assemblyName is null or "" wouldn't evaluate to true in this case