-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Regression: Back button breaks app on clearHistory: true (android) #1569
Comments
Wow, so am I the only one with this issue? I attached a sample with the issue, you can just run it and you will see. Using brand new project.... |
This comment was marked as abuse.
This comment was marked as abuse.
I know, after a release I myself face issues, I was just pinging :-) |
This comment was marked as abuse.
This comment was marked as abuse.
Yes, easy to test. I know it is dificult to find and issue without some sample, I try to add a sample when possible. |
This comment was marked as abuse.
This comment was marked as abuse.
Hey @slavchev, @hshristov can you help here? |
I'm also having this issue, any solutions so far? I have tried to go back to 1.5.2 but without much success since it now displays some other errors that did not happen before. |
Can we have this before 1.7.0? I have the same issue |
+1 Also affected by this issue. In my app logging out takes you back to the login page and clears history. After logging back and navigating around the first use of the back button crashes the app. Would be awesome to have this fixed before 1.7. |
@Daxito, would you please, change the title to something a little bit shorter, so that it gets fine in the release notes? For example: Regression: Back button breaks app on clearHistory: true (android) |
I'm also getting this same crash. Thing is I'm not even clearing the back history. I navigate to page2 with
And on the
appears out of nowhere. Is this somehow related to this bug? |
This bug hits me as well (v1.6.2) which is very annoying, please create a release with the fix asap if you want/can! |
This comment was marked as abuse.
This comment was marked as abuse.
I added clearHistory: true to one of my navigations and during navigation app crashed with error
Crashed on 1.7.1, everything works fine on 2.0.0-2016-04-27-549. |
@orsag Did you remember what fixed it? I can't reproduce it on my side but I've got a whole bunch of sentry errors poppin with the very same stack trace on production |
@jeremypele - I have same/similar issue in 3.4.1. Happened once randomly while developing, can't reproduce, and it is happening in the wild. |
And this one which has a slightly different trace, but...
|
I believe I’ve tracked this one down after a lot of painful work to reproduce it. TLDR; When the ExtendedNavigationOptions On Android as of 3.4.1 there appears to be a bug/issue in NativeScript routing extensions when using a transition. It eventually crashes. The crashes are hard to reproduce. It's not clear to me what the issue is, but perhaps it seems to have something to do with calling navigate() repeatedly (and seems likely related to something down in ui/frame). In my case, I'm calling navigate() repeatedly before a prior call to navigate() resolves, but I'm not sure if that's a requirement to cause a crash. Calling navigate() repeatedly is legit and Angular handles it well, but NativeScript provides a custom LocationStrategy to the Angular router and guessing the issue is down in that direction someplace. Like eyeballing the code and using a bit of imagination it doesn't seem far fetched that there is some issue that crops up when calling navigate() repeatedly with There doesn't seem to be an issue on iOS, thus the ui/frame speculation. |
@jeremypele @john-e-riordan I just got a crash report from Filebase production app with a similar stack. I have no idea on what triggered it, as it's a production app, and I only get Java stack, no TS. If you find anything worth trying, please ping me.
|
This issue is still present if you mash the back button. It seems to be happening if you press the back button during a transition. |
Might be related to #5657 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
So seems like if you have this scenario, the back button breaks the App, it can't navigate back any more, and it just crashes.
var nav = { moduleName: "./Page2", backstackVisible: true, clearHistory: true }; frame.topmost().navigate(nav)
exports.toPage3 = function(){ frame.topmost().navigate("./Page3") }
sampleapp.zip
.
The text was updated successfully, but these errors were encountered: