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

[Bug]In Xamarin.Forms (Android) throws System.ArgumentException in ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask). #1557

Open
sbs-surendhar-kabilan opened this issue Feb 15, 2022 · 0 comments

Comments

@sbs-surendhar-kabilan
Copy link

sbs-surendhar-kabilan commented Feb 15, 2022

We are getting the crash (System.ArgumentException: Key already in the list Parameter name: key) in ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask) and log in to the app center. Please help me to resolve this issue?

Version:
Xamarin.FFImageLoading v2.4.11.982
Xamarin.Forms 5.0.0.2291

Platform:
-Xamarin.Forms (Android)

StackTrace

ConditionalWeakTable2[TKey,TValue].Add (TKey key, TValue value) ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask) ImageServiceBase1[TImageContainer].LoadImage (FFImageLoading.Work.IImageLoaderTask task)
TaskParameterPlatformExtensions.Into[TImageView] (FFImageLoading.Work.TaskParameter parameters, FFImageLoading.Work.ITarget2[TImageContainer,TImageView] target) TaskParameterPlatformExtensions.Into (FFImageLoading.Work.TaskParameter parameters, Android.Widget.ImageView imageView) CachedImageRenderer.UpdateBitmap (FFImageLoading.Forms.Platform.CachedImageView imageView, FFImageLoading.Forms.CachedImage image, FFImageLoading.Forms.CachedImage previousImage) CachedImageRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e)
VisualElementRenderer1[TElement].SetElement (TElement element) IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) VisualElementPackager.OnElementChanged (System.Object sender, Xamarin.Forms.Platform.Android.VisualElementChangedEventArgs e) VisualElementRenderer1[TElement].OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e) Platform+DefaultRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e)
VisualElementRenderer1[TElement].SetElement (TElement element) IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) VisualElementPackager.OnElementChanged (System.Object sender, Xamarin.Forms.Platform.Android.VisualElementChangedEventArgs e) VisualElementRenderer1[TElement].OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e) CornerStackLayoutRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e)
VisualElementRenderer1[TElement].SetElement (TElement element) IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) VisualElementPackager.OnElementChanged (System.Object sender, Xamarin.Forms.Platform.Android.VisualElementChangedEventArgs e) VisualElementRenderer1[TElement].OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e) Platform+DefaultRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs1[TElement] e)
VisualElementRenderer`1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
ViewCellRenderer+ViewCellContainer.Update (Xamarin.Forms.ViewCell cell)
ViewCellRenderer.GetCellCore (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context)
CellRenderer.GetCell (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context)
CellFactory.GetCell (Xamarin.Forms.Cell item, Android.Views.View convertView, Android.Views.ViewGroup parent, Android.Content.Context context, Xamarin.Forms.View view)
ListViewAdapter.GetView (System.Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent)
BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 position, System.IntPtr native_convertView, System.IntPtr native_parent)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.159(intptr,intptr,int,intptr,intptr)

@sbs-surendhar-kabilan sbs-surendhar-kabilan changed the title In Xamarin.Forms (Android) throws System.ArgumentException in ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask). [Bug]In Xamarin.Forms (Android) throws System.ArgumentException in ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask). Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant