Skip to content

Instantly share code, notes, and snippets.

@codebeaulieu
Created December 9, 2017 22:11
Show Gist options
  • Save codebeaulieu/6bbdcfd61c56d3ae09f11836fb7426b4 to your computer and use it in GitHub Desktop.
Save codebeaulieu/6bbdcfd61c56d3ae09f11836fb7426b4 to your computer and use it in GitHub Desktop.
[MonoDroid] System.Exception: An OnError occurred on an object (usually ObservableAsPropertyHelper) that would break a binding or command. To prevent this, Subscribe to the ThrownExceptions property of your objects ---> Java.Lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
[MonoDroid] at Java.Interop.JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <438784097c4b4b56a7da6ca9301bc3c6>:0
[MonoDroid] at Android.Runtime.JNIEnv.CallIntMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x00000] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.g.cs:192
[MonoDroid] at Android.Content.ISharedPreferencesInvoker.GetInt (System.String key, System.Int32 defValue) [0x0005f] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/src/Mono.Android/obj/Release/android-25/mcw/Android.Content.ISharedPreferences.cs:818
[MonoDroid] at Plugin.Settings.SettingsImplementation.GetValueOrDefaultCore[T] (Android.Content.ISharedPreferences sharedPreferences, System.String key, T defaultValue, System.String fileName) [0x00281] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs:154
[MonoDroid] at Plugin.Settings.SettingsImplementation.GetValueOrDefaultInternal[T] (System.String key, T defaultValue, System.String fileName) [0x0002e] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs:46
[MonoDroid] at Plugin.Settings.SettingsImplementation.GetValueOrDefault (System.String key, System.Int32 defaultValue, System.String fileName) [0x00000] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs:406
[MonoDroid] at Flash.Values.Settings.GetDeckSizeForStack (System.Int32 stackId) [0x00000] in /Users/danbeaulieu/Documents/Development/Flash/Flash/Values/Settings.cs:178
[MonoDroid] at Flash.ViewModels.FlashCardCarousel+<<RegisterObservables>b__56_0>d.MoveNext () [0x005a2] in /Users/danbeaulieu/Documents/Development/Flash/Flash/ViewModels/FlashCardCarousel.cs:250
[MonoDroid] --- End of inner exception stack trace ---
[MonoDroid] at ReactiveUI.RxApp+<RxApp>c__AnonStorey0.<>m__0 () [0x00000] in /Users/paul/code/reactiveui/reactiveui/ReactiveUI/RxApp.cs:60
[MonoDroid] at System.Reactive.Concurrency.Scheduler.Invoke (System.Reactive.Concurrency.IScheduler scheduler, System.Action action) [0x00000] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at ReactiveUI.HandlerScheduler.Schedule[TState] (TState state, System.Func`3[T1,T2,TResult] action) [0x0005c] in /Users/paul/code/reactiveui/reactiveui/ReactiveUI/Android/AndroidUIScheduler.cs:37
[MonoDroid] at System.Reactive.Concurrency.Scheduler.Schedule (System.Reactive.Concurrency.IScheduler scheduler, System.Action action) [0x0001c] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at ReactiveUI.RxApp.<RxApp>m__1 (System.Exception ex) [0x0001c] in /Users/paul/code/reactiveui/reactiveui/ReactiveUI/RxApp.cs:59
[MonoDroid] at System.Reactive.AnonymousSafeObserver`1[T].OnNext (T value) [0x0000a] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ScheduledObserver`1[T].Run (System.Object state, System.Action`1[T] recurse) [0x000f5] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.Scheduler+<>c__DisplayClass50`1[TState].<InvokeRec1>b__4d (TState state1) [0x00013] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState] (System.Reactive.Concurrency.IScheduler scheduler, System.Reactive.Concurrency.Scheduler+Pair`2[T1,T2] pair) [0x00052] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at (wrapper delegate-invoke) System.Func`3[System.Reactive.Concurrency.IScheduler,System.Reactive.Concurrency.Scheduler+Pair`2[System.Object,System.Action`2[System.Object,System.Action`1[System.Object]]],System.IDisposable]:invoke_TResult_T1_T2 (System.Reactive.Concurrency.IScheduler,System.Reactive.Concurrency.Scheduler/Pair`2<object, System.Action`2<object, System.Action`1<object>>>)
[MonoDroid] at System.Reactive.Concurrency.ScheduledItem`2[TAbsolute,TValue].InvokeCore () [0x00000] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.ScheduledItem`1[TAbsolute].Invoke () [0x0000d] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.CurrentThreadScheduler+Trampoline.Run (System.Reactive.Concurrency.SchedulerQueue`1[TAbsolute] queue) [0x00040] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.CurrentThreadScheduler.Schedule[TState] (TState state, System.TimeSpan dueTime, System.Func`3[T1,T2,TResult] action) [0x00046] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.LocalScheduler.Schedule[TState] (TState state, System.Func`3[T1,T2,TResult] action) [0x0000e] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Producer`1[TSource].SubscribeRaw (System.IObserver`1[T] observer, System.Boolean enableSafeguard) [0x0007b] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.ObservableExtensions.SubscribeSafe[T] (System.IObservable`1[T] source, System.IObserver`1[T] observer) [0x00036] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Switch`1+_[TSource].OnNext (System.IObservable`1[T] value) [0x00058] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Select`2+_[TSource,TResult].OnNext (TSource value) [0x00033] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Switch`1+_+Iter[TSource].OnNext (TSource value) [0x00029] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Concat`1+_[TSource].OnNext (TSource value) [0x00000] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Select`2+_[TSource,TResult].OnNext (TSource value) [0x00033] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Select`2+_[TSource,TResult].OnNext (TSource value) [0x00033] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Where`1+_[TSource].OnNext (TSource value) [0x00030] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Subjects.Subject`1[T].OnNext (T value) [0x00000] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.FromEventPattern+Impl`2+<>c__DisplayClass4[TDelegate,TEventArgs].<GetHandler>b__0 (System.Object sender, TEventArgs eventArgs) [0x0000d] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
[MonoDroid] at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x0000a] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:138
[MonoDroid] at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Element.cs:401
[MonoDroid] at EightBot.BigBang.XamForms.Pages.ContentPageBase`1[TViewModel].OnPropertyChanged (System.String propertyName) [0x00000] in <c8f52a0deb04448499c12a842eb08666>:0
[MonoDroid] at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00107] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:594
[MonoDroid] at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:391
[MonoDroid] at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0005f] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:544
[MonoDroid] at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\BindableObject.cs:84
[MonoDroid] at ReactiveUI.XamForms.ReactiveContentPage`1[TViewModel].set_ViewModel (TViewModel value) [0x00000] in /Users/paul/code/reactiveui/reactiveui/ReactiveUI.XamForms/XamForms/ReactiveContentPage.cs:15
[MonoDroid] at Flash.UserInterface.Pages.FlashCardCarousel..ctor (Flash.ViewModels.SmartCardsItem x, Flash.StackType type) [0x0000f] in /Users/danbeaulieu/Documents/Development/Flash/Flash/UserInterface/Pages/FlashCardCarousel.cs:49
[MonoDroid] at Flash.UserInterface.Pages.FlashCardDashboard+<>c.<BindControls>b__19_21 (Flash.ViewModels.SmartCardsItem x) [0x00000] in /Users/danbeaulieu/Documents/Development/Flash/Flash/UserInterface/Pages/FlashCardDashboard.cs:525
[MonoDroid] at EightBot.BigBang.XamForms.Extensions.NavigationObservableExtensions+<>c__DisplayClass4_0`2[TParameter,TPage].<NavigateToPage>b__1 (TParameter x) [0x00000] in <c8f52a0deb04448499c12a842eb08666>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Select`2+_[TSource,TResult].OnNext (TSource value) [0x00008] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] --- End of stack trace from previous location where exception was thrown ---
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <657aa8fea4454dc898a9e5f379c58734>:0
[MonoDroid] at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow (System.Exception exception) [0x00006] in <50e73325239843abb1c421bf5dddc7a9>:0
[MonoDroid] at System.Reactive.ExceptionHelpers.Throw (System.Exception exception) [0x0000a] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Stubs.<.cctor>b__1 (System.Exception ex) [0x00000] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.AnonymousSafeObserver`1[T].OnError (System.Exception error) [0x0000e] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ScheduledObserver`1[T].Run (System.Object state, System.Action`1[T] recurse) [0x00031] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.Scheduler+<>c__DisplayClass50`1[TState].<InvokeRec1>b__4d (TState state1) [0x00013] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState] (System.Reactive.Concurrency.IScheduler scheduler, System.Reactive.Concurrency.Scheduler+Pair`2[T1,T2] pair) [0x00052] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at (wrapper delegate-invoke) System.Func`3[System.Reactive.Concurrency.IScheduler,System.Reactive.Concurrency.Scheduler+Pair`2[System.Object,System.Action`2[System.Object,System.Action`1[System.Object]]],System.IDisposable]:invoke_TResult_T1_T2 (System.Reactive.Concurrency.IScheduler,System.Reactive.Concurrency.Scheduler/Pair`2<object, System.Action`2<object, System.Action`1<object>>>)
[MonoDroid] at ReactiveUI.HandlerScheduler.Schedule[TState] (TState state, System.Func`3[T1,T2,TResult] action) [0x0005c] in /Users/paul/code/reactiveui/reactiveui/ReactiveUI/Android/AndroidUIScheduler.cs:37
[MonoDroid] at System.Reactive.Concurrency.Scheduler.Schedule[TState] (System.Reactive.Concurrency.IScheduler scheduler, TState state, System.Action`2[T1,T2] action) [0x00042] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ScheduledObserver`1[T].EnsureActiveSlow () [0x00038] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ScheduledObserver`1[T].EnsureActive (System.Int32 n) [0x00020] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ScheduledObserver`1[T].EnsureActive () [0x00000] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ObserveOnObserver`1[T].OnErrorCore (System.Exception exception) [0x00007] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ObserverBase`1[T].OnError (System.Exception error) [0x0001c] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Select`2+_[TSource,TResult].OnNext (TSource value) [0x0001d] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.Linq.ObservableImpl.Where`1+_[TSource].OnNext (TSource value) [0x00030] in <d0067ed104ac455987b6feb85f80156b>:0
[MonoDroid] at System.Reactive.AutoDetachObserver`1[T].OnNextCore (T value) [0x00002] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ObserverBase`1[T].OnNext (T value) [0x00008] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.ScheduledObserver`1[T].Run (System.Object state, System.Action`1[T] recurse) [0x000f5] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.Scheduler+<>c__DisplayClass50`1[TState].<InvokeRec1>b__4d (TState state1) [0x00013] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState] (System.Reactive.Concurrency.IScheduler scheduler, System.Reactive.Concurrency.Scheduler+Pair`2[T1,T2] pair) [0x00052] in <ab76b1b1678341d69f8fc2c1f68d0bf5>:0
[MonoDroid] at (wrapper delegate-invoke) System.Func`3[System.Reactive.Concurrency.IScheduler,System.Reactive.Concurrency.Scheduler+Pair`2[System.Object,System.Action`2[System.Object,System.Action`1[System.Object]]],System.IDisposable]:invoke_TResult_T1_T2 (System.Reactive.Concurrency.IScheduler,System.Reactive.Concurrency.Scheduler/Pair`2<object, System.Action`2<object, System.Action`1<object>>>)
[MonoDroid] at ReactiveUI.HandlerScheduler+<Schedule>c__AnonStorey0`1[TState].<>m__0 () [0x0000c] in /Users/paul/code/reactiveui/reactiveui/ReactiveUI/Android/AndroidUIScheduler.cs:42
[MonoDroid] at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/src/Mono.Android/Java.Lang/Thread.cs:36
[MonoDroid] at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in /Users/builder/data/lanes/5749/9cfa7836/source/xamarin-android/src/Mono.Android/obj/Release/android-25/mcw/Java.Lang.IRunnable.cs:81
[MonoDroid] at (wrapper dynamic-method) System.Object:7e1523be-6235-4b0f-afd0-0f9510adad32 (intptr,intptr)
[art] JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_throw'.
[Mono] Probing 'java_interop_jnienv_throw'.
[Mono] Found as 'java_interop_jnienv_throw'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment