this.nav.pop() stops responding and displays a black screen
Short description of the problem:
I have a simple app with a HomePage that calls a child PickPage with a list of 3 pick items. When you tap on a selection it fires a function called pickPreference(item) and all it does is return to the parent page with this.nav.pop(). If you go back and forth several times between the parent and the child, it stops working and displays a black screen
What behavior are you expecting?
I should be able to go back and forth between the Homepage and PickPage without any errors
Steps to reproduce:
The key is to go back and forth between the parent and child pages as fast as possible.
Below is the sample code that I'm using to reproduce this issue, but you can download a sample app that demonstrates this issue in this github repo
**home.html**
<button ion-item (click)="pickDefaultDate()">
<ion-label floating primary>Default Date</ion-label>
<ion-input type="text" [(ngModel)]="settings.defaultdatedisplay" readonly></ion-input>
</button>
**home.ts**
import {PickPage} from '../pick/pick';
pickDefaultDate() {
this.nav.push(PickPage);
}
**pick.html**
<ion-list radio-group>
<ion-item *ngFor="let item of defaultitems">
<ion-label>{{item.text}}</ion-label>
<ion-radio [value]="item.value" (click)="pickPreference(item)" ></ion-radio>
</ion-item>
</ion-list>
**pick.ts**
constructor(private nav: NavController) {
this.defaultitems = [
{ text: 'No default date', value: 'none' },
{ text: 'Todays date', value: 'today' },
{ text: 'Last date used', value: 'last' }];
}
dismiss() {
this.nav.pop();
}
pickPreference(item) {
this.nav.pop();
}
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
This is the black screen that I get but there are no errors on the console

Which Ionic Version? 2.x
Github Sample App that shows an example of my issue
https://github.com/gigocabrera/ionic2_navpopissue
Run ionic info from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.7
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:
Node Version: v5.10.1
This may be related to #6540 ?
@daforest I concur. Your issue and mine are basically the same issue. And it is reproducible with any 'Back' button in ionic.
Closed by mistake. Sorry
I find it strange that this one is not added to the Beta 8-milestone. This could potensionally break any Ionic 2 app.
Hello @Daforest ! Sorry for the delay on this one (: Which platforms are you observing this on?
Hello! So i am having trouble getting your demo running for some reason. But after creating my own demo app to try and reproduce this i cant seem to be able to. Could you post a plunker that i could use to reproduce this issue? Thanks!
@jgw96 I am not the owner of this post. My issue is similar, and is described here #6540. This should be an easy task to reproduce.
Hello @jgw96 I don't know how to create a plunker to reproduce but as Daforest stated, this should be easy to reproduce. If you have your own demo, the key to reproduce is to go back and forth between the parent and child pages as fast as possible so when you're on the child page you tap on the Back button to go back (again as fast as you can, several times)
I FORGOT TO MENTION
On the child page you need something like below to go back to the parent
GoBack() {
this.nav.pop();
}
@gigocabrera hmmm, i am still having troubles reproducing. I am back and forth between my child page and home page as fast as i can and it seems to be working fine. What platforms are you seeing this issue on? Im testing on a Nexus 6 running the Android N beta dev preview, a Nexus 7 running Android 6.0.1 and a Moto X 2014 running Android 5.1.1. Also, would you mind testing with our ionic conf demo app? (https://github.com/driftyco/ionic-conference-app) The schedule page is a list of items that open pages, so its pretty easy to test with.
@jgw96 I don't know about this issue, but #6540 is iOS only.
@jgw96 I was able to reproduce using the ionic-confererence-app. Here are the steps:
- Make the
AboutPagetherootPageinapp.ts(yes, I'm using the typescript version in all my apps) - Open the
About.htmlpage and add the following markup before the</ion-content>tag
<button ion-item (click)="goToChild()">
<ion-label floating primary>Default Date</ion-label>
<ion-input type="text" readonly></ion-input>
</button>
- Open the
About.tspage and add the following
goToChild() {
this.nav.push(ChildPage);
}
- Add a new page called ChildPage (it can be a blank page)
- Run
ionic serve - Click on the new button you added on the about page. This will take you to the new child page. Tap really fast on the Back button in the top navigation to go back to the parent page. Here's where the issue appears.
I am using a Windows 10 PC and I am running this app in chrome with iPhone 6 device mode. I also installed in iOS 9.3.1 iphone 6 device and I was able to reproduce it
Thanks for the info @gigocabrera! So, it looks to be isolated to the ios mode, i was finally able to reproduce this issue with an unmodified version of the ionic-conference app.
That's awesome @jgw96 and as @Daforest mentioned, his issue #6540 is also an iOS issue
@jgw96 Will this be a part of milestone beta.9?
Hello @Daforest i have added this to our beta.9 milestone (:
Hi @gigocabrera,
I cannot recreate with the latest version of Ionic. Can you try doing this from your project root and letting me know if you can?
rm -rf node_modules/ionic-angular
rm -rf www/build
npm install ionic-angular@nightly
Thanks, Dan
I am going to close this because I think we indirectly fixed this. If you're still having the issue, I will re-open.
Thanks, Dan
@danbucholtz this question may sound stupid but please pardon my ignorance:
When I try to run rm -rf node_modules/ionic-angular I get
'rm' is not recognized as an internal or external command, operable program or batch file. I'm using a Windows based PC
Ahhh okay, just delete your node_modules/ionic-angular directory. rm -rf is recursive delete.