Ionic error I get some time


#1

I don’t understand why this error is been logged sometime. Can’t reproduce it. It occurs randomly. Stacktrace does not contain any of my JS file :frowning:

Error Message : Error: [$rootScope:inprog] http://errors.angularjs.org/1.2.17/$rootScope/inprog?p0=%24digest


Error StackTrace : m@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:135:192,$apply@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:142:383,file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:340:28705,file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:62:229,forEach@q@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:38:287,c@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:62:208,dispatchEvent@[native code],n@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:22:387,e@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:22:207,l@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:22:1396,send@[native code],file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:109:115,A@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:104:151,file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:102:92,D@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:130:263,D@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:130:263,file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:131:418,$eval@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:142:121,$digest@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:139:205,file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:142:239,e@file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:68:445,file:///var/mobile/Applications/1AA034B0-B45B-471A-A2F1-7B38C82BC5CB/Mercer%20Select.app/www/lib/ionic-1.0.0-beta.11/ionic.bundle.min.js:72:121




#2

That is coming if you use $scope.$apply and during that call another $apply is running in the background.

Please use $timeout instead of $apply if you do not know, what you are doing :wink:


#3

No I am not using $scope.$apply in my whole project.

Thanks for the response.


#4

okay then try using newest ionic-beta (maybe it is an ionic issue).

Or check if you are using $digest in your code or maybe you are using some thirdparty code?