-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException after "KeyboardDownNotification" #736
Comments
@wtheronjones the area concerning that can be a bit dicey, perhaps it is when the popup is closed, and then the keyboarddownnotification occurs? Having a project to work on would be the most helpful in trying to track this down however |
Hi, yeah it seems a bit dicey indeed. Unfortunately, I have no clue about the exact user interactions sequence involved, and I have lots of variations on this stack trace, not all of them include the keyboardboard down thing, but they all reference "PopupPageRenderer.ViewDidLayoutSubviews()". It's not really possible to provide a sample reproducing it. Here is the most recent stack trace from an iPad on iOS 15.3:
Here is the code in ViewDidLayoutSubviews. I am wondering what could possibly be null in there.
|
Here's another stacktrace w/ the same exception:
|
Here's another stack trace:
|
I was just looking at this area in the Maui Version, i might be able to adjust somethings, gimme a bit |
Hmm, i wonder if it is this
I am definitely going to need a project to work off, however, is there some lifecycle events that may cause a situation where an app is brought to the foreground, and almost immediately it opens a popup? just spit balling |
I was wondering about that line too. I can't imagine why it's null. non-ui thread? I couldn't tell you about the user behaviors leading up to it, I just get random error reports containing versions of this stack trace. In our project, all the Xamarin.Forms pages are using "<pages:PopupPage />" as the root xaml item.
Got another one today:
|
My app uses Rg.Plugins.Popup, and we are seeing a lot of notifications from our app crash logs (15 times in last 30 days) regarding a NullReferenceException.
The stack trace is as follows:
This particular stack trace captured from an Model: iPhone14,3 w/ iOS 15.4.1 on it
I'm unsure of reproduction steps, but it continues to happen. Seems to be related to the keyboard being dismissed based on the stack trace.
I've looked at PopupPageRenderer.ViewDidLayoutSubviews() and I'm wondering about possible null values:
Can UIScreen.MainScreen be null ?
Can UIApplication.SharedApplication.KeyWindow be null?
The text was updated successfully, but these errors were encountered: