lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Clicking "Set as system proxy" checkbox flashes proxy url

Open leahxschmidt opened this issue 13 years ago • 4 comments

Uncaught Error: 10 $digest() iterations reached. Aborting! Watchers fired in the last 5 iterations: [["fn: function (){ return element[0].scrollHeight; }; newVal: 65; oldVal: 60","fn: function (){ return element[0].scrollHeight; }; newVal: 119; oldVal: 114"],["fn: function (){ return element[0].scrollHeight; }; newVal: 70; oldVal: 65","fn: function (){ return element[0].scrollHeight; }; newVal: 124; oldVal: 119"],["fn: function (){ return element[0].scrollHeight; }; newVal: 75; oldVal: 70","fn: function (){ return element[0].scrollHeight; }; newVal: 126; oldVal: 124"],["fn: function (){ return element[0].scrollHeight; }; newVal: 76; oldVal: 75","fn: function (){ return element[0].scrollHeight; }; newVal: 130; oldVal: 126"],["fn: function (){ return element[0].scrollHeight; }; newVal: 79; oldVal: 76","fn: function (){ return element[0].scrollHeight; }; newVal: 133; oldVal: 130"]]

leahxschmidt avatar Mar 14 '13 21:03 leahxschmidt

This is an artifact of #597 and will be fixed when that is fixed.

lanterndev avatar Mar 15 '13 19:03 lanterndev

Should be fixed along w/ #597.

ghostdance avatar Mar 15 '13 20:03 ghostdance

This seemed to be caused by /connectivity/pacUrl changing while the collapse animation was in progress (triggered by toggling /settings/systemProxy). I think the height of the element with the interpolated value changing in the expanding content caused instability in the scrollHeight (see traceback above), so the max number of digest iterations was reached during the animation. Keeping pacUrl constant during the animation as well as only beginning the animation once the /systemProxy change has taken effect (getlantern/lantern-ui@fef85e0) should keep this from happening.

In general, exceeding the max number of digest iterations isn't a huge deal, but can indicate timing issues in interdependent watched values.

lanterndev avatar Mar 15 '13 21:03 lanterndev

Using ui-toggle instead of collapse could have worked around the issue, in case it ever comes to that.

lanterndev avatar Mar 15 '13 21:03 lanterndev