-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
i/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/windowspotential-regressionThis issue described a possible regression on a currently supported version., verification pendingThis issue described a possible regression on a currently supported version., verification pendingregressed-in-10.0.0s/needs-attentionIssue has more information and needs another lookIssue has more information and needs another lookt/bugSomething isn't workingSomething isn't working
Description
Description
App crashes when child window is closing.
[DBG] OnDisappearing: ImageViewerPage
[FTL] Crash: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Maui.Controls.ViewExtensions.GetAnimationManager(IAnimatable animatable)
at Microsoft.Maui.Controls.AnimationExtensions.Animate[T](IAnimatable self, String name, Func`2 transform, Action`1 callback, UInt32 rate, UInt32 length, Easing easing, Action`2 finished, Func`1 repeat, IAnimationManager animationManager)
at Syncfusion.Maui.ImageEditor.SavePopup.HidePopup()
at Syncfusion.Maui.ImageEditor.SavePopup.HidePopupAsync()
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__124_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass4_0.<Post>b__0()
Well, this kind of problems seem to be connected to the changes in NET 10 and were reported similiarily for Android and Mac.
The page itself serves merely the purpose of just load an Image from the file system and to show it in the ImageEditor of SyncFusion.
I doubt the platform specific approach (if ANDROID skip or if MAC ignore exception?) is really getting to the root to fix that, as obviously also Windows platform is affected by this. For me it seems something is conceptionally broken in the window life cycle.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
10.0.40
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.100 SR10
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Ausnahme ausgelöst: "System.ObjectDisposedException" in Microsoft.Extensions.DependencyInjection.dll
Ausnahme ausgelöst: "System.ObjectDisposedException" in System.Private.CoreLib.dllReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
i/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/windowspotential-regressionThis issue described a possible regression on a currently supported version., verification pendingThis issue described a possible regression on a currently supported version., verification pendingregressed-in-10.0.0s/needs-attentionIssue has more information and needs another lookIssue has more information and needs another lookt/bugSomething isn't workingSomething isn't working