32bit Pale Moon 34 out of memory when using bing.com translator

For support with specific websites

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:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
q160765803
Moon lover
Moon lover
Posts: 82
Joined: 2023-04-13, 07:57

32bit Pale Moon 34 out of memory when using bing.com translator

Post by q160765803 » 2026-01-20, 11:38

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.

User avatar
Moonchild
Project founder
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

Post by Moonchild » 2026-01-20, 12:37

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... :P

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

q160765803
Moon lover
Moon lover
Posts: 82
Joined: 2023-04-13, 07:57

Re: 32bit Pale Moon 34 out of memory when using bing.com translator

Post by q160765803 » 2026-01-20, 13:05

Moonchild wrote:
2026-01-20, 12:37
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... :P

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?
It shows "heap-unclassified" in a very large value.
pm34.png
about:support and memory report:

Code: Select all

Application Basics
------------------

Name: Pale Moon
Version: 34.0.0 (32-bit)
Build ID: 20260116223224
Update Channel: release
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:128.0) Gecko/20100101 Goanna/6.8 Firefox/128.0 PaleMoon/34.0.0
OS: Windows_NT 6.1
CPU Capabilities: SSE2 AVX
Safe Mode: false

Extensions
----------

Name: GetEmAll!
Version: 1.2.4
Enabled: true
ID: {4f45ab64-73d7-4bde-b9e6-0922abe8e11a}

Name: uBlock Origin
Version: 1.16.6.1
Enabled: true
ID: uBlock0@raymondhill.net

Graphics
--------

Features
Compositing: Direct3D 11
GPU Accelerated Windows: 1/1 Direct3D 11 (OMTC)
Asynchronous Pan/Zoom: none
WebGL 1 Driver WSI Info: EGL_VENDOR: Google Inc. (adapter LUID: 000000000000eb71) EGL_VERSION: 1.4 (ANGLE 2.1.0.) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses
WebGL 1 Driver Renderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 1650 Direct3D11 vs_5_0 ps_5_0)
WebGL 1 Driver Version: OpenGL ES 2.0 (ANGLE 2.1.0.)
WebGL 1 Driver Extensions: GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_NV_pixel_buffer_object GL_OES_mapbuffer GL_EXT_map_buffer_range GL_EXT_color_buffer_half_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_EXT_texture_rg GL_EXT_texture_compression_dxt1 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_OES_compressed_ETC1_RGB8_texture GL_EXT_sRGB GL_ANGLE_depth_texture GL_OES_depth32 GL_EXT_texture_storage GL_OES_texture_npot GL_EXT_draw_buffers GL_EXT_texture_filter_anisotropic GL_EXT_occlusion_query_boolean GL_NV_fence GL_EXT_disjoint_timer_query GL_EXT_robustness GL_EXT_blend_minmax GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_OES_standard_derivatives GL_EXT_shader_texture_lod GL_EXT_frag_depth GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_EXT_discard_framebuffer GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_NV_EGL_stream_consumer_external GL_EXT_unpack_subimage GL_NV_pack_subimage GL_OES_vertex_array_object GL_KHR_debug GL_ANGLE_lossy_etc_decode GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_sync_query GL_CHROMIUM_copy_texture
WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query MOZ_debug_get OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture
WebGL 2 Driver WSI Info: EGL_VENDOR: Google Inc. (adapter LUID: 000000000000eb71) EGL_VERSION: 1.4 (ANGLE 2.1.0.) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses
WebGL 2 Driver Renderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 1650 Direct3D11 vs_5_0 ps_5_0)
WebGL 2 Driver Version: OpenGL ES 3.0 (ANGLE 2.1.0.)
WebGL 2 Driver Extensions: GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_NV_pixel_buffer_object GL_OES_mapbuffer GL_EXT_map_buffer_range GL_EXT_color_buffer_half_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_EXT_texture_rg GL_EXT_texture_compression_dxt1 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_OES_compressed_ETC1_RGB8_texture GL_EXT_sRGB GL_ANGLE_depth_texture GL_OES_depth32 GL_EXT_texture_storage GL_OES_texture_npot GL_EXT_draw_buffers GL_EXT_texture_filter_anisotropic GL_EXT_occlusion_query_boolean GL_NV_fence GL_EXT_disjoint_timer_query GL_EXT_robustness GL_EXT_blend_minmax GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_OES_standard_derivatives GL_EXT_shader_texture_lod GL_EXT_frag_depth GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_EXT_discard_framebuffer GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_NV_EGL_stream_consumer_external GL_EXT_unpack_subimage GL_NV_pack_subimage GL_EXT_color_buffer_float GL_OES_vertex_array_object GL_KHR_debug GL_ANGLE_lossy_etc_decode GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_sync_query GL_CHROMIUM_copy_texture GL_EXT_texture_norm16
WebGL 2 Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query MOZ_debug_get OES_texture_float_linear WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc
Hardware H264 Decoding: Yes; Using D3D9 API
Audio Backend: wasapi
Direct2D: true
DirectWrite: true (6.2.9200.23115)
GPU #1
Active: Yes
Description: NVIDIA GeForce GTX 1650
Vendor ID: 0x10de
Device ID: 0x1f82
Driver Version: 27.21.14.5206
Driver Date: 8-12-2020
Drivers: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Subsys ID: 132010de
RAM: 4096

