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

Setting EndValue for gauge scale.

Hi,

I am setting the Start and End values based on the gauge value,  on property changed event. Some times while setting End values i am getting Monotouch Exception.

Can Anyone help?
 Here is the exception 

Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
Native stack trace:
0   CoreFoundation                      0x304f5f9b <redacted> + 154
1   libobjc.A.dylib                     0x3aca6ccf objc_exception_throw + 38
2   CoreFoundation                      0x3042c7cb <redacted> + 230
3   StandardFDI                         0x02693321 -[SFCircularGauge rotateNeedle1:] + 360
4   StandardFDI                         0x0269710b -[SFCircularGauge setValue1:] + 986
5   StandardFDI                         0x0269a4a9 -[SFCircularScale setEndValue:] + 452
6   StandardFDI                         0x0251fed4 wrapper_managed_to_native_ApiDefinition_Messaging_void_objc_msgSend_nfloat_intptr_intptr_System_nfloat + 260
7   StandardFDI                         0x024fdc20 Syncfusion_SfGauge_iOS_SFCircularScale_set_EndValue_System_nfloat + 288
8   StandardFDI                         0x024d3980 Syncfusion_SfGauge_XForms_iOS_ScaleMapping_OnScalePropertiesChanged_string_Syncfusion_SfGauge_XForms_Scale_Syncfusion_SfGauge_iOS_SFCircularScale + 6232
9   StandardFDI                         0x024d7978 Syncfusion_SfGauge_XForms_iOS_SfCircularGaugeMapping_FormScale_PropertyChanged_object_System_ComponentModel_PropertyChangedEventArgs + 636
10  StandardFDI                         0x01795a88 Xamarin_Forms_BindableObject_OnPropertyChanged_string + 264
11  StandardFDI                         0x017947a8 Xamarin_Forms_BindableObject_SetValueActual_Xamarin_Forms_BindableProperty_Xamarin_Forms_BindableObject_BindablePropertyContext_object_bool_Xamarin_Forms_BindableObject_SetValueFlags_bool + 2056
12  StandardFDI                         0x01793d10 Xamarin_Forms_BindableObject_SetValueCore_Xamarin_Forms_BindableProperty_object_Xamarin_Forms_BindableObject_SetValueFlags_Xamarin_Forms_BindableObject_SetValuePrivateFlags + 4164
13  StandardFDI                         0x0178fdb4 Xamarin_Forms_BindableObject_SetValue_Xamarin_Forms_BindableProperty_object_bool_bool + 1108
14  StandardFDI                         0x0178f6c4 Xamarin_Forms_BindableObject_SetValue_Xamarin_Forms_BindableProperty_object + 148
15  StandardFDI                         0x01bfa124 Syncfusion_SfGauge_XForms_Scale_set_EndValue_double + 192
16  StandardFDI                         0x0158cdd8 DPI_StandardControls_GaugeControl_OnPropertyChanged_object_System_ComponentModel_PropertyChangedEventArgs + 2204
17  StandardFDI                         0x0041c638 wrapper_delegate_invoke__Module_invoke_void_object_PropertyChangedEventArgs_object_System_ComponentModel_PropertyChangedEventArgs + 216
18  StandardFDI                         0x01795a88 Xamarin_Forms_BindableObject_OnPropertyChanged_string + 264
19  StandardFDI                         0x017947a8 Xamarin_Forms_BindableObject_SetValueActual_Xamarin_Forms_BindableProperty_Xamarin_Forms_BindableObject_BindablePropertyContext_object_bool_Xamarin_Forms_BindableObject_SetValueFlags_bool + 2056
20  StandardFDI                         0x01793d10 Xamarin_Forms_BindableObject_SetValueCore_Xamarin_Forms_BindableProperty_object_Xamarin_Forms_BindableObject_SetValueFlags_Xamarin_Forms_BindableObject_SetValuePrivateFlags + 4164
21  StandardFDI                         0x01792c84 Xamarin_Forms_BindableObject_SetValueCore_Xamarin_Forms_BindableProperty_object_Xamarin_Forms_BindableObject_SetValueFlags + 148
22  StandardFDI                         0x017ceaa8 Xamarin_Forms_BindingExpression_ApplyCore_object_Xamarin_Forms_BindableObject_Xamarin_Forms_BindableProperty_bool + 3988
23  StandardFDI                         0x017cce94 Xamarin_Forms_BindingExpression_Apply_bool + 468
24  StandardFDI                         0x017d2ed0 Xamarin_Forms_BindingExpression_BindingExpressionPart__PropertyChangedb__c + 128
25  StandardFDI                         0x00f283a4 Foundation_NSAsyncActionDispatcher_Apply + 48
26  StandardFDI                         0x006d0380 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
27  StandardFDI                         0x02753a2f mono_jit_runtime_invoke + 1130
28  StandardFDI                         0x02795f15 mono_runtime_invoke + 88
29  StandardFDI                         0x026415b9 _ZL30native_to_managed_trampoline_3P11objc_objectP13objc_selectorPP11_MonoMethodPKcS7_ + 128
30  StandardFDI                         0x02641cc9 -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 52
31  Foundation                          0x30edfc73 <redacted> + 386
32  CoreFoundation                      0x304c120b <redacted> + 14
33  CoreFoundation                      0x304c06db <redacted> + 206
34  CoreFoundation                      0x304beecf <redacted> + 622
35  CoreFoundation                      0x30429ebf CFRunLoopRunSpecific + 522
36  CoreFoundation                      0x30429ca3 CFRunLoopRunInMode + 106
37  GraphicsServices                    0x3532f663 GSEventRunModal + 138
38  UIKit                               0x32d7614d UIApplicationMain + 1136
39  StandardFDI                         0x00f7ffec wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
40  StandardFDI                         0x00eeb33c UIKit_UIApplication_Main_string___intptr_intptr + 52
41  StandardFDI                         0x00eeb2fc UIKit_UIApplication_Main_string___string_string + 204
42  StandardFDI                         0x000a214c StandardFDI_Application_Main_string__ + 188
43  StandardFDI                         0x006d0380 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
44  StandardFDI                         0x02753a2f mono_jit_runtime_invoke + 1130
45  StandardFDI                         0x02795f15 mono_runtime_invoke + 88
46  StandardFDI                         0x02799241 mono_runtime_exec_main + 284
47  StandardFDI                         0x02805d18 xamarin_main + 2072
48  StandardFDI                         0x02659519 main + 112
49  libdyld.dylib                       0x3b1b3ab7 <redacted> + 2

  at ObjCRuntime.Runtime.ThrowNSException (IntPtr ns_exception) [0x00000] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/src/ObjCRuntime/Runtime.cs:234
  at ObjCRuntime.Runtime.throw_ns_exception (IntPtr exc) <0xf09964 + 0x0001b> in <filename unknown>:0
  at at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
  at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/src/UIKit/UIApplication.cs:77
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0001c] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/src/UIKit/UIApplication.cs:60
  at StandardFDI.Application.Main (System.String[] args) [0x00008] in /Users/krishnankm/Xamarin/iOS/StandardFDI/Main.cs:17


Thanks & Regards
Shashidhar K.

3 Replies

SG Swathi Gopal Syncfusion Team April 13, 2016 10:18 AM UTC

Hi Shashidhar,


Thanks for your interest in Syncfusion products.


We are analyzing on the mentioned issue. We will update you the details in 2 business days (15th April, 2016). We appreciate your patience until then. Also, could you send us the issue reproducing sample or code snippet (along with Xamarin version details)? It will be helpful for us to further analyze the issue and provide you possible solution.


Regards,
Swathi G



SH Shashidhar April 13, 2016 02:06 PM UTC

Hi,

Thanks for reply,

Unfortunately I am not able to reproduce the crash in sample app, but from my application its throwing exception when setting end value and I cant share those code.

I tried to add try catch it works fine in simulator but when I run the application in device app will crash.

I will try to reproduce the crash in sample application.


Regards,
Shashidhar K.




SG Swathi Gopal Syncfusion Team April 14, 2016 07:11 AM UTC


Hi Shashidhar,


We have created a support incident under your account to track the status of this issue. 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 query.

Regards,

Swathi G


Loader.
Live Chat Icon For mobile
Up arrow icon