Page 1 of 1

Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2017-10-18, 15:46
by Funkster
Hi folks,

I've put this under windows (10, 64bit) but it affects the Linux build also (Fedora 24 32 & 64 bit).

If I go on twitter.com and keep infinite-scrolling / loading new tweets for a while, eventually some background part of PM will get stuck in a loop (one CPU core goes to 100%) and every window (including the check-for-updates downloader) loses the ability to transfer data.

Sometimes closing the window with Twitter in might make it come back to life, but usually it's a kill-process job to get it back. I've seen PM carry on running with the same one-core-pegged even after closing all windows, and it required a kill -9 to stop it.

Anyone else seen this? It's a fairly recent behaviour, maybe the last couple of months.

EDIT to add: PM 27.5.1, 27.5.0 and the release before that all definitely affected, beyond that I don't trust my memory.

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-12, 16:05
by Funkster
Just a quick bump to say that this is still an issue on PM 27.8.3, in fact it seems to be more sensitive now.

Disclaimer: I'm a bit tab-happy, have 100 of them open across a few windows.

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-12, 19:57
by Moonchild
You're likely hitting a JavaScript garbage collection loop. Unfortunately there is no easy way to predict or combat this situation.

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-17, 12:12
by Funkster
Surely it's a bug somewhere that it sticks forever, though? There's surely not an infinite amount of garbage to collect...

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-17, 15:03
by joe04
Funkster wrote:Hi folks,

If I go on twitter.com and keep infinite-scrolling / loading new tweets for a while, eventually some background part of PM will get stuck in a loop (one CPU core goes to 100%) and every window (including the check-for-updates downloader) loses the ability to transfer data.

Sometimes closing the window with Twitter in might make it come back to life, but usually it's a kill-process job to get it back. I've seen PM carry on running with the same one-core-pegged even after closing all windows, and it required a kill -9 to stop it.
How long did you let Pale Moon churn with a pegged CPU? (Was it 20 seconds, 2 mintues, etc?)

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-17, 16:26
by Funkster
Hokay, I've just managed to trigger it twice, both times pressing the play button on a "GIF" (scare quotes because it's no doubt not an actual .gif) in the timeline.

First time, it freed up and loaded the GIF after ~2 minutes.

I loaded some more tweets for a bit, then pressed play on another GIF. This time it stayed stuck (GIF gives spinning load indicator, other windows lose ability to transfer data) for 15 minutes, at which point I closed the window showing twitter.com. CPU stayed pegged for a further 8 minutes, and then it managed to finish what it was doing and everything came back to life.

In the second case, pale moon was using ~3GiB RAM at the point where it got stuck, which stayed steady for a while (let's say 10 minutes) before climbing to ~4.2GiB, and then started falling shortly before it came back to life, landing back at ~2.4GiB.

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-17, 19:46
by joe04
That's good you're able to characterize it in detail.

What extensions are you using?

To rule out extensions, try reproducing it in Safe Mode. (If it's a browser garbage collection issue then probably won't make a difference.)

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-18, 08:08
by Funkster
Extensions:
- Adblock Latitude 5.0.1
- Noscript 5.0.6
- Session Manager 0.8.1.7

Plugins: none

To be honest, opening the same number of pages without any adblock and script blocking just isn't going to happen. Hanging threads is better than seeing ads.

Re: Background thread hang after infinite-scrolling a long way on twitter.com

Posted: 2018-04-18, 17:02
by adesh
At least you can leave ad-blocker and start with disabling NoScript and Session Manager. Probably, that'd give a hint.