Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

$location.path() change fails in Android 2.3 (1.2.0rc1) #3814

Closed
doup opened this issue Aug 30, 2013 · 4 comments
Closed

$location.path() change fails in Android 2.3 (1.2.0rc1) #3814

doup opened this issue Aug 30, 2013 · 4 comments

Comments

@doup
Copy link

doup commented Aug 30, 2013

Route change ends in an $digest error in Angular 1.2rc1 + Android 2.3.6 default browser when changing the location. This is the message:

Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [
    ["fn: $locationWatch; newVal: 9; oldVal: 8"],
    ["fn: $locationWatch; newVal: 10; oldVal: 9"],
    ["fn: $locationWatch; newVal: 11; oldVal: 10"],
    ["fn: $locationWatch; newVal: 12; oldVal: 11"],
    ["fn: $locationWatch; newVal: 13; oldVal: 12"]
]
    at http://code.angularjs.org/1.2.0rc1/angular.js:60:12
    at Object.$digest (http://code.angularjs.org/1.2.0rc1/angular.js:9860:19)
    at Object.$apply (http://code.angularjs.org/1.2.0rc1/angular.js:10039:24)
    at HTMLHtmlElement.<anonymous> (http://code.angularjs.org/1.2.0rc1/angular.js:7613:22)
    at http://code.angularjs.org/1.2.0rc1/angular.js:2246:10
    at Array.forEach (native)
    at forEach (http://code.angularjs.org/1.2.0rc1/angular.js:196:11)
    at HTMLHtmlElement.<anonymous> (http://code.angularjs.org/1.2.0rc1/angular.js:2245:19)

Plnkr with the bug:
http://plnkr.co/edit/Rx6SDx

I've tried, changing the route via ng-click="$location.path('/b')" and ng-href="#/b". Both ways fail.

Might be related issues (now closed): #1417 #2815

This comment fixes the issue for me (but it does not work in a phonegap app): #1417 (comment)

@brisma
Copy link

brisma commented Sep 1, 2013

Same error in Android 2.2 (Samsung Galaxy Ace).

Note that the official tutorial page of routing (http://code.angularjs.org/1.2.0rc1/docs/tutorial/step_07) isn't loading into native browser and all my phonegap apps using it are broken with the same error on Android 2.2/2.3.

@moperacz
Copy link

moperacz commented Oct 1, 2013

is there any timeline to embed this into master?

@peey
Copy link

peey commented Mar 29, 2014

Facing the same issue, +1

This can be reproduced in Android 2.3 browser (webkit 533.1). In case anyone wants to debug this issue on a desktop, it can also be reproduced on an older version of chrome (Google Chrome 6.0.401.1 Beta) which is available for download from http://www.oldversion.com/windows/google-chrome/ .

@gkalpak
Copy link
Member

gkalpak commented Apr 12, 2016

Closing as v1.2.x only receives critical security fixes and Android 2.3 is pretty old.
If the problem persists with newer versions of Angular, please open a new issue (specifying the exact versions of Angular/Android/Browser that are know to be affected).

Thx !

@gkalpak gkalpak closed this as completed Apr 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants