Add-ons consume CPU when disabled

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
PhilipLewis
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-09-07, 20:18
Location: Copenhagen

Add-ons consume CPU when disabled

Unread post by PhilipLewis » 2018-01-16, 00:56

Model Identifier: MacBookAir7,1
Processor Name: Intel Core i7
Processor Speed: 2,2 GHz
System Version: macOS 10.13.2 (17C205)
Pale Moon: Version: 27.6.2 (64-bit)

I had a bit of time, so I started to investigate what is chewing my CPU.
I have added quite a few that I carried over from my Windows days. I have used PM compatible/forked versions where possible.

What I have discovered is that

a) If I disable ALL the addons and restart the browser, between 13-21% of the CPU is constantly being used.
b) If I restart the browser in safe mode with add-ons disabled, essentially 0% of CPU is used.

I was wondering

a) is this is expected or in any way reasonable? and
b) is this is specific to the OSX version?

It seems like the very existence of add-ons is enough to chomp large chunks of CPU

I guess others might test their versions and developers can have their say.
Attachments
Screen Shot 2018-01-16 at 01.36.25.png

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

Re: Add-ons consume CPU when disabled

Unread post by Moonchild » 2018-01-16, 08:47

Please be aware that Safe Mode does more than just disabling add-ons (also the reason why it was re-labeled in 27.7).
If you see constant high CPU in normal operation mode, it may e.g. be a problem with video acceleration not working well (try disabling "Use hardware acceleration when available" in Preferences -> Advanced)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

PhilipLewis
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-09-07, 20:18
Location: Copenhagen

Re: Add-ons consume CPU when disabled

Unread post by PhilipLewis » 2018-01-16, 15:37

Already disabled.

Any other ideas?

I could delete everything and start from scratch I suppose, layering changes and see where it breaks, but that is a rather large pain in the butt.

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Add-ons consume CPU when disabled

Unread post by adesh » 2018-01-16, 16:08

It might be because of your custom changes to browser preferences - safe mode resets preferences to default values. If you could paste a lit of modified preferences (in "hide" tags), someone might be able to see if there is a problem with those.This information can be found by using menu and navigating to Help -> Troubleshooting Information.

Goodydino
Keeps coming back
Keeps coming back
Posts: 820
Joined: 2017-10-10, 21:20

Re: Add-ons consume CPU when disabled

Unread post by Goodydino » 2018-01-16, 20:24

Safe Mode does not change preferences. This page explains:
http://kb.mozillazine.org/Safe_mode

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Add-ons consume CPU when disabled

Unread post by adesh » 2018-01-17, 16:58

Off-topic:
Ah, yes. I don't know what I was thinking when I posted that. Overworked, I guess!

PhilipLewis
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-09-07, 20:18
Location: Copenhagen

Re: Add-ons consume CPU when disabled

Unread post by PhilipLewis » 2018-11-23, 03:30

PhilipLewis wrote:Model Identifier: MacBookAir7,1

I had a bit of time, so I started to investigate what is chewing my CPU.
I have added quite a few that I carried over from my Windows days. I have used PM compatible/forked versions where possible.

What I have discovered is that

a) If I disable ALL the addons and restart the browser, between 13-21% of the CPU is constantly being used.
b) If I restart the browser in safe mode with add-ons disabled, essentially 0% of CPU is used.

I was wondering

a) is this is expected or in any way reasonable? and
b) is this is specific to the OSX version?

It seems like the very existence of add-ons is enough to chomp large chunks of CPU

I guess others might test their versions and developers can have their say.
I thought I'd reactivate this thread ... I upgraded my old MacBook Air 3,1 to Mojave (courtesy of http://dosdude1.com/mojave/)

Processor Name: Intel Core 2 Duo
Processor Speed: 1.4GHz
System Version: macOS 10.14.1 (18B75)
Pale Moon: Version: 28.2.0a1 (64-bit)

NewMoon still exhibits the behaviour of constant CPU usage with no pages open.
Screenshot 2018-11-23 at 10.12.27.png
Screenshot 2018-11-23 at 10.17.45.png
If I minimise NewMoon (orange button), it seems to settle down after a minute or two and NewMoon disappears from the activity list.
Screenshot 2018-11-23 at 10.28.38.png
As was the case previously, starting in safe mode with add-ons disabled causes the behaviour to disappear entirely.

Applications spinning constantly is death for a laptop :(

cheers

User avatar
therube
Board Warrior
Board Warrior
Posts: 1650
Joined: 2018-06-08, 17:02

Re: Add-ons consume CPU when disabled

Unread post by therube » 2018-11-23, 16:46

with no pages open
Just what "page" does PM open up to?

PhilipLewis
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-09-07, 20:18
Location: Copenhagen

Re: Add-ons consume CPU when disabled

Unread post by PhilipLewis » 2018-11-24, 01:17

therube wrote:
with no pages open
Just what "page" does PM open up to?
Screenshot 2018-11-24 at 08.13.45.png
Blank

The default at installation, http://start.palemoon.org/ is itself a CPU hog, which I noted at one point many moons ago

Locked