xamarin app crashes because of xamforms.controls.calendar - xamarin.forms

I just updated my MAC system and all packages in my Xamarin Project, now the App always crashes due to the following exception:
Object reference not set to an instance of an object
at XamForms.Controls.iOS.CalendarButtonRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x0004a] in :0
at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:229
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:350
at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property, System.Boolean fromStyle, System.Boolean checkAccess) [0x000c6] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:96
at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:48
at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement].Dispose (System.Boolean disposing) [0x0007d] in <db18f72e3204406988680543da513ace>:0
at Xamarin.Forms.Platform.iOS.ViewRenderer2[TView,TNativeView].Dispose (System.Boolean disposing) [0x0005c] in :0
at Xamarin.Forms.Platform.iOS.ButtonRenderer.Dispose (System.Boolean disposing) [0x00064] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\ButtonRenderer.cs:66
at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/Foundation/NSObject2.cs:147
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:71
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:39
at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement].Dispose (System.Boolean disposing) [0x00058] in <db18f72e3204406988680543da513ace>:0
at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/Foundation/NSObject2.cs:147
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:71
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:39
at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement].Dispose (System.Boolean disposing) [0x00058] in :0
at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/Foundation/NSObject2.cs:147
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildRemoved (Xamarin.Forms.VisualElement view) [0x0003e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:124
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildRemoved (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:161
at Xamarin.Forms.Element.OnChildRemoved (Xamarin.Forms.Element child) [0x00007] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:334
at Xamarin.Forms.VisualElement.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:750
at Xamarin.Forms.TemplatedView.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\TemplatedView.cs:92
at Xamarin.Forms.Layout.OnInternalRemoved (Xamarin.Forms.View view) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:473
at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0002b] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:436
at System.Collections.ObjectModel.ObservableCollection1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in <429bba1022b24f41b20fdc67c7554c2d>:0
at System.Collections.ObjectModel.ObservableCollection1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00009] in <429bba1022b24f41b20fdc67c7554c2d>:0
at System.Collections.ObjectModel.ObservableCollection1[T].RemoveItem (System.Int32 index) [0x00021] in <429bba1022b24f41b20fdc67c7554c2d>:0
at System.Collections.ObjectModel.Collection1[T].RemoveAt (System.Int32 index) [0x00027] in :0
at Xamarin.Forms.TemplateUtilities.OnContentChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00018] in D:\a\1\s\Xamarin.Forms.Core\TemplateUtilities.cs:63
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) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:463
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:397
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:334
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:311
at Xamarin.Forms.ContentView.set_Content (Xamarin.Forms.View value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\ContentView.cs:11
at XamForms.Controls.Calendar+<>c__DisplayClass89_0.b__0 () [0x00027] in <78f786ab622940c1b06f4cfd4c30dce1>:0
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/Foundation/NSAction.cs:152
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at myproject.iOS.Application.Main (System.String[] args) [0x00001] in /Users/lin/Projects/myProject/iOS/Main.cs:12

Related

DryIoC with Prism crashes on HUAWEI only

I am facing the following error on my Xamarin.Forms app.
Interpreter.TryInterpretAndUnwrapContainerException (DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, System.Boolean useFec, System.Object& result)
System.NullReferenceException: Object reference not set to an instance of an object
Interpreter.TryInterpretAndUnwrapContainerException (DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, System.Boolean useFec, System.Object& result)
Container.ResolveAndCacheKeyed (System.Int32 serviceTypeHash, System.Type serviceType, System.Object serviceKey, DryIoc.IfUnresolved ifUnresolved, System.Object scopeName, System.Type requiredServiceType, DryIoc.Request preResolveParent, System.Object[] args)
IResolver.Resolve (System.Type serviceType, System.Object serviceKey, DryIoc.IfUnresolved ifUnresolved, System.Type requiredServiceType, DryIoc.Request preResolveParent, System.Object[] args)
Resolver.Resolve (DryIoc.IResolver resolver, System.Type serviceType, System.Object[] args, DryIoc.IfUnresolved ifUnresolved, System.Type requiredServiceType, System.Object serviceKey)
DryIocContainerExtension.Resolve (System.Type type, System.ValueTuple`2[System.Type,System.Object][] parameters)
DryIocContainerExtension.Resolve (System.Type type, System.ValueTuple`2[System.Type,System.Object][] parameters)
PrismApplicationBase.<ConfigureViewModelLocator>b__19_0 (System.Object view, System.Type type)
ViewModelLocationProvider.AutoWireViewModelChanged (System.Object view, System.Action`2[T1,T2] setDataContextCallback)
ViewModelLocator.OnAutowireViewModelChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue)
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)
ViewModelLocator.SetAutowireViewModel (Xamarin.Forms.BindableObject bindable, System.Nullable`1[T] value)
PageUtilities.SetAutowireViewModel (Xamarin.Forms.VisualElement element)
PageNavigationService.CreatePageFromSegment (System.String segment)
PageNavigationService.ProcessNavigationForRootPage (System.String nextSegment, System.Collections.Generic.Queue`1[T] segments, Prism.Navigation.INavigationParameters parameters, System.Nullable`1[T] useModalNavigation, System.Boolean animated)
PageNavigationService.ProcessNavigation (Xamarin.Forms.Page currentPage, System.Collections.Generic.Queue`1[T] segments, Prism.Navigation.INavigationParameters parameters, System.Nullable`1[T] useModalNavigation, System.Boolean animated)
App.OnInitialized ()
AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state)
What is interesting, based on AppCenter crashes, it only happens on Huawei devices with Android 9 or 10. I am wondering if anyone has any clue/tip what is going wrong?
System info
Xamarin.Forms 5.0.0.2125
Prism 8.1.97
Prism.DryIoc.Forms 8.1.97
The NRE does not provide a lot of info :-(
Also, this Prism version uses the old DryIoc version, which complicates the investigation.
As of Today, in principle, you may fork the Prism.DryIoc.Forms, update it to the latest DryIoc v5.0.2 (but instead of DryIoc.dll package use the DryIoc source package). Then reference the Prism directly in your project and put the breakpoint in TryInterpretAndUnwrapContainerException. Check the comment under this answer https://stackoverflow.com/a/72258242/2492669.
I will be interested to find out the real cause of this issue as well.

RaisePropertyChanged(nameof(IsSendingEnabled)) Cannot access a disposed object

enter image description hereThere's signature popup first time with none enter(signature stoke) close the popup by clicking on cancel button and once more reopening the popup and providing a input(stroke) once after stoke is completed variable is set to true
On onpropertychange throwing below excetion
System.ObjectDisposedException: 'Cannot access a disposed object.
Object name: 'AndroidX.AppCompat.Widget.AppCompatButton'.'
enter image description hereenter image description here
Stack Trace
at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in :0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in :0
at Android.Views.View.get_Enabled () [0x00000] in /Users/builder/azdo/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Views.View.cs:6262
at XF.Material.Droid.Renderers.MaterialDrawableHelper.CreateStateListAnimator () [0x00000] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/Platforms/Android/Renderers/MaterialDrawableHelper.cs:291
at XF.Material.Droid.Renderers.MaterialDrawableHelper.UpdateElevation () [0x00008] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/Platforms/Android/Renderers/MaterialDrawableHelper.cs:286
at XF.Material.Droid.Renderers.MaterialDrawableHelper.BindableButton_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00029] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/Platforms/Android/Renderers/MaterialDrawableHelper.cs:110
at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:266
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:362
at XF.Material.Forms.UI.MaterialButton.OnPropertyChanged (System.String propertyName) [0x0001a] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/UI/MaterialButton.cs:108
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) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00226] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:160
at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
at Xamarin.Forms.BindingExpression+BindingExpressionPart.b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:762
at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000cb] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:773
at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:666
at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at XamarinUniversity.Infrastructure.SimpleViewModel.RaisePropertyChanged (System.String propertyName) [0x00012] in :0
at ICR_MobileApp.ViewModels.SignatureSectionViewModel.OnStrokeCompleted () [0x0001c] in C:\Users\supriya.mecharla\source\repos\ICR_MobileApp\ICR_MobileApp\ICR_MobileApp\ViewModels\SectionViewModels\SignatureSectionViewModel.cs:262
at ICR_MobileApp.ViewModels.SignatureSectionViewModel.<.ctor>b__50_6 () [0x00000] in C:\Users\supriya.mecharla\source\repos\ICR_MobileApp\ICR_MobileApp\ICR_MobileApp\ViewModels\SectionViewModels\SignatureSectionViewModel.cs:168
at Xamarin.Forms.Command+<>c__DisplayClass4_0.<.ctor>b__0 (System.Object o) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Command.cs:74
at Xamarin.Forms.Command.Execute (System.Object parameter) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Command.cs:112
at SignaturePad.Forms.SignaturePadCanvasView.OnStrokeCompleted () [0x00039] in :0
at SignaturePad.Forms.SignaturePadCanvasRenderer.OnStrokeCompleted (System.Object sender, System.EventArgs e) [0x0000a] in :0
at Xamarin.Controls.SignaturePadCanvasView.OnStrokeCompleted (System.Object sender, System.EventArgs e) [0x0000a] in <0c0873655a504a1796935fa2cfa62e06>:0
at Xamarin.Controls.InkPresenter.OnStrokeCompleted () [0x0000a] in <0c0873655a504a1796935fa2cfa62e06>:0
at Xamarin.Controls.InkPresenter.TouchesEnded (Android.Views.MotionEvent e) [0x0003c] in <0c0873655a504a1796935fa2cfa62e06>:0
at Xamarin.Controls.InkPresenter.OnTouchEvent (Android.Views.MotionEvent e) [0x0002e] in <0c0873655a504a1796935fa2cfa62e06>:0
at Android.Views.View.n_OnTouchEvent_Landroid_view_MotionEvent (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x00010] in /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Views.View.cs:18286
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.35(intptr,intptr,intptr)

