You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Errors when initializing Sentry twice with caching enabled #2033
With AutoSessionTracking = true, a session event should be created upon initialization.
Since we initialized twice, the hub should swap, causing two sessions. Both should be sent to Sentry without error.
Actual Result
A loop starts where many envelopes get created and destroyed before ultimately we get either a FileNotFoundException or an IOException
System.IO.FileNotFoundException
Could not find file '/Users/matt/Code/getsentry/sentry-dotnet/samples/Sentry.Samples.Console.Basic/bin/Debug/net6.0/temp/Sentry/132A73C90BBA506000857BC4BFC23E574F1551B5/__processing/1667863102_-2033__46292699.envelope'.
System.IO.IOException
The process cannot access the file '/Users/matt/Code/getsentry/sentry-dotnet/samples/Sentry.Samples.Console.Basic/bin/Debug/net6.0/temp/Sentry/132A73C90BBA506000857BC4BFC23E574F1551B5/__processing/1667862382_-3618__37710717.envelope' because it is being used by another process.
Activity
mattjohnsonpint commentedon Nov 7, 2022
Testing with many older versions, it looks like this has always been an issue. It's not a regression.
mattjohnsonpint commentedon Nov 8, 2022
This may be the same as #1067, just with multiple hubs in the same process rather than multiple processes.