System.objectdisposed exception occur when I press back button in xamarin forms - xamarin

I am getting 'System.objectdisposed exception' when I navigate from one page to another page and with out loading that navigated page when I press back button getting 'System.objectdisposed exception' exception. I am getting this exception when I run xamarin android project, In xamarin ios is working fine. I didn't find what the root cause of this exception. Is any one have any idea about this, Please suggest.

Related

Rg.Plugins.Popup - app crashes on ios when open popup repeatedly

Hello I am developing a Xamarin Forms app, I have use Rg.Plugins.Popup plugins. this plugin working fine on android but app crashes on ios as i repeatedly open and close popup...
I was having same problem in my project in my case it was due to when i open multiple times at some point popup comes and suddenly goes away and when i next time open the pop up and close it app get crashed after debugging the issue i found that when suddenly the popup appeared and closed its instance was yet present in the popup stack and when i click on close popup it tried to close popup which was on the stack but never exists as it was auto closed
after research at that time i found that it was a bug of Rg.popup and got it resolved by upgrading my nuget to latest
Rg.Plugins.Popup 1.2.0223
if you are facing same issue in this case also just upgrade to mentioned version there are much chances of getting your issue resolved

Xcode Error: Could not instantiate class named _UIScrollViewLayoutGuide

I am running my Xcode project (Xcode 11) on an iPhone 4S running iOS 9 and I am getting the following error:
Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UIScrollViewLayoutGuide'
I have tried looking up solutions to this error but could not find any. My code has installed all constraints and am suspecting it is because I am using the Interface Builder to create the scroll view.
What is odd is that other scroll views in the app are working fine, but this one keeps giving me this error… Any way to solve it?
It seems that I have found an answer! I am unsure why Xcode did not flag the error in the first place. With the new Xcode support for iOS 13, ScrollView Content Layout Guides are automatically enabled. In iOS versions below iOS 11, there is no Content Layout Guide attribute.
I disabled the Content Layout Guides by selecting the Scroll View, going to the Size Inspector and deselecting 'Content Layout Guides' at the bottom of the first section.
This fixed my issue!

Google Sign-In for iOS using Xamarin throws exception logs point to podfile

Trying to implement the Google Sign-In for IOS in a Xamarin project. Right on the Google page where it generates your GoogleService-Info.plist file, it says, "Insure you have CocoaPods installed and configured for your project. In you Podfile, include the following: pod 'Google/SignIn'".
And sure enough, the log on the Mac shows a similar error when going through the initial configuration.
But, I can't find anything that really tells me how to add a "Podfile" to a Xamarin IOS project (from within Visual Studio 2017, running on Windows 10).
So, when it comes time to actually click the Sign-In with Google button, in an IOS 10.3 IPhone 6 simulator, it throws an exception,
"Foundation.MonoTouchException: Objective-C exception thrown. Name:
NSInvalidArgumentException Reason: -[__NSCFString
countByEnumeratingWithState:objects:count:]: unrecognized selector
sent to instance 0x608000047200".
I can only hope it is really because of a missing component that the Podfile is supposed to resolve.
Saw a sample from a year ago that supposedly worked, but with what seems to be current right now, I can't get it to.
Update:
The sample I am trying to use, creates a custom class for the View so it can implement a custom Renderer, and a custom class for the page, again, so it can implement a custom Renderer. The View Renderer simply does:
signInButton = new SignInButton();
signInButton.Style = ButtonStyle.Wide;
signInButton.ColorScheme = ButtonColorScheme.Dark;
SetNativeControl(signInButton);
The Google button shows up, but when you click, you get the exception listed above.
A recent update to Xamarin required an update to XCode. With the update to XCode 9,the problem went away, and Google authorization is working.

Xamarin Forms 2.3.3.175 Scroll View Layer exceeds max. dimensions supported by the GPU

After upgrading Forms from 2.3.2.127 my app began to crash. After downgrading the Forms to 2.3.2.127 the issue went away, and I did try 2.3.3.193 and the issue happens there as well.
I have included a link to a PCL test app that will recreate this issue if anyone has any idea as to what I could be doing wrong or some type of workaround that would be great.
Once you start the app you will notice the tab page shows up oddly, if you navigate to the menu and select any of the items the app will crash when it attempts to load that page and render the scroll view. You will also see this exception thrown java.lang.IllegalStateException: Unable to create layer for ScrollViewRenderer
PCL test app zip

Xcode: Unable to run simulator error

An error was encountered while running (Domain = NSMachErrorDomain, Code = -308)
That is the popup message I get every time. I found another question on here that had a bunch of solutions. I tried a dozen of them without much luck. After seeing the error message it will load the "Home" screen of the simulator but will have trouble running my app.
I made a new blank project and only added a text label to see if the error still happened with a next to blank app and it did.
Any ideas?
Open the iOS Simulator and restore it by clicking on Reset Content and Settings.

Resources