soimort / translate-shell

:speech_balloon: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.
https://www.soimort.org/translate-shell
The Unlicense
6.85k stars 388 forks source link

Gawk error while running translate-shell from Termux #453

Open TunnelThruTime opened 1 year ago

TunnelThruTime commented 1 year ago

I've run into a problem trying to Execute the binary from termux on android 11.

which trans /data/data/com.termux/files/usr/bin/trans ➜ ~ trans fr:en gawk: /proc/self/fd/63:262: fatal error: internal error /data/data/com.termux/files/usr/bin/trans: line 5782: 5357 Aborted gawk -f <(echo -E "$TRANS_PROGRAM") - "$@"

I can't remember how I installed translate-shell on My phone but i've run into this error almost Everytime I run the cli. My gawk version is

➜ ~ gawk --version GNU Awk 5.1.1, API: 3.1 (GNU MPFR 4.1.0, GNU MP 6.2.1)

Any help would be greatly appreciated.

mark2185 commented 1 year ago

I get this error on a desktop as well, it happens on the second translation, which causes the program to crash.

$> gawk --version
GNU Awk 5.2.0, API 3.2, PMA Avon 7, (GNU MPFR 4.1.0-p13, GNU MP 6.2.1)
Copyright (C) 1989, 1991-2022 Free Software Foundation.

This is how it crashes (I input 1, and then 2):

$> trans         
1
1

See also
    1,2-naphthoquinone, 1,4-naphthoquinone
2
gawk: /dev/fd/63:93: fatal: internal error: file interpret.h, line 254: unexpected parameter type Node_val

I tried with latest master, but it still happens. Should I bisect?

baroxyton commented 1 year ago

I get this error too on the second translation, on endeavourOS

AgentCasey commented 1 year ago

I've been experiencing the same problem with trans on my Debian box, my Arch Linux box, newly installed Raspberry OS box for about two weeks now. I suspect that we'll just have to wait this one out for a while. Good luck everyone. Thanks.

soimort commented 1 year ago

This issue is for tracking the gawk error on Termux on Android only. If you are on a desktop Linux, please open a separate issue for this, attaching the output of trans -V.