Error: $digest already in progress

Hello,

I get Error: [$rootScope:inprog] $digest already in progress .

My view is a bit complicated, I posted the printscreen. The error happens each time when I try to add new attendee (tag) and move scroll up (autoscroll). I don’t use $apply or $digest so its something internal in Ionic.

  • Happens also in Chrome
  • the same on beta.12

Here is a full stack:

Error: [$rootScope:inprog] $digest already in progress
http://errors.angularjs.org/1.2.25/$rootScope/inprog?p0=%24digest
    at VALIDITY_STATE_PROPERTY (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:7703:12)
    at beginPhase (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:20634:15)
    at Scope.$get.Scope.$apply (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:20423:11)
    at http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:10478:10
    at forEach (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:7950:18)
    at HTMLElement.eventHandler (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:10477:5)
    at Object.ionic.EventController.trigger (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:366:71)
    at null.<anonymous> (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:4120:13)
    at ionic.Utils.throttle [as triggerScrollEvent] (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:3105:25)
    at ionic.views.Scroll.ionic.views.View.inherit.getRenderFn.content.style.(anonymous function) [as __callback] (http://localhost:8000/lib/js/ionic/1.0.0-beta.13-ionic.bundle.js:4885:16) 1.0.0-beta.13-ionic.bundle.js:17696(anonymous function) 1.0.0-beta.13-ionic.bundle.js:17696$get 1.0.0-beta.13-ionic.bundle.js:14989$get.Scope.$apply 1.0.0-beta.13-ionic.bundle.js:20426(anonymous function) 1.0.0-beta.13-ionic.bundle.js:10478forEach 1.0.0-beta.13-ionic.bundle.js:7950eventHandler 1.0.0-beta.13-ionic.bundle.js:10477ionic.EventController.trigger 1.0.0-beta.13-ionic.bundle.js:366(anonymous function) 1.0.0-beta.13-ionic.bundle.js:4120ionic.Utils.throttle 1.0.0-beta.13-ionic.bundle.js:3105ionic.views.Scroll.ionic.views.View.inherit.getRenderFn.content.style.(anonymous function) 1.0.0-beta.13-ionic.bundle.js:4885ionic.views.Scroll.ionic.views.View.inherit.__publish 1.0.0-beta.13-ionic.bundle.js:5786ionic.views.Scroll.ionic.views.View.inherit.scrollTo 1.0.0-beta.13-ionic.bundle.js:5253(anonymous function) 1.0.0-beta.13-ionic.bundle.js:39916deferred.promise.then.wrappedCallback 1.0.0-beta.13-ionic.bundle.js:19197(anonymous function) 1.0.0-beta.13-ionic.bundle.js:19283$get.Scope.$eval 1.0.0-beta.13-ionic.bundle.js:20326$get.Scope.$digest 1.0.0-beta.13-ionic.bundle.js:20138$get.Scope.$apply 1.0.0-beta.13-ionic.bundle.js:20430(anonymous function) 1.0.0-beta.13-ionic.bundle.js:21938completeOutstandingRequest 1.0.0-beta.13-ionic.bundle.js:12022(anonymous function) 

Do you have (directly or indirectly) watched variables that influence variables already watched? This could create “possible infinite loops” which might throw this error… Just a shot in the dark though :wink:

hey i had the same error and it was caused because i’ve used ng-change on my searchbar and also watched the search query manually to filter stuff. maybe this helps. good look