PM hangs for about 45 seconds every day at roughly the same time

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
suzyne
Astronaut
Astronaut
Posts: 713
Joined: 2023-06-28, 22:43
Location: Australia

Re: PM hangs for about 45 seconds every day at roughly the same time

Unread post by suzyne » 2025-05-06, 02:26

Off-topic:
frostknight wrote:
2025-05-06, 01:05
And I thought I used a lot of addons...

I thought 14 was a lot. Thanks for showing me how silly I am.
Right now I have 24, but honestly I could probably cut that in half. Like do I really need Simple Screenshot and FireShot?
Laptop 1: Windows 11 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.

User avatar
frostknight
Astronaut
Astronaut
Posts: 577
Joined: 2022-08-10, 02:25

Re: PM hangs for about 45 seconds every day at roughly the same time

Unread post by frostknight » 2025-05-06, 02:33

moonbat wrote:
2025-05-06, 01:41
I have 108. No problems.
Good lord... that IS ALOT.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37665
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: PM hangs for about 45 seconds every day at roughly the same time

Unread post by Moonchild » 2025-05-06, 09:04

sidology wrote:
2025-05-05, 21:48
It has something to do with https://addons.palemoon.org/ because I just started with a clean profile, installed random 25 extensions (all from https://addons.palemoon.org/), checked for updates and the high CPU usage occurred.
I don't see how this would be caused by addons.palemoon.org. Since you can easily reproduce this, can you see on your test profile if there is any particular extension that causes this when installed? You can narrow this down by going the "bisection" route: remove/disable up dates for half of them -> if bad, do it again; if good, activate the other half and repeat.
I verified the server-side and it's all good. Also, high CPU usage would possibly point to something outside networking causing this; even things like antivirus on your system if you have it.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
sidology
Fanatic
Fanatic
Posts: 102
Joined: 2021-12-04, 22:07

Re: PM hangs for about 45 seconds every day at roughly the same time

Unread post by sidology » 2025-05-06, 10:13

Moonchild wrote:
2025-05-06, 09:04
You can narrow this down by going the "bisection" route: remove/disable up dates for half of them -> if bad, do it again; if good, activate the other half and repeat.
This doesn't work because removing half of them cuts the hang time in half, too. I don't use any AV, Defender is completely disabled here.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37665
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: PM hangs for about 45 seconds every day at roughly the same time

Unread post by Moonchild » 2025-05-06, 11:33

sidology wrote:
2025-05-06, 10:13
This doesn't work because removing half of them cuts the hang time in half, too.
That's really, really strange. There's no reason why any of this would scale linearly.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37665
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: PM hangs for about 45 seconds every day at roughly the same time

Unread post by Moonchild » 2025-05-06, 17:08

I checked a bit more and I can reproduce relatively high CPU usage when checking for updates manually. We're not locking on the network requests, because that's a series of ServiceRequest()s that are fired off asynchronously with onload callbacks. So... that would mean the cpu is being used for parsing the update manifests? That can't be right...
We also haven't touched this code in years, making it even stranger that this would pop up now.

If anyone else has an idea, I'm all ears.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite