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

The place to report Pale Moon specific bugs on the Windows operating system.

Moderator: satrow

Funkster
Newbie
Newbie
Posts: 6
Joined: Thu, 24 Sep 2015, 14:21
Location: Earth

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

Unread postby Funkster » Wed, 18 Oct 2017, 15:46

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.

Funkster
Newbie
Newbie
Posts: 6
Joined: Thu, 24 Sep 2015, 14:21
Location: Earth

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

Unread postby Funkster » Thu, 12 Apr 2018, 16:05

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.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22124
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

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

Unread postby Moonchild » Thu, 12 Apr 2018, 19:57

You're likely hitting a JavaScript garbage collection loop. Unfortunately there is no easy way to predict or combat this situation.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Image

Funkster
Newbie
Newbie
Posts: 6
Joined: Thu, 24 Sep 2015, 14:21
Location: Earth

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

Unread postby Funkster » Tue, 17 Apr 2018, 12:12

Surely it's a bug somewhere that it sticks forever, though? There's surely not an infinite amount of garbage to collect...

joe04
Lunatic
Lunatic
Posts: 259
Joined: Mon, 28 Sep 2015, 16:38
Location: US
Contact:

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

Unread postby joe04 » Tue, 17 Apr 2018, 15:03

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?)

Funkster
Newbie
Newbie
Posts: 6
Joined: Thu, 24 Sep 2015, 14:21
Location: Earth

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

Unread postby Funkster » Tue, 17 Apr 2018, 16:26

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.

joe04
Lunatic
Lunatic
Posts: 259
Joined: Mon, 28 Sep 2015, 16:38
Location: US
Contact:

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

Unread postby joe04 » Tue, 17 Apr 2018, 19:46

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.)

Funkster
Newbie
Newbie
Posts: 6
Joined: Thu, 24 Sep 2015, 14:21
Location: Earth

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

Unread postby Funkster » Wed, 18 Apr 2018, 08:08

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.

User avatar
adesh
Astronaut
Astronaut
Posts: 564
Joined: Tue, 06 Jun 2017, 07:38

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

Unread postby adesh » Wed, 18 Apr 2018, 17:02

At least you can leave ad-blocker and start with disabling NoScript and Session Manager. Probably, that'd give a hint.


Return to “Bug reports (Windows)”

Who is online

Users browsing this forum: Linkdex [Bot] and 2 guests