Yeah, I don't know what he meant either. Maybe the link I gave you would help... I don't know.
Palemoon crashes when accessing Devuan site
Moderator: trava90
Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
frostknight
- Keeps coming back

- Posts: 950
- Joined: 2022-08-10, 02:25
Re: Palemoon crashes when accessing Devuan site
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!
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!
-
Kris_88
- Board Warrior

- Posts: 1173
- Joined: 2021-01-26, 11:18
Re: Palemoon crashes when accessing Devuan site
Generally speaking, nothing surprising...
Anubis creates a worker (and if it can, then several at the same time) and in this worker in an infinite loop calculates SHA-256 hashes using the crypto-API. And naturally, all this is built on promises. And of course, it takes up 100% of the CPU for a long time. And it doesn't care that the computer has other tasks and the browser has other tabs. In short, sorry, but shit is shit.
At least, if I open only one tab with Anubis and do not touch the browser with my hands, then after 2 minutes the test ends and the site opens. But if I somehow interfere with the browser and force it to do something else, then it crashes. And in this case, anything can be the cause - either the GC does not have time to free up memory, or fragmentation grows, or something like that. This is not a normal operating mode for a browser.
Anubis creates a worker (and if it can, then several at the same time) and in this worker in an infinite loop calculates SHA-256 hashes using the crypto-API. And naturally, all this is built on promises. And of course, it takes up 100% of the CPU for a long time. And it doesn't care that the computer has other tasks and the browser has other tabs. In short, sorry, but shit is shit.
At least, if I open only one tab with Anubis and do not touch the browser with my hands, then after 2 minutes the test ends and the site opens. But if I somehow interfere with the browser and force it to do something else, then it crashes. And in this case, anything can be the cause - either the GC does not have time to free up memory, or fragmentation grows, or something like that. This is not a normal operating mode for a browser.
-
Massacre
- Fanatic

- Posts: 175
- Joined: 2020-05-01, 13:16
Re: Palemoon crashes when accessing Devuan site
Anubis is definitely crashing Pale Moon (32-bit) when alt-tabbing out of it. Please add mitigation ASAP. You can test it on your own repo.
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
I don't think it's possible to mitigate this on our end. If you run out of memory, then you run out of memory - end of story. At that point, the only 2 things the browser can do is break or exit. We choose to exit in a safe way.
Anubis does state this is supposed to be a temporary solution - but in the interim this should be handled better. I'll open an issue on their repo and see what they say.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
q160765803
- Moon lover

- Posts: 92
- Joined: 2023-04-13, 07:57
Re: Palemoon crashes when accessing Devuan site
I wonder if we can't limit how many memory can be allocated by user-side javascript?Moonchild wrote: ↑2025-07-21, 07:24I don't think it's possible to mitigate this on our end. If you run out of memory, then you run out of memory - end of story. At that point, the only 2 things the browser can do is break or exit. We choose to exit in a safe way.
Anubis does state this is supposed to be a temporary solution - but in the interim this should be handled better. I'll open an issue on their repo and see what they say.
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
Well, there's javascript.options.main_thread_stack_quota_cap, but I don't really know the exact effects of that pref.
You could also try to force more gc on memory pressure with javascript.options.gc_on_memory_pressure, see if that helps any.
You could also try to force more gc on memory pressure with javascript.options.gc_on_memory_pressure, see if that helps any.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Massacre
- Fanatic

- Posts: 175
- Joined: 2020-05-01, 13:16
Re: Palemoon crashes when accessing Devuan site
Don't allow JS engine to allocate too much memory and force restart it (instead of entire browser) when it happens? Or it is not possible in current architecture at all?
It's much better to just stop all website JS and allow to shutdown gracefully if it could not be restarted than just crash with possible data loss (corrupted profile).
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
it's not possible because the same JS engine drives the browser's application processing. It's not possible to perform a clean shutdown because it need a working JS engine.
I'm all for halting scripting on a page if it misbehaves, but that's not always possible, especially with how it's not in an interpreted state (the stack exhaustion occurs in one of the runtime components linked to the baseline compiler, as far as I know -- so to catch that you'd have to disable baseline compilation, and that would literally slow the engine down to unusable speeds).
I'm open to suggestions/patches to help mitigate this but it'll be difficult to do without killing browser usability.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Kris_88
- Board Warrior

