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

[regression/7.0.0] IImage Resize Cannot access a disposed object - Android #11255

Closed
FM1973 opened this issue Nov 10, 2022 · 4 comments · Fixed by #11577
Closed

[regression/7.0.0] IImage Resize Cannot access a disposed object - Android #11255

FM1973 opened this issue Nov 10, 2022 · 4 comments · Fixed by #11577
Assignees
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-7.0.58 Look for this fix in 7.0.58! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! i/regression This issue described a confirmed regression on a currently supported version platform/android 🤖 t/bug Something isn't working

Comments

@FM1973
Copy link

FM1973 commented Nov 10, 2022

Description

I want to resize an image using IImage.Resize and then save the image.
Resize returns a disposed object. This bug has been fixes in .net 6, but it seems to be back in .net 7.
Exception: System.ObjectDisposedException: 'Cannot access a disposed object.

Steps to Reproduce

Start the repo and click the counter button.

As versoin I had to pick 7.0 Releaser Candidate 2, but it happens in the Release version of .net 7.

Link to public reproduction project repository

https://github.com/FM1973/ImageResizeRepo.git

Version with bug

7.0 Release Candidate 2

Last version that worked well

6.0.424

Affected platforms

Android

Affected platform versions

Android 11 and up

Did you find any workaround?

No workaraound

Relevant log output

[EGL_emulation] app_time_stats: avg=113.45ms min=0.88ms max=1196.19ms count=12
**System.ObjectDisposedException:** 'Cannot access a disposed object.
Object name: 'Android.Graphics.Bitmap'.'
@FM1973 FM1973 added the t/bug Something isn't working label Nov 10, 2022
@mattleibow mattleibow added platform/android 🤖 area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing i/regression This issue described a confirmed regression on a currently supported version labels Nov 10, 2022
@mattleibow mattleibow added this to the Backlog milestone Nov 10, 2022
@ghost
Copy link

ghost commented Nov 10, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@mattleibow
Copy link
Member

Note to future me...

More info is potentially here: dotnet/Microsoft.Maui.Graphics#491
Seems to have been fixed in .NET 6: dotnet/Microsoft.Maui.Graphics#453

May not have been fixed or it may be a different issue with the same error.

@janseris
Copy link

janseris commented Nov 11, 2022

@mattleibow
The issue might be that the fix was not released for developers.
#6909

The comment here from late august suggest that, too:
dotnet/Microsoft.Maui.Graphics#453 (comment)

@janseris
Copy link

janseris commented Nov 23, 2022

@hartez in what maui version will this fix be available?. NET 6 or. NET 7?
Is the. NET 6 version being updated or do all the fixes go in. NET 7?

@ghost ghost locked as resolved and limited conversation to collaborators Dec 23, 2022
@samhouts samhouts added the fixed-in-7.0.58 Look for this fix in 7.0.58! label Feb 16, 2023
@samhouts samhouts modified the milestones: Backlog, .NET 7 + Servicing Feb 16, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Feb 22, 2023
@samhouts samhouts changed the title IImage Resize Cannot access a disposed object - Android [regression/7.0.0] IImage Resize Cannot access a disposed object - Android Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-7.0.58 Look for this fix in 7.0.58! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! i/regression This issue described a confirmed regression on a currently supported version platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants