Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions Topic is solved

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
bobobo
Moongazer
Moongazer
Posts: 9
Joined: 2022-03-18, 15:33

Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by bobobo » 2024-03-18, 13:06

Operating system: Windows 10
Browser version: 33.0.1
32-bit or 64-bit browser?: 64-bit

After upgrading from 33.0.0 to 33.0.1 I have trouble starting up Pale Moon. It looks like Pale Moon stops the initialization process at some point after starting the browser. This causes problems when the sessionstore.js has a large number of tabs in it that it tries to load during startup, as it apparently also prevents the browser to finish initializing.

The end result is that the browser eventually stops loading (stops hanging) and becomes unresponsive in certain areas (can't perform most actions, e.g. open the "About Pale Moon" dialog), but stays responsive in other select areas (e.g. open the menu bar menus). The menu bar menus also get up and down arrows at the top and bottom of them while still showing all menu items (so I guess it isn't able to detect if the number of items in the menu exceeds a certain max value).
Palemoon_33.0.1_screenshot.png
I can reproduce the issue on a clean portable version of Pale Moon 33.0.1 (win64) by following these steps:
- Open Pale Moon once to create user profile
- Change preferences to "Show my windows and tabs from last time"
- Close Pale Moon
- Add attached sessionstore.js to user profile
- Start Pale Moon

I have also confirmed that a clean portable version of Pale Moon 33.0.0 (win64) using the above steps will make the browser behave as expected.

As a note: the attached sessionstore.js is just a modified version of a clean sessionstore.js that only had one tab in it pointing to duckduckgo.com. The modification was just copying that one tab enough times to reproduce the issue. That said, I didn't keep adding tabs to the sessionstore.js until it started breaking the browser, so it's not like this sessionstore.js contains the exact number of tabs needed to break Pale Moon 33.0.1 on my system. Since the speed Pale Moon can initialize most likely varies depending on the system it runs on, the provided sessionstore.js might not cause the browser to break on someone else's machine. In that case, it might be necessary to alter the attached sessionstore.js to add even more tabs to reproduce the issue.
You do not have the required permissions to view the files attached to this post.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 960
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by billmcct » 2024-03-18, 13:56

Try "Preferences > Tabs" check mark "Don't load tabs until selected"
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
bobobo
Moongazer
Moongazer
Posts: 9
Joined: 2022-03-18, 15:33

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by bobobo » 2024-03-18, 14:12

billmcct wrote:
2024-03-18, 13:56
Try "Preferences > Tabs" check mark "Don't load tabs until selected"
I already have that option checked. It's also selected by default on a clean Pale Moon installation, so the clean portable versions also have them selected.

Thanks for the advice though. :D

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by therube » 2024-03-18, 16:46

2,000 tabs.
You should have mentioned that.
Even I wasn't expecting that when you said "large number of tabs" ;-).

33.0.1, 1.74 GB RAM, & browser seems non-functional (& this is after CPU usage has dropped to nil).

33.0.0, 1.44 GB RAM, browser up & functional in just about 1 minutes time.


So yes, definitely something going on between the two.


(I started with existing Profiles, disabled any extensions in both, substituted downloaded sessionstore.js for the existing, & fired them up.)

PM x64's, i7-3770s, 8 GB RAM, SSD


And since you asked, SeaMonkey, 2.53.19 beta 1 pre, 20240301220003, new Profile...

SM x64, 1.99 GB RAM, browser up & functional 1 minute 45 seconds.

I did have to respond to the "busy script" message, once, during that time, at which point I said, Continue.
(PM 33.0.1, automatically, by default, stops the script.)
Last edited by therube on 2024-03-18, 17:08, edited 1 time in total.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 960
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by billmcct » 2024-03-18, 17:07

therube wrote:
2024-03-18, 16:46
2,000 tabs.
You should have mentioned that.
Even I wasn't expecting that when you said "large number of tabs" ;-).

33.0.1, 1.74 GB RAM, & browser seems non-functional (& this is after CPU usage has dropped to nil).

33.0.0, 1.44 GB RAM, browser up & functional in just about 1 minutes time.


So yes, definitely something going on between the two.


(I started with existing Profiles, disabled any extensions in both, substituted downloaded sessionstore.js for the existing, & fired them up.)

PM x64's, i7-3770s, 8 GB RAM, SSD
Jeeze, Why would anyone want to load 2000 tabs?
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by therube » 2024-03-18, 17:08

That's not the point.
(I myself have been known to use "large number of tabs" ;-).)
Last edited by therube on 2024-03-18, 17:09, edited 1 time in total.

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by Moonchild » 2024-03-18, 17:09

See if setting dom.max_chrome_script_run_time to 90 helps. I'm guessing it may be terminating the session restore script with the tighter timeout settings when your number of tabs is completely out of scope.
"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

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by therube » 2024-03-18, 17:11

I'll note that in 33.0.1, sessionstore.js ended up at a size of 833,463 (rather then its' source of, 1,664,583).

(Heh, forgot about its' backups [as I went to change that pref]. Killed it, that's better.)

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by therube » 2024-03-18, 17:18

"90".

Did not help.
Took 2 minutes for CPU to subside, 1.74 GB RAM, DDG page failed to load, & browser basically unresponsive.

Quitting PM 33.0.1 - from the 'X', did work, it did fully exit.
Resultant sessionsstore.js, 804,915 bytes.

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by Moonchild » 2024-03-18, 17:23

There really isn't all that much different between 33.0.0 and 33.0.1 - see the repo and release notes. There shouldn't be a significant difference in how huge sessionstores would be handled. The timeout was the only thing that stood out as a possible issue but if restoring that to what it was before doesn't help then I don't know what else to suggest.
"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

User avatar
bobobo
Moongazer
Moongazer
Posts: 9
Joined: 2022-03-18, 15:33

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by bobobo » 2024-03-18, 17:32

Moonchild wrote:
2024-03-18, 17:09
See if setting dom.max_chrome_script_run_time to 90 helps. I'm guessing it may be terminating the session restore script with the tighter timeout settings when your number of tabs is completely out of scope.
That did it for me!

Since it looks like the default was changed, I added it to my profile's prefs.js manually after testing it on the portable version and CP'ed it from there and everything seems to work as expected on both the portable and my installed Pale Moon.
If anyone else has the same issue, you can add the following line to your prefs.js:
user_pref("dom.max_chrome_script_run_time", 90);

Thanks for taking the time to look into this. :thumbup:

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by therube » 2024-03-18, 17:40

33.0.0, user_pref("browser.slowStartup.averageTime", 1986);
33.0.1, user_pref("browser.slowStartup.averageTime", 1218);

dom.max_script_run_time, reset to default

set, user_pref("dom.always_stop_slow_scripts", false);


33.0.1 & with that:
1.83 GB RAM, I answered the busy script message, once, with Continue, & it took 2 minutes 31 seconds for the GUI to respond, the DDG page to load, a little bit longer for CPU to totally subside, but the browser now works.

Closing PM was successful & resultant sessionstore.js, 1,664,588 bytes.


That did it for me!
Odd that it did not seem to help my end?

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by Moonchild » 2024-03-18, 17:47

therube wrote:
2024-03-18, 17:40
Odd that it did not seem to help my end?
Your hardware may not have been as powerful. if it took over 2 minutes for you then you would have had to increase the timeout even more, to e.g. 180 (3 minutes)
"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

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by Goodydino » 2024-03-18, 18:47

Why use 2000 tabs? Why not just 2000 bookmarks? The browser would be a lot more responsive that way, and bookmarks are very easy to back up.

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by Moonchild » 2024-03-18, 18:58

Goodydino wrote:
2024-03-18, 18:47
Why use 2000 tabs?
"Because they can"

As stated though that is actually out of scope so you can run into these kinds of issues (as well as the inherent risk of losing your entire collection of tabs as I have explained ad nauseam in the past)
"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

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 960
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by billmcct » 2024-03-18, 20:09

Goodydino wrote:
2024-03-18, 18:47
Why use 2000 tabs? Why not just 2000 bookmarks? The browser would be a lot more responsive that way, and bookmarks are very easy to back up.
My thoughts exactly. I don't remember ever having more than 100 open at a time.
However I have close to 4000 bookmarks.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
athenian200
Contributing developer
Contributing developer
Posts: 1537
Joined: 2018-10-28, 19:56
Location: Georgia

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by athenian200 » 2024-03-18, 22:29

I'm kind of surprised there's not a hard-coded limit somewhere in the browser saying that you've exceeded the maximum number of tabs and have to close some existing ones before you can open a new one.

Like, if I were designing this, I would probably have a hard-coded limit of 500 tabs, and say I don't recommend using more than 250. Or something like that. 2000 tabs is something that is so extreme I am surprised it doesn't crash the browser.
"The Athenians, however, represent the unity of these opposites; in them, mind or spirit has emerged from the Theban subjectivity without losing itself in the Spartan objectivity of ethical life. With the Athenians, the rights of the State and of the individual found as perfect a union as was possible at all at the level of the Greek spirit." -- Hegel's philosophy of Mind

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

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by Moonchild » 2024-03-18, 22:58

athenian200 wrote:
2024-03-18, 22:29
I would probably have a hard-coded limit of 500 tabs, and say I don't recommend using more than 250
Mozilla didn't design it this way, and since we've inherited it, we can't really do much about it, as it's be seen as "imposing arbitrary limits" and users would throw an absolute hissy fit.
We don't recommend more than about 200-250 tabs (if you have a powerful enough PC) but if people want to push their luck and take a risk, it's up to them.
"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

User avatar
suzyne
Lunatic
Lunatic
Posts: 364
Joined: 2023-06-28, 22:43
Location: Australia

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by suzyne » 2024-03-19, 00:23

Moonchild wrote:
2024-03-18, 22:58
We don't recommend more than about 200-250 tabs (if you have a powerful enough PC) but if people want to push their luck and take a risk, it's up to them.
Reflecting the Your browser, Your way tag line.

I use Tab Kit 2 for the vertical tabs, and when I start having to scroll that list, which happens with over 35 tabs, I begin to feel uneasy and start closing tabs with no regrets because anything important is bookmarked. I am always astounded when people report keeping more than 100 tabs open! But I guess there isn't only one "right" way to use a browser?
Laptop 1: Windows 10 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.

User avatar
LuftWafflePilot
Fanatic
Fanatic
Posts: 225
Joined: 2021-02-19, 20:46

Re: Pale Moon 33.0.1 doesn't handle large number of tabs as well as earlier versions

Unread post by LuftWafflePilot » 2024-03-19, 19:27

I don't even understand how can you work with 2000 tabs. How do you navigate that shit?
Heck, I don't even have 2000 bookmarks!