Diagnostics
ClearType Parameters: Gamma: 1.8 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 50
AzureCanvasBackend: direct2d 1.1
AzureContentBackend: direct2d 1.1
AzureFallbackCanvasBackend: cairo
ClearType Parameters: Gamma: 1.8 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 50



Important Modified Preferences
------------------------------

browser.cache.disk.capacity: 358400
browser.cache.disk.enable: false
browser.cache.disk.parent_directory: J:\Palemoon-Portable\User\Palemoon\Profiles\Default
browser.cache.disk.smart_size.first_run: false
browser.download.importedFromSqlite: true
browser.download.manager.retention: 1
browser.download.useDownloadDir: false
browser.places.smartBookmarksVersion: 4
browser.startup.homepage: about:blank
browser.startup.homepage_override.buildID: 20260116223224
browser.startup.homepage_override.mstone: 6.8.0
browser.tabs.warnOnClose: false
browser.tabs.warnOnCloseOtherTabs: false
dom.enable_performance_observer: true
extensions.lastAppVersion: 34.0.0
general.useragent.updates.lastupdated: 1768908173334
gfx.canvas.azure.backends: cairo
gfx.content.azure.backends: cairo
gfx.crash-guard.d3d11layers.appVersion: 34.0.0
gfx.crash-guard.d3d11layers.deviceID: 0x0405
gfx.crash-guard.d3d11layers.driverVersion: 8.17.2.14
gfx.crash-guard.d3d11layers.feature-d2d: false
gfx.crash-guard.d3d11layers.feature-d3d11: false
gfx.crash-guard.status.d3d11layers: 2
gfx.crash-guard.status.d3d9video: 2
gfx.direct2d.disabled: true
media.hardware-video-decoding.failed: false
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1768913862
places.history.expiration.transient_current_max_pages: 122334
plugin.expose_full_path: true
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 0
storage.vacuum.last.places.sqlite: 1768913862
ui.osk.debug.keyboardDisplayReason: IKPOS: Touch screen not found.

user.js Preferences
-------------------

Your profile folder contains a user.js file, which includes preferences that were not created by Pale Moon.

Important Locked Preferences
----------------------------

Places Database
---------------

JavaScript
----------

Incremental GC: true

Accessibility
-------------

Activated: false
Prevent Accessibility: 1

Library Versions
----------------

NSPR
Expected minimum version: 4.35
Version in use: 4.35

NSS
Expected minimum version: 3.90.9
Version in use: 3.90.9

NSSSMIME
Expected minimum version: 3.90.9
Version in use: 3.90.9

NSSSSL
Expected minimum version: 3.90.9
Version in use: 3.90.9

NSSUTIL
Expected minimum version: 3.90.9
Version in use: 3.90.9
memory-report.json.gz
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.

User avatar
Moonchild
Project founder
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

Post by Moonchild » 2026-01-20, 13:22

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)
"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

q160765803
Moon lover
Moon lover
Posts: 82
Joined: 2023-04-13, 07:57

Re: 32bit Pale Moon 34 out of memory when using bing.com translator

Post by q160765803 » 2026-01-20, 13:26

Moonchild wrote:
2026-01-20, 13:22
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)
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?

User avatar
Moonchild
Project founder
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

Post by Moonchild » 2026-01-20, 13:47

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.
"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

q160765803
Moon lover
Moon lover
Posts: 82
Joined: 2023-04-13, 07:57

Re: 32bit Pale Moon 34 out of memory when using bing.com translator

Post by q160765803 » 2026-01-20, 13:58

Moonchild wrote:
2026-01-20, 13:47
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.
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.
And if I locally backing out JS PRNG changes, memory usage becomes normal.

User avatar
Moonchild
Project founder
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

Post by Moonchild » 2026-01-20, 14:06

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.
"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

User avatar
Moonchild
Project founder
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

Post by Moonchild » 2026-01-20, 14:08

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...
"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