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

The System.ObjectDisposed exception is thrown when applying clipping to an element in MAUI #2996

Closed
ashok-kuvaraja opened this issue Dec 29, 2023 · 3 comments
Assignees
Labels
Bug Something isn't working MAUI

Comments

@ashok-kuvaraja
Copy link

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

8.0

OS

macOS

SDK Version

3.41.3

Self-Hosted Sentry Version

No response

Steps to Reproduce

In the provided sample, I have arranged elements in the vertical direction with virtualization support. While scrolling and applying clipping to an element, I encountered the System.ObjectDisposed exception. The application functions perfectly without integrating the Sentry package into the MauiAppBuilder, and the exception doesn't occur if I refrain from applying a clip to an element. However, it is required to apply clipping to an element in my scenario.

To reproduce the issue:

  1. Run the sample below.
  2. Scroll vertically to the end.

MauiApplication.zip

Note: Make sure to add Dsn link in the MauiProgram.cs file

Expected Result

It should be worked without any exception

Actual Result

The app has crashed with System.ObjectDisposed exception. Find the demo below,

Sentry-Issue.mov
@bitsandfoxes
Copy link
Contributor

Thanks a lot for the repro! I'm looking into this!

@bitsandfoxes bitsandfoxes added Bug Something isn't working MAUI labels Jan 4, 2024
@bitsandfoxes bitsandfoxes self-assigned this Jan 9, 2024
@bitsandfoxes
Copy link
Contributor

I suspect this has to do with the way the SDK used to hook itself up for breadcrumb creation as I cannot reproduce this with the current 4.0.0 version of the SDK.

@bitsandfoxes
Copy link
Contributor

bitsandfoxes commented Jan 11, 2024

Confirmed by checking with the old SDK. Fixed by #2900 and available in 4.0.0-beta.3 and newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working MAUI
Projects
Status: Done
Archived in project
Development

No branches or pull requests

2 participants