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

[1.1.5] HTML5 mode causes the dreaded "10 $digest iterations reached" error #3397

@jrabbe

Description

@jrabbe

I do see that there are several issues on the 1.1.5 URL routing, but this specific issue doesn't seem to have been reported.

We are using a setup combining Require.js and angular together. After I turned on minification a problem that we had been seeing occasionally suddenly started occurring always. As I was removing template code it eventually went away after I removed the last trace of angular in the code. Just adding back a simply ng-include element would cause the problem to re-appear.

It might be that the require.js connection is a red herring, because I discovered that removing $locationProvider.html5Mode(true); from our app caused the problem to come back. We can probably survive without html5mode, but it would be much much better to have it.

Logs: (don't worry, jonas.radius.com is just a localhost alias, not public)

   * Error: 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 Error (<anonymous>) at Object.Scope.$digest (http://jonas.radius.com:9000/assets/external/angular/1.1.5/angular.js:8840:19)
 at Object.Scope.$apply (http://jonas.radius.com:9000/assets/external/angular/1.1.5/angular.js:9012:24)
 at done (http://jonas.radius.com:9000/assets/external/angular/1.1.5/angular.js:10265:45)
 at completeRequest (http://jonas.radius.com:9000/assets/external/angular/1.1.5/angular.js:10449:7)
 at XMLHttpRequest.xhr.onreadystatechange (http://jonas.radius.com:9000/assets/external/angular/1.1.5/angular.js:10404:11)
      * angular.js:6349
      1. (anonymous function)
angular.js:6349
  1. (anonymous function)
angular.js:5420
    1. Scope.$apply
angular.js:9014
      1. done
angular.js:10265
  1. completeRequest
angular.js:10449
    1. xhr.onreadystatechange

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions