We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SFCombobox System.Threading.Tasks.UnobservedTaskExceptionEventArgs

Xamarin Forms,
We're getting an unobserved exception with the information below. What is SFComboBox trying to do at that point? (we don't have source code):
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (The operation was canceled.)
at System.Threading.CancellationToken.ThrowOperationCanceledException () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs:338
at System.Threading.CancellationToken.ThrowIfCancellationRequested () [0x00008] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs:333
at Syncfusion.Android.ComboBox.SfComboBox+<>c__DisplayClass627_1.b__1 () [0x00035] in :0
at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2476
at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2319

1 Reply

HM Hemalatha Marikumar Syncfusion Team January 13, 2020 11:26 AM UTC

Hi Pete Ramirez, 
Greetings from Syncfusion. 
We would like to let you know that we were able to reproduce the reported crash issue with after enabling all exception from Common Language Runtime Exception settings by continuously typing the text quickly.  We have checked and analyzed the reported crash issue. In our SfComboBox, we used the Asynchronous method to search for data. To that end, we used the cancelation of the task as described below  
A "TaskCanceledException was unhandled by user code" error will be raised here if "Just My Code" is enabled on your computer. On Express editions JMC is enabled and cannot be disabled. The exception is to begin.  Just press F5 to continue executing your code.
We already logged an improvement task for getting better performance of search the data with asynchronous in SfComboBox, it can be tracked through our feedback portal below.    
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available for any of our upcoming releases.  
If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.  
Please let us know if you need any other details.
Hemalatha M. 

Live Chat Icon For mobile
Up arrow icon