- Posts: 1173
- Joined: 2021-01-26, 11:18
Re: Palemoon crashes when accessing Devuan site
I haven't fully figured out the problem, and I don't have much time, but if we remove the line "postMessage(nonce);", the browser works reliably and the check goes fine, and eventually the site page opens. I couldn't get the crash.
https://github.com/TecharoHQ/anubis/blo ... k.mjs#L120
And the same postMessage is in the second module, but this module seems not to be used on the Devuan site:
https://github.com/TecharoHQ/anubis/blo ... ow.mjs#L74
But during the check the progress indicator is not updated, since the deleted postMessage is used to periodically update it. I haven't figured out how Anubis receives messages from the worker, maybe the real cause of the problem is there.
Maybe this will help someone...
https://github.com/TecharoHQ/anubis/blo ... k.mjs#L120
And the same postMessage is in the second module, but this module seems not to be used on the Devuan site:
https://github.com/TecharoHQ/anubis/blo ... ow.mjs#L74
But during the check the progress indicator is not updated, since the deleted postMessage is used to periodically update it. I haven't figured out how Anubis receives messages from the worker, maybe the real cause of the problem is there.
Maybe this will help someone...
-
Massacre
- Fanatic

- Posts: 175
- Joined: 2020-05-01, 13:16
Re: Palemoon crashes when accessing Devuan site
Then, find a way to isolate browser core (trusted) from page-related (untrusted) scripts? Separate memory space (including stack), for example?
For now it looks like one huge security vulnerability - external scripts can crash the browser in a guaranteed way...
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
Malicious javascript can DoS browsers. it's a reality that has been true for decades.
Thanks, I looked into it and it does seem like they're doing something weird with their check there:
Code: Select all
// send a progress update every 1024 iterations. since each thread checks
// separate values, one simple way to do this is by bit masking the
// nonce for multiples of 1024. unfortunately, if the number of threads
// is not prime, only some of the threads will be sending the status
// update and they will get behind the others. this is slightly more
// complicated but ensures an even distribution between threads.
if (
(nonce > oldNonce) | 1023 && // we've wrapped past 1024
(nonce >> 10) % threads === threadId // and it's our turn
) {
postMessage(nonce);
}They set oldNonce to nonce, then increase the nonce.
if (nonce>oldNonce)|1023 is always going to be 1023, meaning it's always true.
(nonce >> 10) % threads is going to be the same number every block of 1024.
So, it looks like it's absolutely hammering the postmessage each iteration on the same worker...
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Kris_88
- Board Warrior

- Posts: 1173
- Joined: 2021-01-26, 11:18
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
Looks like they'll work on fixing it. Thanks for pointing out the general area to look in and what ultimately caused the overflow symptom 
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
TheRealXeIaso
- New to the forum

- Posts: 1
- Joined: 2025-07-21, 21:52
Re: Palemoon crashes when accessing Devuan site
Hi, main developer of Anubis here.
This is fixed in https://github.com/TecharoHQ/anubis/pull/880/. I will be tagging a release once this merges and my private test suite passes.
I think that this is the ultimate root cause of some of the weird and irreproducible issues that Pale Moon users have reported with Anubis. I was never able to reproduce them on my system because I use 64 bit hardware.
This fix is significant enough that I'm going to tag a release for this and post something on the blog about it. I would like to add automated tests for Pale Moon so that something like this never happens again. Is it possible to build a version of Pale Moon that is compatible with browser automation testing tools like Playwright or expose the Chrome Debugging Protocol so I can have it run at CI time?
Thank you all for your help. I'm sorry things have not been ideal.
This is fixed in https://github.com/TecharoHQ/anubis/pull/880/. I will be tagging a release once this merges and my private test suite passes.
I think that this is the ultimate root cause of some of the weird and irreproducible issues that Pale Moon users have reported with Anubis. I was never able to reproduce them on my system because I use 64 bit hardware.
This fix is significant enough that I'm going to tag a release for this and post something on the blog about it. I would like to add automated tests for Pale Moon so that something like this never happens again. Is it possible to build a version of Pale Moon that is compatible with browser automation testing tools like Playwright or expose the Chrome Debugging Protocol so I can have it run at CI time?
Thank you all for your help. I'm sorry things have not been ideal.
-
Massacre
- Fanatic