System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Android.Graphics.Drawables.ScaleDrawable'

While using sfprogressbar we are getting an Appcenter Error.
ProgressBarBase.ApplyDrawableColor (Android.Graphics.Drawables.Drawable drawable, Android.Graphics.Color color, Android.Graphics.PorterDuff+Mode mode)
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Android.Graphics.Drawables.ScaleDrawable .
Why this error occurred and how to resolve this error.
Java.Interop
JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self)
Java.Interop
JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
Android.Graphics.Drawables
Drawable.SetTint (System.Int32 tintColor)
Syncfusion.Android.ProgressBar
ProgressBarBase.ApplyDrawableColor (Android.Graphics.Drawables.Drawable drawable, Android.Graphics.Color color, Android.Graphics.PorterDuff+Mode mode)
Syncfusion.Android.ProgressBar
SfLinearProgressBar.SetProgressColor ()
Syncfusion.Android.ProgressBar
ProgressBarBase.set_ProgressColor (Android.Graphics.Color value)
Syncfusion.XForms.Android.ProgressBar
ProgressBarUtility.OnLinearBarPropertyChanged (Syncfusion.Android.ProgressBar.SfLinearProgressBar native, Syncfusion.XForms.ProgressBar.SfLinearProgressBar control, System.String propertyName)
Syncfusion.Android.ProgressBar
SfLinearProgressBar.OnLinearProgressBarPropertiesChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)
(wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
Xamarin.Forms
BindableObject.OnPropertyChanged (System.String propertyName)
Xamarin.Forms
Element.OnPropertyChanged (System.String propertyName)
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)
Xamarin.Forms
BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes)
Xamarin.Forms
BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget)
Xamarin.Forms
BindingExpression.Apply (System.Boolean fromTarget)
Xamarin.Forms
BindingExpression+BindingExpressionPart.<PropertyChanged>b__49_0 ()
Xamarin.Forms
BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args)
Xamarin.Forms
BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)
(wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)

