Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
On iPad devices (iPod, iPhone seem OK):
If you have a MasterDetailPage and set
MasterBehavior = Xamarin.Forms.MasterBehavior.Popover;
You can set
IsPresented = true;
to show the Master page. If you try to hide it, however:
IsPresented = false;
Nothing happens. Master stays showing.
If your Detail page then has a NavigationPage of its own that is displayed, you will crash with a strange error:
"MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[UIPopoverController _presentPopoverBySlidingIn:fromEdge:ofView:animated:stateOnly:notifyDelegate:]: Popovers cannot be presented from a view which does not have a window."
So, in my application I use the MasterDetailPage for the primary interaction. When a user needs to log in, the MasterDetailPage overrides OnAppearing():
public class MainPage : MasterDetailPage
protected override void OnAppearing()
if( !loginValid )
IsPresented = false;
Navigation.PushModalAsync( new NavigationPage( new LoginPage() ) );
Where LoginPage is just a ContentPage with controls on it. The Master page has a menu choice for "Log Out," which will clear out some data, and set the "loginValid" to false. But, the Master page never slides back out of the view. If you attempt to tap on the visible parts of the LoginPage, the application crashes with the aforementioned error.
I am also facing the same problem on iPad2. Please suggest fix or any workaround.
Having the same problem here with the exact same Exception. Please suggest fix or workaround.
I can confirm I get the same error
If you rotate the ipad a bunch of times, hiding and showing the MasterPage slide out, then try, the error does not happen.
It's like it needs to be warmed up.
I can confirm I am seeing the same issue. Forms 1.3.1 on iOS, using a MasterDetailPage with a navigation controller as the detail page. Unable to explicitly close the Master view in code using IsPresented = false. I am attempting to launch a facebook login webview from the Master, page appears, but master does not close. Clicking on webview crashes app.
Can you try with 1.3.2-pre2 and see if it fixes your problem ?
Fixed the IsPresented = false issue. Thank you!
I am also having the same problem. My Xamarin.Forms version is xamarin.forms 22.214.171.12474. Now what to do...Kindly help me
I still have the same issue with Xamarin.Forms 126.96.36.1990555
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPopoverController _presentPopoverBySlidingIn:fromEdge:ofView:animated:stateOnly:notifyDelegate:]: Popovers cannot be presented from a view which does not have a window.'
any luck to fix this issue