We are currently observing many renderer crashes occurring in text encode.Encoding Standard (whatwg.org)
This is because DOMArrayBuffer::Create is currently used to create a buffer, and when memory allocation fails, renderer process crashes. The reasons for memory allocation failure are unclear and not solely due to allocating excessively large memory.Hi there,
Have we done any sort of web compatibility analysis of what this
change implies? A broken page might be a better choice than a
crashed tab, but it's hard to know without any sense of the
potential impact of this change. Also, is there a plan to specify
this behavior? What's the interop situation?
thanks,
Mike
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f4cfdc62-707f-4d21-80d5-43ed37ce52fan%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c6b00d44-599f-47bf-be3d-9e977681b827%40chromium.org.
Usually specs don't cover what happens when you run out of memory, as implied by https://infra.spec.whatwg.org/#algorithm-limits. I think this is fine. I'm interested in what other browsers do, but it's hard to test unless you have a VM handy.
--On Fri, 2 Aug 2024 at 01:17, Mike Taylor <mike...@chromium.org> wrote:--Hi there,
Have we done any sort of web compatibility analysis of what this change implies? A broken page might be a better choice than a crashed tab, but it's hard to know without any sense of the potential impact of this change. Also, is there a plan to specify this behavior? What's the interop situation?
thanks,
Mike
On 8/1/24 4:38 AM, 'xu ms' via blink-dev wrote:
Contact emails: xuzh...@microsoft.com
Summary:We are currently observing many renderer crashes occurring in text encode.Encoding Standard (whatwg.org)
This is because DOMArrayBuffer::Create is currently used to create a buffer, and when memory allocation fails, renderer process crashes. The reasons for memory allocation failure are unclear and not solely due to allocating excessively large memory.
Therefore, we want to change the logic here so that when memory allocation fails, a DOMException is thrown from text encode instead of crashing.--
Blink component: Blink>TextEncoding
Tracking bug:[OOM] Is it a real OOM for blink::DOMArrayBuffer::Create? [355018938] - Chromium
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f4cfdc62-707f-4d21-80d5-43ed37ce52fan%40chromium.org.
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c6b00d44-599f-47bf-be3d-9e977681b827%40chromium.org.
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAC_ixdwDfGZQgUNP7HSkU03heC8VG2Zy8fqhJJWzxDerV1i8zA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOmohS%2Bcb1M4gjXTbJ-Hyv3DDpBbxFU6-U4gyZZZnxmOffvqaA%40mail.gmail.com.
Could it be a bug in the TextEncoding that is asking for a very large allocation size?