termux / proot-distro

An utility for managing installations of the Linux distributions in Termux.
GNU General Public License v3.0
1.85k stars 216 forks source link

[Bug]: update-locale: Error: invalid locale settings: LANG=en_US.UTF-8 #448

Closed pikriawan closed 2 months ago

pikriawan commented 2 months ago

Problem description

Generating locales (this might take a while)... en_US.UTF-8...E2024-09-14T11:32:01.377376:blink/memorymalloc.c:974:28327 mmap(virt=40143b1000, size=4096, flags=0x1, fd=4, offset=0xfd47000) crisis: ENOMEM unrecoverable mmap() crisis: see log for further details done Generation complete. *** update-locale: Error: invalid locale settings: LANG=en_US.UTF-8

What steps will reproduce the bug?

Install a distribution with proot-distro with blink as emulator

export PROOT_DISTRO_X64_EMULATOR=BLINK
DISTRO_ARCH=x86_64 proot-distro install debian

What is the expected behavior?

No response

Biswa96 commented 2 months ago

ENOMEM error means that there is not enough space or memory to be allocated.

sylirre commented 2 months ago

Not necessary related to the lack of memory.

Actually this is a known issue of blink on Android: https://github.com/jart/blink/issues/165

Use of QEMU user-mode is preferred. The last test I did shows that QEMU has higher performance than blink: https://github.com/termux/termux-packages/pull/18573#issuecomment-1831642770.