How to fix SIGABRT crash in Xamarin Forms

StackTrace:
NavigationRenderer+ParentingViewController.Dispose (System.Boolean disposing)
NSObject.Dispose ()
NavigationRenderer.Dispose (System.Boolean disposing)
NSObject.Dispose ()
DisposeHelpers.DisposeModalAndChildRenderers (Xamarin.Forms.Element view)
IDisposable.Dispose ()
FormsApplicationDelegate.UpdateMainPage ()
FormsApplicationDelegate.ApplicationOnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args)
BindableObject.OnPropertyChanged (System.String propertyName)
Element.OnPropertyChanged (System.String propertyName)
Application.set_MainPage (Xamarin.Forms.Page value)
PageModelCoreMethods.SwitchOutRootNavigation (System.String navigationServiceName)
BasePageModel.<NavigateToLoginPage>b__74_0 () // I think the problem is in this method
NSAsyncActionDispatcher.Apply ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)
This is the stack trace for a SIGABRT crash I'm getting in my iOS app using Xamarin.Forms 4.4.
I think the issue is coming from this method:
async protected virtual Task<bool> NavigateToLoginPage()
{
await LoginProvider.Clear();
Platform.BeginInvokeOnMainThread( () =>
{
CoreMethods.SwitchOutRootNavigation(CoreApp.LoginNavigationStack);
});
return true;
}
because it's the last method that was called before the crashing II'm assuming but I'm not sure how to fix it. I've looked at some solutions online like:
MonoTouch SIGSEGV crash using navigationcontroller and searchdisplaycontroller and https://forums.xamarin.com/discussion/6546/finding-the-cause-of-sigsegv which I think are related, but they don't match my case exactly..
Does anybody know what to do about this?
Thanks!

Problem while enabling Migration ASP.NET MVC5 on MAC

I'm trying to enable migration on my ASP.net project on Rider.
when I click on Enable Migration the Migration folder is created the configuration.cs file is also created but i get this message:
11:42:16.760 |I| EntityFrameworkRunnerProgram | :1 | Using EntityFramework 6.3.0
11:42:17.674 |E| ScaffoldInitialMigrationRunner| :1 | Inner exception stack trace: System.ArgumentException: Invalid value for key 'attachdbfilename'. at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00408] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup (System.Data.Common.DbConnectionPoolKey key, System.Data.ProviderBase.DbConnectionPoolGroupOptions poolOptions, System.Data.Common.DbConnectionOptions& userConnectionOptions) [0x0003e] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher+<>c.<SetConnectionString>b__8_0 (System.Data.Common.DbConnection t, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] c) [0x00007] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1[TInterceptor].Dispatch[TTarget,TInterceptionContext] (TTarget target, System.Action`2[T1,T2] operation, TInterceptionContext interceptionContext, System.Action`3[T1,T2,T3] executing, System.Action`3[T1,T2,T3] executed) [0x0000f] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] interceptionContext) [0x00044] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.SqlConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00096] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.LocalDbConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00077] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Internal.LazyInternalConnection.Initialize () [0x000bd] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Internal.LazyInternalConnection.get_Connection () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Internal.LazyInternalContext.get_Connection () [0x00024] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Data.Entity.Infrastructure.DbProviderInfo modelProviderInfo, System.Data.Entity.Internal.AppConfig config, System.Data.Entity.Infrastructure.DbConnectionInfo connectionInfo, System.Func`1[TResult] resolver) [0x000c8] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Func`1[TResult] resolver) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration, System.Data.Entity.DbContext usersContext, System.Data.Entity.Internal.DatabaseExistenceState existenceState, System.Boolean calledByCreateDatabase) [0x0006e] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.Design.MigrationScaffolder..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration migrationsConfiguration) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.Design.ToolingFacade+ScaffoldRunner.RunCore () [0x00006] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.Design.ToolingFacade+BaseRunner.Run () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
--- EXCEPTION #1/1 [LoggerException]
Message = “
Inner exception stack trace: System.ArgumentException: Invalid value for key 'attachdbfilename'.
at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00408] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup (System.Data.Common.DbConnectionPoolKey key, System.Data.ProviderBase.DbConnectionPoolGroupOptions poolOptions, System.Data.Common.DbConnectionOptions& userConnectionOptions) [0x0003e] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher+<>c.<SetConnectionString>b__8_0 (System.Data.Common.DbConnection t, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] c) [0x00007] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1[TInterceptor].Dispatch[TTarget,TInterceptionContext] (TTarget target, System.Action`2[T1,T2] operation, TInterceptionContext interceptionContext, System.Action`3[T1,T2,T3] executing, System.Action`3[T1,T2,T3] executed) [0x0000f] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] interceptionContext) [0x00044] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.SqlConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00096] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.LocalDbConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00077] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Internal.LazyInternalConnection.Initialize () [0x000bd] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Internal.LazyInternalConnection.get_Connection () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Internal.LazyInternalContext.get_Connection () [0x00024] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Data.Entity.Infrastructure.DbProviderInfo modelProviderInfo, System.Data.Entity.Internal.AppConfig config, System.Data.Entity.Infrastructure.DbConnectionInfo connectionInfo, System.Func`1[TResult] resolver) [0x000c8] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Func`1[TResult] resolver) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration, System.Data.Entity.DbContext usersContext, System.Data.Entity.Internal.DatabaseExistenceState existenceState, System.Boolean calledByCreateDatabase) [0x0006e] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.MigrationScaffolder..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration migrationsConfiguration) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.ToolingFacade+ScaffoldRunner.RunCore () [0x00006] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.ToolingFacade+BaseRunner.Run () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogMessage (JetBrains.Util.ILogger this, JetBrains.Diagnostics.LoggingLevel level, System.String message) [0x00000] in <37ed49b15eea41448b14c541f9d5975f>:0
at JetBrains.Util.ILoggerEx.Error (JetBrains.Util.ILogger this, System.String message) [0x00000] in <37ed49b15eea41448b14c541f9d5975f>:0
at JetBrains.EntityFramework.Runner620.CommandRunnerBase`2[TIn,TOut].JetBrains.EntityFramework.Runner620.ICommandRunner<TIn>.Run (TIn command) [0x00000] in <f05235a6a61b4a789b03405b09b6d17a>:0
at System.Reflection.RuntimeMethodInfo.InternalInvoke (System.Reflection.RuntimeMethodInfo , System.Object , System.Object[] , System.Exception& ) [0x00000] in <b814b509d4ad406fb40c6c93e38929e7>:0
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <b814b509d4ad406fb40c6c93e38929e7>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <b814b509d4ad406fb40c6c93e38929e7>:0
at JetBrains.EntityFramework.Runner620.EntityFrameworkRunnerProgram.Main (System.String[] args) [0x00000] in <f05235a6a61b4a789b03405b09b6d17a>:0
”
11:42:17.753 |E| EntityFrameworkRunnerProgram | :1 | Exception has been thrown by the target of an invocation. Invalid value for key 'attachdbfilename'.
--- EXCEPTION #1/3 [ToolingException]
Message = “Invalid value for key 'attachdbfilename'.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.Data.Entity.Migrations.Design.ToolingException
HResult = COR_E_EXCEPTION=80131500
Source = EntityFramework
SafeSerializationManager.m_serializedStates.#0 = System.Data.Entity.Migrations.Design.ToolingException+ToolingExceptionState
CLR_SafeSerializationManager_RealType.Data = System.Data.Entity.Migrations.Design.ToolingException
CLR_SafeSerializationManager_RealType.UnityType = 4
CLR_SafeSerializationManager_RealType.AssemblyName = “EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
StackTraceString = “
at System.Data.Entity.Migrations.Design.ToolingFacade.Run (System.Data.Entity.Migrations.Design.ToolingFacade+BaseRunner runner) [0x00097] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.ToolingFacade.ScaffoldInitialCreate (System.String language, System.String rootNamespace) [0x0001b] in <222b71ed74914d6ebbdbc2b580446023>:0
at JetBrains.EntityFramework.Runner620.ScaffoldInitialMigrationRunner.DoRun (JetBrains.EntityFramework.Features.Commands.EnableMigrationsCommand command) [0x00011] in <f05235a6a61b4a789b03405b09b6d17a>:0
at JetBrains.EntityFramework.Runner620.CommandRunnerBase`2[TIn,TOut].JetBrains.EntityFramework.Runner620.ICommandRunner<TIn>.Run (TIn command) [0x001af] in <f05235a6a61b4a789b03405b09b6d17a>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <b814b509d4ad406fb40c6c93e38929e7>:0
”
I didn't find any solution to get over with this error
if details are needed i'll try to get them for you

Resources