Crash with SfNumericTextBox xamarin forms on Android 7.0 on Samsung Galaxy S7 Edge

Hi,
I am using:
Visual studio 2017 15.6.6
Vysor to debug on target
Xamarin forms 2.5.0
Syncfusion 16.1.0.37
I am having problems with SfNumericTextBox, when the form contains SfNumericTextBox the app crashes but only on this device:
Samsung Galaxy S7 Edge Android 7.0, other Syncfusion components like sfDataGrid Autocomplete works well
The same app runs ok on UWP, Android Emulator and on Android Samsung SM-9318H device with android version 4.4.4
What can be the cause for that ?
Thanks

5 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team May 11, 2018 10:32 AM UTC

Hi Yossef,

Thanks for contacting Syncfusion Support.

We have checked the reported issue with SfNumericTextBox Control. We could not able to reproduce the issue in Samsung S8 Device. Since we could not reproduce the issue, please provide the Stacktrace for the issue which will be helpful for us to analyse further and provide an appropriate solution.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.



YZ Yossef Zaig May 12, 2018 10:43 PM UTC

Hi,

Attached logcat error log for the crash


05-13 01:11:31.244 17397 17397 E AndroidRuntime: FATAL EXCEPTION: main
05-13 01:11:31.244 17397 17397 E AndroidRuntime: Process: com.companyname.App.Mobile, PID: 17397
05-13 01:11:31.244 17397 17397 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.IndexOutOfRangeException: Index was outside the bounds of the array.
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Syncfusion.SfNumericTextBox.XForms.Droid.SfNumericTextBoxMapping.OnNumericTextBoxPropertiesChanged (System.String propertyName, Syncfusion.SfNumericTextBox.XForms.SfNumericTextBox formsNumericTextBox, Com.Syncfusion.Numerictextbox.SfNumericTextBox nativeNumericTextBox) [0x00212] in <83ab36121d764eaf8e3a05d7184a32f3>:0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Syncfusion.SfNumericTextBox.XForms.Droid.SfNumericTextBoxRenderer.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs`1[TElement] e) [0x00055] in <83ab36121d764eaf8e3a05d7184a32f3>:0

05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000b9] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x00024] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x00055] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x0010d] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in :0

.
.
.
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000d6] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Support.V4.App.FragmentManager fragmentManager, Android.Content.Context context) [0x00036] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnCreateView (Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState) [0x0001b] in :0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at Android.Support.V4.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_inflater, System.IntPtr native_container, System.IntPtr native_savedInstanceState) [0x00020] in <1e89c43d3c7d48b5ba69bfc0b1bdf114>:0
05-13 01:11:31.244 17397 17397 E AndroidRuntime:   at (wrapper dynamic-method) System.Object.f9ab95fb-2355-48c4-bba5-5380bbab60fd(intptr,intptr,intptr,intptr,intptr)
05-13 01:11:31.244 17397 17397 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---

Hope this helps.

Thanks



RB Rabhia Beham Kathar Mideenar Syncfusion Team May 14, 2018 10:16 AM UTC

Hi Yossef,

Sorry for the inconvenience.

We have checked the Stacktrace provided and in the provided stacktrace we could not able to find where the exception is raised. Please provide us the sample or the code snippet you have used with which you could reproduce the issue which will be helpful for us to analyse further and provide an appropriate solution.

Regards,
Rabhia Beham K.



YZ Yossef Zaig May 17, 2018 04:07 PM UTC

Hi,

Attached sample project, that crash with the SfNumericTextBox

again this happens on the Samsung Galaxy S7 Edge
Its working on other Samsung device Samsung SM-9318H


Thanks


Attachment: TestSfNumeric_9a850c4e.zip


RB Rabhia Beham Kathar Mideenar Syncfusion Team May 18, 2018 11:42 AM UTC

Hi Yossef,

Since we could not reproduce the reported the crash on SfNumericTextBox. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/ 

Please let us know if you have any concern.

Regards,
Rabhia Beham K.
 


Loader.
Up arrow icon