Open wadebaird opened 5 years ago
@wadebaird Please send a link to your repro to sahou at microsoft. Thanks!
Thanks! Email w/ repro sent
Haven't received email yet. :)
@wadebaird I've tested your reproduction, and I do not see a crash. Your repro steps indicate that I should simply click login to launch the modal page, and it should crash. Is that right? Do you see this exception on simulators or only on device? Which sim/device are you testing with? Thanks!
Thanks @samhouts. The repro steps are more involved than that, please look at the original email. I sent you a reply with the repro steps at the top of the email and copied them here (minus the UN / PW):
Load the app, click on the “Login” button on the login page, then use these credentials:
xxxxxxxx xxxxxxxx
Then on the next screen click on the “Click here to repro”. On the popup about “re-logging in” click “OK” The first exception you encounter will be a SessionExpiredException which is expected, it triggers the loading of the LoginPage to re-login. Then the next exception should be the PlatformRenderer exception.
Ah, yep, sorry about that! I missed that part of the email. Will try again.
I have the same problem, but triggered from using Microsoft AppCenter Auth. Essentially, it breaks modal dialogs in Xamarin.Forms, no matter what you use them for. I think I could also produce a sample if necessary. It certainly is pretty serious.
@klogeaage do you have a repro you can send?
@wadebaird sent you an email about the credentials
@klogeaage a friendly reminder that a reproduction would be greatly appreciated if you have one!
Hi @PureWeen & @jfversluis, sorry but because of this issue, I abandoned using modal views in my current app, and now I can't seem to reproduce the issue anymore. A lot of updates have taken place in both my, Microsofts and Apples code, and now the crash no longer happens when I invoke a modal dialog. From my perspective, you may close the issue.
Thanks for the update @klogeaage! @wadebaird, are you seeing this as well? 🙂
Thanks @jfversluis. I haven't tried this in iOS 13 yet, but it failed in iOS 12 the last time I tried it. We can't force our users to iOS13, so it would be great to get this fixed.
@kingces95 Can you explain why this has the "needs-repro" tag? I have provided a repro and I believe they can reproduce it. Thanks!
@wadebaird I don't see where I said that iOS 13 has the solution? :)
@klogeaage mentioned that he updated Microsoft stuff, so I think XamForms (maybe also Xamarin.Auth?) and Apple things, by which I think he means the latest XCode and the latest Xamarin.Forms version which still runs on iOS 12 as well as 13. All I meant to ask you was if you are able to update to the latest and greatest to see if that fixes your problem.
Sorry @jfversluis, for some reason I thought I saw an update / email on this about it not reproducing in iOS13, my confusion.
I retested with the latest XamForms v4.3.0.947036 and get the same results on iOS12.4. On iOS 13.1 there is very strange behavior. The modal form loads without exception, but clicking on the login button on the form does nothing, unless I minimize the app, and then come back to it, and then it will show the ADFS login screen from Xamarin.Auth, but then logging into that it crashes after.
Ok @jfversluis , now I found the reference, it was in an email from @PureWeen stating "It’s funny (annoying) because it doesn’t crash on iOS 13 devices only iOS 12 devices". Thanks!
Any updates on this?
Description
We are developing a Xamarin project with a Login Screen using Xamarin.Auth. Throughout using the application the user will need to re-authenticate if the session has elapsed. As I understand it, the proper way is load the Login screen as a modal page over the front of the current screen, and force the user to re-login.
On iOS when attempting to do this I get this exception: System.ObjectDisposedException: 'Cannot access a disposed object. Object name: 'PlatformRenderer'.'
with this callstack:
This is most likely related to #2208, which has been closed due to lack of repro. My reproduction is consistent, and occurs everytime.
Steps to Reproduce
I have a private repro solution that I can provide (has some company information in it, so would like to keep it private).
await currentPage.Navigation.PushModalAsync(new LoginPage(onLoginFunction));
Expected Behavior
Form is loaded in Modal mode.
Actual Behavior
Exception occurs
Basic Information