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

Exception android.runtime.JavaProxyThrowable: System.ArgumentOutOfRangeException

Hello,


I'm getting the exception below from my logs in google play in small quantities, and I'm not able to reproduce it in development. So this is more of a report to make you guys aware.


Syncfusion version: 20.4.0.49

Xamarin.Forms: 5.0.0.2545


<combobox:SfComboBox x:Name="_companiesPicker"

                                             Style="{StaticResource ComboBoxStyle}"

                                             Watermark=""

                                             SuggestionBoxPlacement="Auto"

                                             VerticalOptions="CenterAndExpand"

                                             DataSource="{Binding Companies}"

                                             SelectedItem="{Binding CurrentCompanySelected, Mode=TwoWay}"

                                             DisplayMemberPath="Name"

                                             MaximumDropDownHeight="300" />


Exception android.runtime.JavaProxyThrowable: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
  at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Int32 index) [0x0007b] in <052d4ffc295b472ebae9750a0d92739d>:0 
  at Syncfusion.Android.ComboBox.SfComboBox.PerformCompletion (System.Int32 position, System.Int64 id) [0x0024c] in :0 
  at Syncfusion.Android.ComboBox.SfComboBox.SelectItemFromAdapter () [0x000e4] in :0 
  at Syncfusion.Android.ComboBox.SfComboBox.OnTouch (Android.Views.View view, Android.Views.MotionEvent e) [0x00209] in :0 
  at Android.Views.View+IOnTouchListenerInvoker.n_OnTouch_Landroid_view_View_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v, System.IntPtr native_e) [0x00017] in :0 
  at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLL_Z (_JniMarshal_PPLL_Z callback, System.IntPtr jnienv, System.IntPtr klazz, System.IntPtr p0, System.IntPtr p1) [0x00005] in :0 
  at crc642fed3152aaceafc3.SfComboBox.n_onTouch
  at crc642fed3152aaceafc3.SfComboBox.onTouch (SfComboBox.java:99)
  at android.view.View.dispatchTouchEvent (View.java:15540)
  at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3310)
  at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2974)
  at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3316)
  at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2990)
  at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3316)
  at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2990)
  at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3316)
  at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2990)
  at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:3316)
  at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2990)
  at android.widget.PopupWindow$PopupDecorView.dispatchTouchEvent (PopupWindow.java:2851)
  at android.view.View.dispatchPointerEvent (View.java:15803)
  at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent (ViewRootImpl.java:8153)
  at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:7877)
  at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:7213)
  at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:7270)
  at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:7236)
  at android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:7434)
  at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:7244)
  at android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:7491)
  at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:7217)
  at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:7270)
  at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:7236)
  at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:7244)
  at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:7217)
  at android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:10788)
  at android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:10676)
  at android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:10632)
  at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent (ViewRootImpl.java:10926)
  at android.view.InputEventReceiver.dispatchInputEvent (InputEventReceiver.java:285)
  at android.os.MessageQueue.nativePollOnce
  at android.os.MessageQueue.next (MessageQueue.java:335)
  at android.os.Looper.loopOnce (Looper.java:186)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8757)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)


att.



23 Replies

AK Arunachalam Kandasamy Raja Syncfusion Team April 20, 2023 01:25 PM UTC

Hi Wanft,

 

Thank you for reaching out to Syncfusion support.

 

We were unable to reproduce the reported scenario on our end. To better understand the root cause and assist with resolving the issue, it would be helpful if you could provide more detailed information about the scenario in which our control was used, the complete code, and its data source fields, including a sample demonstrating the issue with replication steps. Please let us know if you have any other queries.

 

Kindly review the attached example and apply any required modifications to reproduce the problem. Afterward, kindly forward the sample to us, as it would enable us to conduct a more thorough investigation of the issue.


Regards,

Arunachalam K


Attachment: ComboBoxSampleF181835_1d2d6e73.zip


WA Wanft April 20, 2023 01:34 PM UTC

Ty for the reply, but as I pointed out, it is happening only to a few users in production. I'm unable to replicate the issue in debug or release mode. I did the report just to make you guys aware of the issue.



AK Arunachalam Kandasamy Raja Syncfusion Team April 21, 2023 02:01 PM UTC

Hi Wanft,

 

Thank you for providing the details and call stack trace. We appreciate your effort in helping us identify the issue. We will investigate the matter further and work towards finding a resolution.



JK Jesse Knott replied to Arunachalam Kandasamy Raja July 8, 2023 04:32 AM UTC

Has there been a resolution to this issue? I am getting the same error in my production code. I tried using a older version of the library, (20.4.0.38) and did not have this issue.

I am using 

Syncfusion libs 22.1.37

Xamarin.Forms 5.0.0.2578

For my issue, it seems to be happening when a page is loaded with only one or very few entries in a combo box. If I have more than a couple of entries in the combo box, it happens less frequently, but still occurs occasionally. The odd part for me, is that it doesn't throw the exception from within my code, the stack trace is entirely external code.

My stack trace is

>	0xC in System.ThrowHelper.ThrowArgumentOutOfRange_IndexException at C:\Users\jesse\AppData\Local\SourceServer\5b11c9dcc535c7590e9a4e221e34a434d0de88ed69c41bda65e25499d06ee526\throwhelper.cs:163,13	C#
0x9 in System.Collections.Generic.List.get_Item at C:\Users\jesse\AppData\Local\SourceServer\678f22a840eabf43654e31a76567727807da4e8cad12d13509f4afd9a1ceff3e\List.cs:161,21 C#
0xED in Syncfusion.Android.ComboBox.SfComboBox.GetSelectedData C#
0x177 in Syncfusion.Android.ComboBox.SfComboBox.SelectedListData C#
0x6C in Syncfusion.Android.ComboBox.SfComboBox.SetSelectedValuesbasedOnInitialText C#
0x28D in Syncfusion.Android.ComboBox.SfComboBox.OnLayout C#
0x10 in Android.Widget.LinearLayout.n_OnLayout_ZIIII at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-32/mcw/Android.Widget.LinearLayout.cs:835,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x2D in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:93,6 C#
0x69 in Android.Views.ViewGroup.Layout at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-32/mcw/Android.Views.ViewGroup.cs:3340,5 C#
0x63 in Xamarin.Forms.Platform.Android.ViewRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\d1bd622e2cc7cda39e5c44cec12bfe94d03667f5e839a0dfbed72626f63f0eae\ViewRenderer.cs:209,4 C#
0x10 in Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:206,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x97 in Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:189,5 C#
0x171 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:111,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:139,4 C#
0x3A in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:418,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:396,4 C#
0x8 in Xamarin.Forms.Platform.Android.Platform.DefaultRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\d984d199b52407a6fc62de8ee73cace0bb13158d476564b992444e24732b23ec\Platform.cs:1348,5 C#
0x10 in Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:206,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x97 in Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:189,5 C#
0x171 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:111,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:139,4 C#
0x3A in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:418,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:396,4 C#
0x8 in Xamarin.Forms.Platform.Android.Platform.DefaultRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\d984d199b52407a6fc62de8ee73cace0bb13158d476564b992444e24732b23ec\Platform.cs:1348,5 C#
0x10 in Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:206,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x97 in Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:189,5 C#
0x171 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:111,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:139,4 C#
0x3A in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:418,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:396,4 C#
0x8 in Xamarin.Forms.Platform.Android.ViewRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\d1bd622e2cc7cda39e5c44cec12bfe94d03667f5e839a0dfbed72626f63f0eae\ViewRenderer.cs:202,4 C#
0x10 in Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:206,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#

0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x97 in Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:189,5 C#
0x171 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:111,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:139,4 C#
0x3A in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:418,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:396,4 C#
0x8 in Xamarin.Forms.Platform.Android.Platform.DefaultRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\d984d199b52407a6fc62de8ee73cace0bb13158d476564b992444e24732b23ec\Platform.cs:1348,5 C#
0x10 in Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:206,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x97 in Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:189,5 C#
0x171 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:111,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:139,4 C#
0x3A in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:418,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:396,4 C#
0x8 in Xamarin.Forms.Platform.Android.Platform.DefaultRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\d984d199b52407a6fc62de8ee73cace0bb13158d476564b992444e24732b23ec\Platform.cs:1348,5 C#
0x10 in Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:206,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x97 in Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout at D:\a\1\s\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:189,5 C#
0x171 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:111,5 C#
0x1E in Xamarin.Forms.Platform.Android.VisualElementRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\30576c9a315105adb3beb84fc834b9a064d5f180f5430c4c53e859957c8c4792\VisualElementRenderer.cs:139,4 C#
0x14 in Xamarin.Forms.Platform.Android.ScrollViewContainer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\639f74aad169ee5772dfed3c7e0e53dd681d4ee43abbe0d23222d42bb84e6d91\ScrollViewContainer.cs:70,4 C#
0x10 in Android.Views.ViewGroup.n_OnLayout_ZIIII at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-32/mcw/Android.Views.ViewGroup.cs:3626,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x78 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:75,7 C#
0x80 in Android.Widget.FrameLayout.OnLayout at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-32/mcw/Android.Widget.FrameLayout.cs:613,5 C#
0x40 in Xamarin.Forms.Platform.Android.ScrollViewRenderer.OnLayout at C:\Users\jesse\AppData\Local\SourceServer\154af465aebeb41f43a4813f2a02291bc587b57fe12f62aad903c93ed42ee45d\ScrollViewRenderer.cs:272,4 C#
0x10 in Android.Widget.FrameLayout.n_OnLayout_ZIIII at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-32/mcw/Android.Widget.FrameLayout.cs:597,4 C#
0x11 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPZIIII_V at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:429,5 C#
0x19 in Java.Interop.NativeMethods.java_interop_jnienv_call_nonvirtual_void_method_a C#
0x79 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/JniEnvironment.g.cs:12320,4 C#
0x2D in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:93,6 C#
0x69 in Android.Views.ViewGroup.Layout at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-32/mcw/Android.Views.ViewGroup.cs:3340,5 C#
0x118 in Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\2a80fb24199bb7d2a944e82966f8e879d1d3e4a7383f823ece6f46326109b8b0\VisualElementTracker.cs:105,5 C#
0xB in Xamarin.Forms.Platform.Android.ScrollViewRenderer.UpdateLayout at C:\Users\jesse\AppData\Local\SourceServer\154af465aebeb41f43a4813f2a02291bc587b57fe12f62aad903c93ed42ee45d\ScrollViewRenderer.cs:142,4 C#
0x1 in Xamarin.Forms.Platform.Android.ScrollViewRenderer.HandleLayoutChanged at C:\Users\jesse\AppData\Local\SourceServer\154af465aebeb41f43a4813f2a02291bc587b57fe12f62aad903c93ed42ee45d\ScrollViewRenderer.cs:119,4 C#
0x1A5 in Xamarin.Forms.Layout.UpdateChildrenLayout at C:\Users\jesse\AppData\Local\SourceServer\12400ace831a878929472fd9fafc11047dffc5d2559fa892ea151e3422bee2a6\Layout.cs:247,6 C#
0x10 in Xamarin.Forms.Layout.OnSizeAllocated at C:\Users\jesse\AppData\Local\SourceServer\12400ace831a878929472fd9fafc11047dffc5d2559fa892ea151e3422bee2a6\Layout.cs:203,4 C#
0x3 in Xamarin.Forms.VisualElement.SizeAllocated at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:879,64 C#
0x24 in Xamarin.Forms.VisualElement.SetSize at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:1111,4 C#
0x6C in Xamarin.Forms.VisualElement.set_Bounds at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:418,5 C#
0x2 in Xamarin.Forms.VisualElement.Layout at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:788,43 C#
0x1DC in Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion at C:\Users\jesse\AppData\Local\SourceServer\12400ace831a878929472fd9fafc11047dffc5d2559fa892ea151e3422bee2a6\Layout.cs:157,4 C#
0x110 in Xamarin.Forms.Page.LayoutChildren at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:296,6 C#
0xD0 in Xamarin.Forms.Page.UpdateChildrenLayout at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:375,4 C#
0x10 in Xamarin.Forms.Page.OnSizeAllocated at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:355,4 C#
0x3 in Xamarin.Forms.VisualElement.SizeAllocated at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:879,64 C#
0x24 in Xamarin.Forms.VisualElement.SetSize at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:1111,4 C#
0x6C in Xamarin.Forms.VisualElement.set_Bounds at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:418,5 C#
0x2 in Xamarin.Forms.VisualElement.Layout at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:788,43 C#
0x61 in Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion at C:\Users\jesse\AppData\Local\SourceServer\12400ace831a878929472fd9fafc11047dffc5d2559fa892ea151e3422bee2a6\Layout.cs:126,5 C#
0x110 in Xamarin.Forms.Page.LayoutChildren at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:296,6 C#
0xD0 in Xamarin.Forms.Page.UpdateChildrenLayout at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:375,4 C#
0x10 in Xamarin.Forms.Page.OnSizeAllocated at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:355,4 C#
0x3 in Xamarin.Forms.VisualElement.SizeAllocated at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:879,64 C#
0xB6 in Xamarin.Forms.Page.OnChildMeasureInvalidated at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:414,5 C#
0x1B in Xamarin.Forms.Page.OnChildMeasureInvalidated at C:\Users\jesse\AppData\Local\SourceServer\c962e12c21e86538ddf4a7779e818985bca0cfacd7cb2ef218720436d7b54498\Page.cs:337,4 C#
0x1D in Xamarin.Forms.VisualElement.InvalidateMeasureInternal at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:906,4 C#
0x1F in Xamarin.Forms.VisualElement.set_IsPlatformEnabled at C:\Users\jesse\AppData\Local\SourceServer\039fc35400b7896002bfac00efd90039f4b0b318ee1f6ca5e3350d5ba9b9b351\VisualElement.cs:648,6 C#
0xF in Xamarin.Forms.Platform.Android.Platform.<>c.<.cctor>b__125_0 at C:\Users\jesse\AppData\Local\SourceServer\d984d199b52407a6fc62de8ee73cace0bb13158d476564b992444e24732b23ec\Platform.cs:41,6 C#
0x12E in Xamarin.Forms.BindableObject.SetValueActual at C:\Users\jesse\AppData\Local\SourceServer\ede64f723db564d8c8af75df2738e85b3ff5e262a0a258150c0d24702ed512d7\BindableObject.cs:512,5 C#
0x17C in Xamarin.Forms.BindableObject.SetValueCore at C:\Users\jesse\AppData\Local\SourceServer\ede64f723db564d8c8af75df2738e85b3ff5e262a0a258150c0d24702ed512d7\BindableObject.cs:446,5 C#
0x61 in Xamarin.Forms.BindableObject.SetValue at C:\Users\jesse\AppData\Local\SourceServer\ede64f723db564d8c8af75df2738e85b3ff5e262a0a258150c0d24702ed512d7\BindableObject.cs:374,4 C#
0x5 in Xamarin.Forms.BindableObject.SetValue at C:\Users\jesse\AppData\Local\SourceServer\ede64f723db564d8c8af75df2738e85b3ff5e262a0a258150c0d24702ed512d7\BindableObject.cs:349,68 C#
0x7 in Xamarin.Forms.Platform.Android.Platform.SetRenderer at C:\Users\jesse\AppData\Local\SourceServer\d984d199b52407a6fc62de8ee73cace0bb13158d476564b992444e24732b23ec\Platform.cs:378,4 C#
0x31 in Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnCreateView at C:\Users\jesse\AppData\Local\SourceServer\6733af68f4cc1c9ada338ed1428a259af14b483fd2f75531f439c90b0d5e56f6\FragmentContainer.cs:58,5 C#
0x24 in AndroidX.Fragment.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ at /Users/runner/work/1/s/generated/androidx.fragment.fragment/obj/Release/monoandroid12.0/generated/src/AndroidX.Fragment.App.Fragment.cs:2031,4 C#
0xD in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLLL_L at C:\Users\jesse\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:352,5 C#


AJ AhamedAliNishad JahirHussain Syncfusion Team July 10, 2023 02:08 PM UTC

Hi Jesse,

 

We have created a sample and investigated the GetSelectedData method in the source code of SfComboBox based on the provided stack trace . However, we were unable to reproduce the reported issue. We have attached tested sample for your reference.

 

Kindly review the attached sample and apply any required modifications to reproduce the problem . Afterward, kindly forward the sample to us or share the issue replication sample. It would enable us to conduct a more thorough investigation of the issue and provide the solution at earliest

 

Regards,

Ahamed Ali Nishad.


Attachment: ComboiOS_(3)_86168e84.zip


PP Paul Parkins July 17, 2023 10:04 AM UTC

I will add that I too have been getting this issue in multiple places within my app since updating to the latest (Xamarin.Forms) libraries.

If I downgrade to the 21.2.3 that I was on before, everything is ok. Whatever has changed, did so between 21.2.3 and 21.2.10 as I have confirmed the problem for me, with both 21.2.10 and the latest 22.1.38.


Whatever the problem is, it seems to occur when I choose a different item in my SfComboBox and the exception occurs before it even calls the setter of my associated SelectedItem property.

Whilst I do not currently have an isolated project that demonstrates the problem, I provide this information in case it helps......

This my callstack when the stop on exception occurs

0xC in System.ThrowHelper.ThrowArgumentOutOfRange_IndexException at C:\Users\Sox Work\AppData\Local\SourceServer\5b11c9dcc535c7590e9a4e221e34a434d0de88ed69c41bda65e25499d06ee526\throwhelper.cs:163,13
at C:\Users\Sox Work\AppData\Local\SourceServer\5b11c9dcc535c7590e9a4e221e34a434d0de88ed69c41bda65e25499d06ee526\throwhelper.cs(163)
0x9 in System.Collections.Generic.List<object>.get_Item at C:\Users\Sox Work\AppData\Local\SourceServer\678f22a840eabf43654e31a76567727807da4e8cad12d13509f4afd9a1ceff3e\List.cs:161,21
at C:\Users\Sox Work\AppData\Local\SourceServer\678f22a840eabf43654e31a76567727807da4e8cad12d13509f4afd9a1ceff3e\List.cs(161)
0x33 in System.Linq.Enumerable.ElementAt<object> at C:\Users\Sox Work\AppData\Local\SourceServer\f47b706f2374fccfc260650b1c35c52bd07ff4c59702896ee325ea34fd25b2fc\ElementAt.cs:30,21
at C:\Users\Sox Work\AppData\Local\SourceServer\f47b706f2374fccfc260650b1c35c52bd07ff4c59702896ee325ea34fd25b2fc\ElementAt.cs(30)
0x1C3 in Syncfusion.Android.ComboBox.SfComboBox.PerformCompletion
0xED in Syncfusion.Android.ComboBox.SfComboBox.SelectItemFromAdapter
0x20A in Syncfusion.Android.ComboBox.SfComboBox.OnTouch
0x1A in Android.Views.View.IOnTouchListenerInvoker.n_OnTouch_Landroid_view_View_Landroid_view_MotionEvent_ at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-31/mcw/Android.Views.View.cs:4130,5
0xB in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLL_Z at C:\Users\Sox Work\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs:231,5
at C:\Users\Sox Work\AppData\Local\SourceServer\53ca438fe2fb5ef4dc9d3372b434ee99e54e8b9ea6467ffcff0dba3160739791\JNINativeWrapper.g.cs(231)


And this is the information gained from the my unhandled exception handler (which is slightly different / more informative)

System
.Exception:CurrentDomainOnUnhandledException--->System.ArgumentOutOfRangeException:Index was outof range.Must be non-negative and less than the size of the collection.
Parameter name: index at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/List.cs:161 at System.Linq.Enumerable.ElementAt[TSource] (System.Collections.Generic.IEnumerable`1[T] source,System.Int32 index)[0x00031]in/Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Linq/src/System/Linq/ElementAt.cs:30 at Syncfusion.Android.ComboBox.SfComboBox.PerformCompletion(System.Int32 position,System.Int64 id)[0x001bd]in:0 at Syncfusion.Android.ComboBox.SfComboBox.SelectItemFromAdapter()[0x000e4]in:0 at Syncfusion.Android.ComboBox.SfComboBox.OnTouch(Android.Views.View view,Android.Views.MotionEvent e)[0x00209]in:0 at Android.Views.View+IOnTouchListenerInvoker.n_OnTouch_Landroid_view_View_Landroid_view_MotionEvent_ (System.IntPtr jnienv,System.IntPtr native__this,System.IntPtr native_v,System.IntPtr native_e)[0x00018]in/Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-31/mcw/Android.Views.View.cs:4130 at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLL_Z(_JniMarshal_PPLL_Z callback,System.IntPtr jnienv,System.IntPtr klazz,System.IntPtr p0,System.IntPtr p1)[0x00005]in/Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:231 at (wrapper native-to-managed)Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLL_Z(intptr,intptr,intptr,intptr)---Endof inner exception stack trace ---
If am currently trying to resolve thisfrommy own code, but not sure how. I can provide any more information as I go along, I post back here


To the OP, I suggest if you downgrade to 21.2.3, your problem may disappear.


Paul



PP Paul Parkins July 17, 2023 10:21 AM UTC

OK it seems to be something to do with the use of the DisplayMemberPath property when the SelectionItem is being changed.

I removed my use of the DisplayMemberPath and could not cause the issue to arise. When I put it back in, it occured straight away.


I will have a go at adapting your sample project to see if I can get it to fail in the


FYI, I note the sample is iOS, but my issue is occuring on the Android platform (using the emulator)


Paul



PP Paul Parkins July 17, 2023 12:22 PM UTC

So the sample was named iOS but actually contained both iOS and Android project. I used the Android build and have enhanced your sample project to the point that it demonstrate the problem....

These steps appear to be reliably causing the issue for me:

  • Run the Android app in the emulator
  • Select category "Sciences"
  • Press "Select Last"
  • Select category "Arts"
  • Using the subjects combo select "Drama"


Normally there is no useful call stack (ie. not my code)


On this occasion the debugger stopped within the ElementAt method within ElementAt.cs. The input parameter index has a value of -1 

and the code droppped though to the final statement



I think in reproducing this problem, it is important the the data source of the combobox is dynamic, and changed at runtime (which is why I added subject category selection, so the subject combox contents change). 

I have considered could it be the combo is already showing an item with an index, which is beyond count of items for the new source of items, but the combo does appear to be coping with this fine.


Another thing I have noted that I cannot answer why, is that when the "Select First" and "Select Last" button are pressed, my code sets a new value for the SelectedSubject property of the view model (to which the combobox's SelectedItem property is bound). However it would seem the setter for this property gets calls twice (with the same value) but quite different callstacks. Note the double entry in the Output window, and use a breakpoint in the SelectedSubject setter to see this for yourself.   Just thought I'd mentionth at in case it helps.


Paul










Attachment: ComboSampleShowingIssue_e30dfbfe.zip


AK Arunachalam Kandasamy Raja Syncfusion Team July 18, 2023 01:05 PM UTC

Hi Paul,

 

We have confirmed the reported issue "System.ArgumentOutOfRangeException is thrown when selecting the item from the SfComboBox” as a bug and logged a defect report. You can track the status of the bug from the below link.

 

Link: https://www.syncfusion.com/feedback/45397/system-argumentoutofrangeexception-is-thrown-when-selecting-the-item-from-the

 

We will provide a patch for this issue on August 1st, 2023. We appreciate your patience until then.

 

Note: The provided feedback link is private, and you need to log in to view this feedback.

 

If you have any more specifications/precise replication procedures or a scenario to be tested, you can add them as a comment in the portal.

 

Regards,

Arunachalam K



JK Jesse Knott July 31, 2023 09:40 PM UTC

Hello, I have been able to make a project that exhibits this behavior.

It seems to have to do with having a custom class for the items in the list.

This does appear to be an intermittent crash, so if it does not crash immediately (It seems to for me), please try running it a few times.


Thank you for your assistance!

Jesse Knott



Attachment: sfcomboboxCrash_d7f5c1c9.zip


NY Nirmalkumar Yuvaraj Syncfusion Team August 1, 2023 01:24 PM UTC

Hi Paul ,

 

We have checked the reported issue " System.ArgumentOutOfRangeException is thrown when selecting the item from the SfComboBox " and we have fixed the issue. Please find the fixed assemblies in the attachment. 

 

Assembly version: 22.2.5

 

Please note that we have created these assemblies for version 22.2.5 specifically, to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.

 

Note: Please refer to the below link to apply the custom assembly

 

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

 

This fix will be included in our upcoming weekly release on Aug 08, 2023. We appreciate your patience until then.

 

Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.

 

Regards,

Ahamed Ali Nishad.


Attachment: SfComboBoxAssembly_55ad006.zip


AJ AhamedAliNishad JahirHussain Syncfusion Team August 1, 2023 01:24 PM UTC

Hi Jesse,

 

We have checked the reported issue " System.ArgumentOutOfRangeException occurs When setting the Text of the Combobox to a value that already exists in the SfComboBox DataSource ." and we have fixed the issue. Please find the fixed assemblies in the attachment. 

 

Assembly version: 22.2.5

 

Please note that we have created these assemblies for version 22.2.5 specifically, to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.

 

Note: Please refer to the below link to apply the custom assembly

 

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

 

This fix will be included in our upcoming weekly release on Aug 08, 2023. We appreciate your patience until then.

 

Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.

 

Regards,

Ahamed Ali Nishad.


Attachment: SfComboBoxAssembly_22db4a67.zip


PP Paul Parkins August 8, 2023 08:05 AM UTC

Hi,

I just upgraded my sample app to 22.2.8 released 8th August, but it didn't appear to help. Checking the release notes for 22.2.8 the only item listed against it is  #I465876.

Please can you confirm if you believe this fix did make it into the expected release or not?


Thanks

Paul




AK Arunachalam Kandasamy Raja Syncfusion Team August 9, 2023 02:40 PM UTC

Hi Paul,

 

We have included the fix for the reported issue "System.ArgumentOutOfRangeException is thrown when selecting the item from the SfComboBox" in the weekly release version 22.2.8. We have checked the SfComboBox latest Nuget(22.2.8) with your provided issue replication sample. And followed the issue replicate steps however the issue is not reproduced. For your reference, We have attached the sample with the latest updated package, along with a video showcasing the results. Please let us know if you have any other queries.

 

Regards,

Arunachalam K


Attachment: ComboiOS181835_fe30f189.zip


PP Paul Parkins August 10, 2023 08:32 AM UTC

Hi,

I agree things do look improved from your video.  However using the sample application with no changes from what you supplied, I can still cause the fault (please see attached video - apologies for the watermark)


A sequence that can reliably recreate this issue is:

  • Set category to "Other"
  • Press "Last"
  • Set sub-category to "social"
  • Set category to "Languages"
  • Set sub-category to "German"
  • OutOfRange exception occurs

Regards
Paul



Attachment: SyncCombo_Issue_Nuget_22.2.8.mkv_c352c858.zip


BV Brundha Velusamy Syncfusion Team August 14, 2023 10:41 AM UTC

Hi Paul,

 

Sorry for the inconvenience.

 

We are able to reproduce the reported issue. We have fixed the reported issue "System.ArgumentOutOfRangeException is thrown when selecting the item from the SfComboBox", and shared the fixed custom Assembly file in the attachment. If you require any further information, please do not hesitate to let us know. This fix will be included in our upcoming weekly release on August 22, 2023. We appreciate your patience until then.

 

Assembly version: 22.2.8

 

Disclaimer:

 

Please note that we have created this patch for version 22.2.8 specifically, to resolve the issue reported in this. If you have received other patches for the same version for other products, please apply all patches in the order received.

 

Note: Please refer to the below link to apply the custom assembly

 

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

 

Regards,

Brundha V


Attachment: SfComboBoxAssembly_54682a78.zip


PP Paul Parkins August 15, 2023 09:54 AM UTC

Hi,

As a test I did try to install your fixed assemblies, but I find your guide out of date (Xamarin hasn't been using  the"Portable" structure for years).  I even attempted to provide feedback on page, but it refused to accept my email address as valid.

I have spent enough time trying to use these fixed assemblies, and I am not asking for your help in this.  My preference would always be to use an official Syncfusion release in my production applicaton, rather than a special release. As such, I am happy to wait until you believe it is in an official release.

FYI, I did try it in this week's 22.2.9 release, but it wasn't fixed in there. I'll keep my eye on future weekly releases.


regards


Paul





BV Brundha Velusamy Syncfusion Team August 16, 2023 06:36 AM UTC

Hi Paul,

 

Query 1: I am happy to wait until the official release.

 

As we mentioned earlier, we will include the fix for the reported issue in our upcoming weekly release on August 22, 2023. We will let you know once the NuGet is released. We appreciate your patience until then.

 

For your reference, we have attached the ComboBox sample with fixed custom assembly reference. Please take a look at the provided sample and feel free to reach out if you have any further questions or concerns.

 

Query 2: I find your guide out of date

 

Thank you for your information. We will include the updated guidelines for "How to apply the custom assemblies when configured the project with Syncfusion NuGet packages?" in the future. We will let you know once the updated guidelines are included.

 

Regards,

Brundha V


Attachment: ComboiOS_8130d431.zip


PP Paul Parkins August 16, 2023 08:27 AM UTC

Thanks.

Unfortunately my anti-virus software didn't like a couple of your DLLs and deletes them.

Image_1922_1692174129496


FYI the reported threat type is "Insight Network Threat" and the threat name is "WS.Reputation.1"

Research shows these may not actually contain viruses but are flagged based on a low Reputation Score. Even so, I'll give it a miss and wait on the Aug 22 release. Thanks


regards


Paul





BV Brundha Velusamy Syncfusion Team August 17, 2023 05:15 AM UTC

Hi Paul,

 

Thanks for the update.

 

We will notify you once NuGet is released on August 22, 2023. We appreciate your patience until then.

 

Regards,

Brundha V



BV Brundha Velusamy Syncfusion Team August 23, 2023 07:19 AM UTC

Hi Paul,

 

Thanks for your patience.

 

We have included the fix for the reported issue "System.ArgumentOutOfRangeException is thrown when selecting the item from the SfComboBox" in our latest weekly NuGet release v22.2.10 which is available for download ( https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

 

Regards,

Brundha V.



PP Paul Parkins August 24, 2023 08:07 AM UTC

Thanks. I can confirm that 22.2.10 does indeed appear to address this issue. You may close this ticket.

Regards

Paul



PR Preethi Rajakandham Syncfusion Team August 25, 2023 05:50 AM UTC

Hi Paul,

You're welcome. We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.

Regards,

Preethi R


Loader.
Live Chat Icon For mobile
Up arrow icon