-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
show-page class not always added to pushed pages #8769
Comments
I have recently fixed a lot of blank page issues in NavController due inconsistent states. We will release RC2 soon! |
A similar problem occurs on my Samsung Galaxy S II where pushed pages are not shown and the screen is flushed white. I did not inspect the elements however. |
Can you guys try against nightly?
|
Hey Manu, The problem still occurs on my iPhone 4s, can't reproduce it anymore on my iPhone6s. Then again it was very rare on the 6s before aswell. Which commit did you try and fix the issue in? |
Installed: But also still have the same issue on old iPhones (4s, 5), iPad mini and on android's as well. I'm getting the black screen after this.navCtrl.push(FormPage). |
Here is a plunker that explains how you can easily replicate it: We will report another issue, but I though I will link it here. I hope it helps some of you who are experiencing the white screen issue. Potential solutions:
|
This problem seems to occur more frequently in RC2… |
@brandyscarney @jgw96 2 possible dups here. |
After reviewing this i would definitely see my issue #9026 is a dup. so it still occurs on RC2 :( |
@peterbakonyi05 sadly i must say I'm experiencing this issue on pages which are nearly static. I do no calculations in the constructor or hooks. |
I had the same impression, that RC2 is actually making it happen more frequently. @ataraxus That is strange, because in our case it only happens when we navigate to a page that contains some expensive calculations. Are you sure that you don't use any third-party libraries that does some heavy stuff? Maybe try to profile it with Chrome if you haven't tried it yet. What kind of device are you using for testing? |
@peterbakonyi05 i'm pretty sure, but maybe I'm wrong anyway. please have a look at my ticket #9026 I've pasted my component there, with which i trigger this issue. the only suspicous part in my eyes is: Just too many maybes :( I would be glad to help on this issue and rule out some of these maybes.... |
I am 90% sure this problem will be closed in next release once this PR is merged: |
@manucorporat could i test this changes by using edit: ah i see/understand just right now it is not merged yet. I will try to patch my rc2 manually and see if it fixes the issues. |
Hey @manucorporat I did include your PR manually, it didnt help much, or anything. Now it looks like this
At least now i understand why pages with loading bar do have a bigger chance to be displayed. the loading overlay triggers the validation of the DOM so the chance is higher to win the race ... Anything I can test? |
@manucorporat Hey i started poking around in ionics source and adding tracing information. I could trace the issue down somewhat at least. for whatever reason animations get lost: this is a trace from a working transition:
and this from a broken one:
the interesting part is that in the case of the broken transition the second transition is started before the first could be executed completely. Or the first transition's animations are both empty for whatever reason and the second transisition is executed therefore imediately. hopefully this helps to figure out the issue. edit: these traces were made with the patch you proposed. |
Okay i got it now! and hacked it so i wont be emberassed at the Exec presentation tomorrow 😂
broken part
One can see that the transition actually fails with:
I guess the reason behind this is to stop animations taking to much time on slow devices. The problem is, that the I would propose to add the My WORKAROUND for now is to increase the time waiting for the transition to finish:
|
@ataraxus awesome debugging! but I don't understand how the PR didn't fix the issue for you: So ensuring UPDATE #1: |
glad i could help. keep up the good work! |
@manucorporat I was unable to figure out where to get your updated PR I would be willing to test your changes on my devices, so we can be "sure" it works as expected. Cheers! |
I am sorry for stupid question but
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Short description of the problem:
So I have only experienced this on iOS devices, it happens very rarely on an iPhone6 but almost every time on an iPhone4S.
I tried to install the Ionic Conference app to see if I could recreate it, and after clicking around the app a bit it happened. I guess it happens more often in my own app because there is more content on the pushed page.
http://i.imgur.com/mmaJnyr.jpg - iPhone4S screenshot
http://i.imgur.com/vhTtgws.png - Inspector screenshot
What behavior are you expecting?
That a pushed page is always shown, even on old / low end devices.
Steps to reproduce:
Which Ionic Version? 1.x or 2.x
Ionic 2 RC.1
The text was updated successfully, but these errors were encountered: