Javet icon indicating copy to clipboard operation
Javet copied to clipboard

V8 i18n Out of memory

Open eloyleonardo opened this issue 2 months ago • 3 comments

When i do the node version the code runs smoothly (i pushed the node version), but when i run the v8 version the same code gives a out of memory exception

I made a simple reproduction repository available in https://github.com/eloyleonardo/javet-android-oom.

I havent tried the mac or linux version the check if the problems ocurr, i will do my best try later. But I think that this repository will be enough .

eloyleonardo avatar Oct 13 '25 14:10 eloyleonardo

Could you be more specific? What it does? How long it takes to get the OOM?

caoccao avatar Oct 13 '25 17:10 caoccao

I my usage lookis like the intl cause this.

const date = new Date(Date.UTC(2020, 11, 20, 3, 23, 16, 738));
new Intl.DateTimeFormat("en-US").format(date);

the example i run on android and v8 i got an oom error but this doenst happen on node version.

eloyleonardo avatar Oct 14 '25 03:10 eloyleonardo

The icu file is critical. Which one are you using? If V8 gets a wrong icu file, OOM will occur.

caoccao avatar Oct 14 '25 06:10 caoccao