Firefox locks up (100% CPU) when I turn on the “Web Console” (not the “Error Console”).
Benji York is discussing. Toggle Comments
It turns out that the lock-up only happens in the Juju-GUI. Other pages do not exhibit the problem.
Another detail: it un-freezes after approximately 60 seconds and then appears to act normally.
After un-freezing it generates this error, which would seem to be related: “InternalError: allocation size overflow.”
Oddly, the time stamps in the error log show the pause happening just after the above message is logged, but it was not visible during the freeze. Perhaps cleaning up after the error is what is taking so long. The last item displayed in the log during the hang was: “GET https://ec2-54-224-116-8.compute-1.amazonaws.com:17070/ [HTTP/1.1 101 Switching Protocols 207ms]”
Wow, it appears that a call to console.log() (which I added to try to debug a different issue) is the cause. Once I removed that line the hang went away.
The reason the console.log() call was using so much memory was that it was in a function that was incorrectly bound to an event (by me in a different branch) and the wrong thing (an instance of the Environment) was being passed to the event handler. That instance is huge, so stringifying it apparently used too much memory.
Required fields are marked *
Notify me of new comments via email.
Just worked with hatch based on work he… →
Blog at WordPress.com.