If I keep pressed PgDown on a profile page of a user with lots of posts, Chrome rapidly consumes a lot of memory and the page crashes with a He’s dead, Jim! message. (Windows 7, Chrome 36.0.1985.143 m) Firefox and IE 11 also consume a lot of memory but they don’t crash so easily.
J/k keyboard navigation doesn't function on Profile or Messages pages
I can confirm this.
This is a heap snapshot. each snapshot is after pressing the “End” to scroll to bottom and load more items.
This issue can be replicated with multiple profiles, That mean that user activity beside hogging memory.
The memory usage will not clear(memory leak) when user navigate out of the user activity view, which will eventually crash the process too.
- go to user profile
- scroll all the way down, initiate “load more”
- go to another user profile and repeat step 2-3 til crash.
@eviltrout we should mitigate this problem in the next week if we can.
We were definitely doing a lot more DOM traversal than we needed on those views. I watched the heap allocations and this patch improves things. There is still some memory bloat but it seems better: