Comments (3)
facing the same error here, with release mode (working on the debug mode), seems to be critical and breaking the feature, cause we can't use it in production @benvinegar
from sentry-xamarin.
This is happening when running the SDK on .NET 6 app (https://github.com/getsentry/symbol-collector) before that, it was working with the exception of a few cases.
Two things:
- Why does it fail? Can we list the cases where it works and where it fails so we can properly document this? Perhaps we must make sure the event is captured in the UI thread?
- Or instead of streaming the screenshot, we should try to buffer it, and avoid adding the 0 byte attachment altogether. Alternatively we change the .NET SDK to have 2 attachment processing mode: Buffer vs Stream. The current way is Stream but buffer is introduced and made default: It will first read the stream into a memory stream, make sure it has more than 0 bytes, and only in that case, add the
EnvelopeItem
.
Here we add attachments (but don't read the data of it yet): https://github.com/getsentry/sentry-dotnet/blob/3d007fd512520421f3813d3d2b01b179ef09003e/src/Sentry/Envelopes/Envelope.cs#L131
Here we read the envelope item data into a stream we receive: https://github.com/getsentry/sentry-dotnet/blob/3d007fd512520421f3813d3d2b01b179ef09003e/src/Sentry/Envelopes/EnvelopeItem.cs#L69-L71
This new mode would go here. We first buffer it into a memory stream before writing into the stream passed as an argument (often a file stream or a network stream).
from sentry-xamarin.
Waiting for the next release of the Sentry .NET to be able to fix this issue.
from sentry-xamarin.
Related Issues (20)
- Testing automation HOT 1
- Issue with linker: System.MissingMethodException: Constructor on type 'System.Text.Json.Serialization.Converters.DictionaryOfTKeyTValueConverter HOT 1
- Action on Windows-Latest is not working
- add app start instrumentation for xamarin (forms) HOT 6
- add Routing Instumentation for App Shell in Xamarin Forms HOT 1
- add Slow and Frozen Frames instrumentation for xamarin
- Documentation - change DSN to https://[email protected]/1234 HOT 2
- Discuss CancelationToken on FormsApplicationListener HOT 1
- System.AggregateException from Sentry assembly in Xamarin.Droid app HOT 8
- Update to [email protected] with Forms??? HOT 3
- Crash on Self Hosted. HOT 1
- Sentry.Xamarin 1.4.2 gives error when compiling against net6.0-android project HOT 2
- Unhandled Exception : System.IO.IOException: Sharing violation on path ..../Sentry/xxxxx.envelope HOT 7
- Sentry does not work in XamarinForms.iOS apps HOT 8
- SDK doesn't allow you to overwrite the release option
- Line numbers for Android HOT 7
- 1.5+ Breaks using Sentry 3.31 or higher HOT 6
- System.MissingMethodException: Method not found HOT 6
- [BUG] Android caching not working HOT 4
- Define custom page types to be ignored HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-xamarin.