Upon investigation, it looks like this is an oom ... the site has a font whose decompressed size is 17mb (which OOMs the 16MB sandbox default on 32-bit platforms) 1. this call here https://searchfox.org/mozilla-central/source/gfx/ots/RLBoxWOFF2Host.cpp#170 passes in a decompressed size of 17mb 2. this causes this malloc in the sandbox to fail https://searchfox.org/mozilla-central/source/modules/woff2/RLBoxWOFF2Sandbox.cpp#15 We should try to estimate the size of the sandbox needed and create a sandbox of that size. Unfortunately, this has 2 issues This complicates the threadpool impl The way to estimate the decompressed size (which is actually done in the same file https://searchfox.org/mozilla-central/source/gfx/ots/RLBoxWOFF2Host.cpp#152) does this by calling another woff2 function for which you already need a sandbox Working on a fix
Bug 1744460 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Upon investigation, it looks like this is an oom ... the site has a font whose decompressed size is 17mb (which OOMs the 16MB sandbox default on 32-bit platforms) 1. this call here https://searchfox.org/mozilla-central/source/gfx/ots/RLBoxWOFF2Host.cpp#170 passes in a decompressed size of 17mb 2. this causes this malloc in the sandbox to fail https://searchfox.org/mozilla-central/source/modules/woff2/RLBoxWOFF2Sandbox.cpp#15 We should try to estimate the size of the sandbox needed and create a sandbox of that size. The way to estimate the decompressed size (which is actually done in the same file https://searchfox.org/mozilla-central/source/gfx/ots/RLBoxWOFF2Host.cpp#152) is shown by another woff2 function. We need to do this estimation outside the sandbox and compute the estimate before sandbox creation Working on a fix
Upon investigation, it looks like this is an oom ... this happened when decompressing a font whose decompressed size is 17mb (which OOMs the 16MB sandbox default on 32-bit platforms) 1. this call here https://searchfox.org/mozilla-central/source/gfx/ots/RLBoxWOFF2Host.cpp#170 passes in a decompressed size of 17mb 2. this causes this malloc in the sandbox to fail https://searchfox.org/mozilla-central/source/modules/woff2/RLBoxWOFF2Sandbox.cpp#15 We should try to estimate the size of the sandbox needed and create a sandbox of that size. The way to estimate the decompressed size (which is actually done in the same file https://searchfox.org/mozilla-central/source/gfx/ots/RLBoxWOFF2Host.cpp#152) is shown by another woff2 function. We need to do this estimation outside the sandbox and compute the estimate before sandbox creation Working on a fix