IImage Resize Cannot access a disposed object - Android
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'.'
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.
Note to future me...
More info is potentially here: https://github.com/dotnet/Microsoft.Maui.Graphics/issues/491 Seems to have been fixed in .NET 6: https://github.com/dotnet/Microsoft.Maui.Graphics/pull/453
May not have been fixed or it may be a different issue with the same error.
@mattleibow The issue might be that the fix was not released for developers. https://github.com/dotnet/maui/issues/6909
The comment here from late august suggest that, too: https://github.com/dotnet/Microsoft.Maui.Graphics/pull/453#issuecomment-1226947535
@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?