Open
myleshorton
opened this issue 13 years ago
•
12 comments
Could be related to #617 but appears different and is more consistently reproducible. This happens for me every time starting with system proxy on and then switching system proxy off.
Yeah was just grabbing the reported EXCEPTION on the backend! Looks like it might be trying to update the peers as we update the settings, something like that.
86586 2013-03-21 17:38:45,961 DEBUG [Lantern-Jetty-Thread-156] http.InteractionServlet.processRequest (InteractionServlet.java:151) - Body: '{"error":"uncaughtSubscriptionException","subscriptionHandle":["/sync",0],"exception":{"stack":"Error: 10 $digest() iterations reached. Aborting!\nWatchers fired in the last 5 it
erations: [["fn: function (){ return element[0].scrollHeight; }; newVal: 61; oldVal: 64","fn: function (){ return element[0].scrollHeight; }; newVal: 114; oldVal: 116"],["fn: function (){ return element[0].scrollHeight; }; newVal: 60; oldVal: 61","fn: function (){ return element[0].scrollHeight; }; newVal: 111;
oldVal: 114"],["fn: function (){ return element[0].scrollHeight; }; newVal: 58; oldVal: 60","fn: function (){ return element[0].scrollHeight; }; newVal: 109; oldVal: 111"],["fn: function (){ return element[0].scrollHeight; }; newVal: 55; oldVal: 58","fn: function (){ return element[0].scrollHeight; }; newVal: 1
07; oldVal: 109"],["fn: function (){ return element[0].scrollHeight; }; newVal: 53; oldVal: 55","fn: function (){ return element[0].scrollHeight; }; newVal: 105; oldVal: 107"]]\n at Error ()\n at Object.Scope.$digest (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/angular/angular.js:7907:19)\n
at Object.Scope.$apply (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/angular/angular.js:8079:24)\n at handleSync (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/js/services.js:172:18)\n at _notify (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1513:47)\n at _notifyListeners (http://127.0.0
.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1540:9)\n at _messageResponse (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2163:17)\n at _receive (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2227:17)\n at _handleMessages (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js
:2246:13)\n at Object._send.envelope.onSuccess (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1637:37)"},"message":{"id":"83","data":[{"op":"add","path":"/peers","value":[{"peerid":"","country":"us","lat":41.9391,"lon":-78.3778,"type":"cloud","online":false,"mapped":true,"ip":"75.101.134.244","mode":"g
ive","incoming":false,"bytesUp":1255704,"bytesDn":11760296,"version":"","bpsUp":0,"bpsUpDn":0,"bytesUpDn":13016000,"connected":true,"lastConnected":"2013-03-21 17:38:00","bpsDown":0,"nsockets":4}]}],"channel":"/sync"}}'
86587 2013-03-21 17:38:45,962 DEBUG [Lantern-Jetty-Thread-156] http.InteractionServlet.processRequest (InteractionServlet.java:162) - processRequest: modal = settings, inter = EXCEPTION, mode = get
86587 2013-03-21 17:38:45,962 ERROR [Lantern-Jetty-Thread-156] http.InteractionServlet.processRequest (InteractionServlet.java:393) - Did not handle interaction for modal settings with params: {}
My code was from before @ghostdance added the exception handling code to the backend, so that should catch that part of it in terms of backend processing of the error.
Also hadn't run git submodule update since this morning, but just got it with the latest too. Here's a more readable version with @ghostdance's exception handling changes:
95390 2013-03-21 17:49:32,673 DEBUG [Lantern-Jetty-Thread-176] http.InteractionServlet.processRequest (InteractionServlet.java:151) - Body: '{"error":"uncaughtSubscriptionException","subscriptionHandle":["/sync",0],"exception":{"stack":"Error: 10 $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: [["fn: function (){ return element[0].scrollHeight; }; newVal: 67; oldVal: 70","fn: function (){ return element[0].scrollHeight; }; newVal: 118; oldVal: 121"],["fn: function (){ return element[0].scrollHeight; }; newVal: 64; oldVal: 67","fn: function (){ return element[0].scrollHeight; }; newVal: 115; oldVal: 118"],["fn: function (){ return element[0].scrollHeight; }; newVal: 61; oldVal: 64","fn: function (){ return element[0].scrollHeight; }; newVal: 114; oldVal: 115"],["fn: function (){ return element[0].scrollHeight; }; newVal: 60; oldVal: 61","fn: function (){ return element[0].scrollHeight; }; newVal: 112; oldVal: 114"],["fn: function (){ return element[0].scrollHeight; }; newVal: 58; oldVal: 60","fn: function (){ return element[0].scrollHeight; }; newVal: 110; oldVal: 112"]]\n at Error ()\n at Object.Scope.$digest (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/angular/angular.js:7907:19)\n at Object.Scope.$apply (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/angular/angular.js:8079:24)\n at handleSync (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/js/services.js:172:18)\n at _notify (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1513:47)\n at _notifyListeners (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1540:9)\n at _messageResponse (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2163:17)\n at _receive (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2227:17)\n at _handleMessages (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2246:13)\n at Object._send.envelope.onSuccess (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1637:37)"},"message":{"id":"100","data":[{"op":"add","path":"/peers","value":[{"peerid":"","country":"us","lat":41.9391,"lon":-78.3778,"type":"cloud","online":false,"mapped":true,"ip":"75.101.134.244","mode":"give","incoming":false,"bytesUp":1308936,"bytesDn":11842840,"version":"","connected":true,"lastConnected":"2013-03-21 17:48:59","bpsDown":0,"nsockets":5,"bpsUp":0,"bpsUpDn":0,"bytesUpDn":13151776}]}],"channel":"/sync"}}'
95390 2013-03-21 17:49:32,673 DEBUG [Lantern-Jetty-Thread-176] http.InteractionServlet.processRequest (InteractionServlet.java:162) - processRequest: modal = settings, inter = EXCEPTION, mode = get
95393 2013-03-21 17:49:32,676 ERROR [Lantern-Jetty-Thread-176] http.InteractionServlet.processRequest (InteractionServlet.java:178) - UI Exception:
error: uncaughtSubscriptionException
subscriptionHandle: [/sync, 0]
exception: {stack=Error: 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [["fn: function (){ return element[0].scrollHeight; }; newVal: 67; oldVal: 70","fn: function (){ return element[0].scrollHeight; }; newVal: 118; oldVal: 121"],["fn: function (){ return element[0].scrollHeight; }; newVal: 64; oldVal: 67","fn: function (){ return element[0].scrollHeight; }; newVal: 115; oldVal: 118"],["fn: function (){ return element[0].scrollHeight; }; newVal: 61; oldVal: 64","fn: function (){ return element[0].scrollHeight; }; newVal: 114; oldVal: 115"],["fn: function (){ return element[0].scrollHeight; }; newVal: 60; oldVal: 61","fn: function (){ return element[0].scrollHeight; }; newVal: 112; oldVal: 114"],["fn: function (){ return element[0].scrollHeight; }; newVal: 58; oldVal: 60","fn: function (){ return element[0].scrollHeight; }; newVal: 110; oldVal: 112"]]
at Error ()
at Object.Scope.$digest (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/angular/angular.js:7907:19)
at Object.Scope.$apply (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/angular/angular.js:8079:24)
at handleSync (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/js/services.js:172:18)
at _notify (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1513:47)
at _notifyListeners (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1540:9)
at _messageResponse (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2163:17)
at _receive (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2227:17)
at _handleMessages (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:2246:13)
at Object._send.envelope.onSuccess (http://127.0.0.1:28154/dlLXeJoF0ht2hejM1X99gQ/lib/cometd.js:1637:37)}
message: {id=100, data=[{op=add, path=/peers, value=[{peerid=, country=us, lat=41.9391, lon=-78.3778, type=cloud, online=false, mapped=true, ip=75.101.134.244, mode=give, incoming=false, bytesUp=1308936, bytesDn=11842840, version=, connected=true, lastConnected=2013-03-21 17:48:59, bpsDown=0, nsockets=5, bpsUp=0, bpsUpDn=0, bytesUpDn=13151776}]}], channel=/sync}
That scrollHeight issue popped up in #596 and was related to the collapse animation interacting with the interpolated pacUrl changing mid-animation. See this comment. Is that what's happening here?
Certainly sounds the same. At first I thought I could reproduce every time with the steps described in the ticket, but now I only get it sometimes after continually toggling set system proxy, so seems like likely the same issue. This causes the UI to completely freeze though.
Yeah me -- refresh using the keyboard brings 'er back. Oh interesting finding that correlates with the above -- I only get it when there's a background animation. If I resize the window so the settings overlay hides the background animation, I can't seem to ever get it. As soon as more background animation is visible though, it happens right away.
Haven't been able to reproduce, but in the process of trying, I noticed pacUrl is not being set correctly again (see reopened #597), which was the reason for #596. If we make sure pacUrl is correctly populated from the start of initializing the model, does that fix this for you?
By which I meant, does that fix the "10 $digest() iterations reached" error because of scrollHeight changing mid-animation? It sounds like there's some underlying issue causing the backend to crash, which is why your screenshot shows the frontend "waiting for lantern", right? The "10 $digest() iterations reached" error alone will not cause the frontend to disconnect from the backend.
By the way, if this pacUrl changing mid-animation business continues to be an issue, let's just ditch the animation altogether and always show the pacUrl under Advanced. More trouble than it's worth.
I just ditched the animated collapsing of the pacUrl info in the frontend, so even if pacUrl isn't set, this shouldn't happen. I also restored catching of the "10 $digest() iterations reached" error in the comet update handler, which may in fact have caused the frontend to initiate the disconnect.