Bug 37792 - ObjectDisposedException when calling Xamarin.Forms.ImageSource.Cancel ()
Summary: ObjectDisposedException when calling Xamarin.Forms.ImageSource.Cancel ()
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: Other All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-01-19 13:56 UTC by Matthieu GD
Modified: 2016-07-19 01:43 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Matthieu GD 2016-01-19 13:56:07 UTC
We observed several crashs in our app released a few days ago. It happens on different models (iPhone 6, iPad 3, iPhone5c). The report from Xamarin Insights are similar, here's a stacktrace:

System.ObjectDisposedExceptionThe CancellationTokenSource has been disposed.

System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(bool throwOnFirstException)
System.Threading.CancellationTokenSource.NotifyCancellation(bool throwOnFirstException)
System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0(object state)
UIKit.UIApplication.UIApplicationMain(int, string[], intptr, intptr)(wrapper managed-to-native)
UIKit.UIApplication.Main(string[] args, string principalClassName, string delegateClassName)
XXX.iOS.Application.Main(string[] args)

It happens at different place in the app, obviously when an Image is displayed but we are not able to reproduce it for the moment.
Comment 1 Paul DiPietro [MSFT] 2016-01-25 17:10:58 UTC
If you manage to find a way to reliably reproduce the issue, a reproduction project would be much appreciated.
Comment 2 Samantha Houts [MSFT] 2016-07-19 01:43:04 UTC
Should be fixed in 2.3.2-pre1. Thanks!