32bit Pale Moon 34 out of memory when using bing.com translator
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.
-
q160765803
- Moon lover

- Posts: 82
- Joined: 2023-04-13, 07:57
32bit Pale Moon 34 out of memory when using bing.com translator
32bit Pale Moon 34's memory usage goes very high and sometimes crashes when using https://www.bing.com/translator
I suspect https://repo.palemoon.org/MoonchildProd ... ssues/2895 causing this problem.
I suspect https://repo.palemoon.org/MoonchildProd ... ssues/2895 causing this problem.
-
Moonchild
- Project founder

- Posts: 38825
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
I tested this and do not see any out of order memory usage in Microsoft's translator in 32-bit 34.0.0 release binaries.
I'm also not sure why a translator would make extensive use of a random number generator to the point of causing resource issues...
Can you provide an about:memory dump of your system displaying the problem, and can you also include your troubleshooting information so we can see what environment you are working in?
I'm also not sure why a translator would make extensive use of a random number generator to the point of causing resource issues...
Can you provide an about:memory dump of your system displaying the problem, and can you also include your troubleshooting information so we can see what environment you are working in?
"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: 82
- Joined: 2023-04-13, 07:57
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
It shows "heap-unclassified" in a very large value. about:support and memory report:Moonchild wrote: ↑2026-01-20, 12:37I tested this and do not see any out of order memory usage in Microsoft's translator in 32-bit 34.0.0 release binaries.
I'm also not sure why a translator would make extensive use of a random number generator to the point of causing resource issues...
Can you provide an about:memory dump of your system displaying the problem, and can you also include your troubleshooting information so we can see what environment you are working in?
You do not have the required permissions to view the files attached to this post.
Last edited by q160765803 on 2026-01-20, 13:42, edited 1 time in total.
-
Moonchild
- Project founder

- Posts: 38825
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
The PRNG does not touch the heap. It makes no sense that this change would cause heap memory to inflate.
Please include an about:memory report (measure and save)
Please include an about:memory report (measure and save)
"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: 82
- Joined: 2023-04-13, 07:57
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
I did included it in "hide" section.
And for the heap memory, I wonder if 32bit is allocating too many JIT VM registers that makes javascript engine to allocate more memory?
-
Moonchild
- Project founder

- Posts: 38825
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
Ah sorry I missed the inclusion. (unfortunately it doesn't really give any pointers)
In the meantime I've been using a debugger because I was able to intermittently reproduce it if I set the target language to Chinese. There seems to be a lot of memory allocation in mozilla::gfx::CreatePartialBitmapForSurface, which makes me wonder if it's one of the [gfx] DiD patches I ported from Mozilla not playing nice with what we have, since that landed really close in time to the PRNG patches. So maybe 84d42d8177aaa17b3dbba0f6fbf33fb3b64870af or 9b52703451069f461e40752e53159149ba8e7c8f + 195251fc127c1b79cab8585080ffea3d959d398b. Maybe you can help check these?
Closing the tab releases all of it cleanly, by the looks of it, which wouldn't necessarily be the case if it was a JIT issue.
In the meantime I've been using a debugger because I was able to intermittently reproduce it if I set the target language to Chinese. There seems to be a lot of memory allocation in mozilla::gfx::CreatePartialBitmapForSurface, which makes me wonder if it's one of the [gfx] DiD patches I ported from Mozilla not playing nice with what we have, since that landed really close in time to the PRNG patches. So maybe 84d42d8177aaa17b3dbba0f6fbf33fb3b64870af or 9b52703451069f461e40752e53159149ba8e7c8f + 195251fc127c1b79cab8585080ffea3d959d398b. Maybe you can help check these?
Closing the tab releases all of it cleanly, by the looks of it, which wouldn't necessarily be the case if it was a JIT issue.
"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: 82
- Joined: 2023-04-13, 07:57
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
I suspect JS one because it seems that it doesn't happen in 64bit Pale Moon and when I tried to make own build to debug it when it starts allocating more memory and it breaks in js::BacktrackingAllocator.Moonchild wrote: ↑2026-01-20, 13:47Ah sorry I missed the inclusion. (unfortunately it doesn't really give any pointers)
In the meantime I've been using a debugger because I was able to intermittently reproduce it if I set the target language to Chinese. There seems to be a lot of memory allocation in mozilla::gfx::CreatePartialBitmapForSurface, which makes me wonder if it's one of the [gfx] DiD patches I ported from Mozilla not playing nice with what we have, since that landed really close in time to the PRNG patches. So maybe 84d42d8177aaa17b3dbba0f6fbf33fb3b64870af or 9b52703451069f461e40752e53159149ba8e7c8f + 195251fc127c1b79cab8585080ffea3d959d398b. Maybe you can help check these?
Closing the tab releases all of it cleanly, by the looks of it, which wouldn't necessarily be the case if it was a JIT issue.
And if I locally backing out JS PRNG changes, memory usage becomes normal.
-
Moonchild
- Project founder

- Posts: 38825
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
Once again it doesn't seem to make any logical sense for it to touch the heap at all...
And it doesn't explain at all why I see these memory allocations coming from the gfx subsystem clear as day - there isn't anything in the stack touching the JS in the memory hungry call-chains.
And it doesn't explain at all why I see these memory allocations coming from the gfx subsystem clear as day - there isn't anything in the stack touching the JS in the memory hungry call-chains.
"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: 38825
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: 32bit Pale Moon 34 out of memory when using bing.com translator
OK. disabling JIT avoids the memory inflation so it really has to be something with the JIT implementation then.
Maybe I can rewrite it to use fewer registers... that's gonna be a puzzle... otherwise I have to revert to XorShift128+ for 32-bit builds. I'd rather avoid that because it would make for less consistent behaviour across architectures...
Maybe I can rewrite it to use fewer registers... that's gonna be a puzzle... otherwise I have to revert to XorShift128+ for 32-bit builds. I'd rather avoid that because it would make for less consistent behaviour across architectures...
"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