- Posts: 175
- Joined: 2020-05-01, 13:16
Re: Palemoon crashes when accessing Devuan site
It does not depend on hardware. Actually, on Windows, 32-bit version is preferred to 64-bit because of being more compatible (plugins) and using less memory overall. I use some kind of Chromium for "web applications" anyway, and don't expect such abuse of system resources by external scripts.TheRealXeIaso wrote: ↑2025-07-21, 21:58I think that this is the ultimate root cause of some of the weird and irreproducible issues that Pale Moon users have reported with Anubis. I was never able to reproduce them on my system because I use 64 bit hardware.
-
frostknight
- Keeps coming back

- Posts: 950
- Joined: 2022-08-10, 02:25
Re: Palemoon crashes when accessing Devuan site
I have seen it happen on my end too and I use 64 bit. However the only one that does this to me currently is git.devuan.orgTheRealXeIaso wrote: ↑2025-07-21, 21:58This is fixed in https://github.com/TecharoHQ/anubis/pull/880/. I will be tagging a release once this merges and my private test suite passes.
I think that this is the ultimate root cause of some of the weird and irreproducible issues that Pale Moon users have reported with Anubis. I was never able to reproduce them on my system because I use 64 bit hardware.
Not sure what is different about there implementation than say...
https://invidious.nerdvpn.de/
Its rather weird
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!
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!
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
64-bit is preferred to use with the "modern" web because of 32-bit limitations on overall memory, and there are some issues with the 32-bit target compiler that are a bit subtle but have been causing instability on old hardware. Unless you specifically have 32-bit only NPAPI plugins you need to use, I always do recommend using the version that matches your hardware.
It's definitely possible but exceedingly less likely to happen. And I'm guessing Firefox has dodged this bullet because of the inherent slowness of IPC and asynchronous multi-process delays.
They seem to set their config rather aggressively so it needs to perform more work for the challenge to pass, which makes it more likely that the message queue overflows with the bug that was there.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Massacre
- Fanatic

- Posts: 175
- Joined: 2020-05-01, 13:16
Re: Palemoon crashes when accessing Devuan site
This is usually comes with very sluggish "modern" javascript that runs much better in some Chromium, so I prefer to not use "modern" web in Pale Moon (examples: youtube, "new" reddit interface, *.fandom.com)
That's bad. Which specific hardware? Any workarounds?and there are some issues with the 32-bit target compiler that are a bit subtle but have been causing instability on old hardware.
Don't forget about forced AVX in official 64-bit builds.Unless you specifically have 32-bit only NPAPI plugins you need to use, I always do recommend using the version that matches your hardware
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
See reports of 32-bit crashes on this forum. I'm using a slightly older toolchain for 32-bit official builds to avoid this.
Insert dead horse beating remark here
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Moonchild
- Project founder

- Posts: 39080
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Palemoon crashes when accessing Devuan site
Unfortunately there isn't a ready way to run CI on Pale Moon. We explicitly don't support WebDriver in UXP, and our inherited Mozilla code for automated tests is not designed to test web compat (they are unit tests and reftests for browser internals). Taskcluster CI also depends on Mozilla infrastructure which we obviously don't have (nor have the resources for), so I'm afraid it'll be kludgy no matter what.TheRealXeIaso wrote: ↑2025-07-21, 21:58Is it possible to build a version of Pale Moon that is compatible with browser automation testing tools like Playwright or expose the Chrome Debugging Protocol so I can have it run at CI time?
Your best bet is to set up an environment and launch Pale Moon by passing the URL to visit on the command-line, and observe.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite