Coder Social home page Coder Social logo

Comments (3)

Mahdibenamor avatar Mahdibenamor commented on June 18, 2024

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.

bruno-garcia avatar bruno-garcia commented on June 18, 2024

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:

  1. 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?
  2. 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.

lucas-zimerman avatar lucas-zimerman commented on June 18, 2024

Waiting for the next release of the Sentry .NET to be able to fix this issue.

from sentry-xamarin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.