Skip to content

[Translator API] Linux: translation service aborts under the sandbox (not mono-threaded), and wrong language packs are downloaded #1424

Open

Description

@alcaann

What happened?

On Linux, the Translator API never works, in Edge stable and Edge Dev. There seem to be two bugs.

1. The translation service aborts under the Linux sandbox. Even when the correct pack downloads (af→en fetches en-af), create() never resolves. The page console shows "The translation service crashed.", and every later create() rejects with NotSupportedError: Unable to create translator for the given source and target language. With --enable-logging=stderr --v=1, the OnDeviceTranslationService utility process logs:

WARNING:services/on_device_model/ml/edge_onnxruntime_genai/oga_api.cc:116] Edge LLM: Loaded libonnxruntime.so
WARNING:services/on_device_model/ml/edge_onnxruntime_genai/oga_api.cc:211] Edge LLM: Set DawnProcTable on inbox ORT
WARNING:services/on_device_model/ml/edge_onnxruntime_genai/oga_api.cc:116] Edge LLM: Loaded libonnxruntime-genai.so
ERROR:sandbox/policy/linux/sandbox_linux.cc:394] InitializeSandbox() called with multiple threads in process utility. Try waiting for /proc to be updated.
FATAL:sandbox/linux/services/thread_helpers.cc:104] Current process is not mono-threaded! (iterations: 30)

So the pre-sandbox init (edge_presandbox_init.cc) loads ORT and starts threads before InitializeSandbox(), which requires a single-threaded process on Linux. With --no-sandbox (diagnosis only) the service still crashes about 0.7 s after loading ORT, with no log message.

2. Wrong language pack for most languages. Each pair was tested in a fresh profile: af→en downloads en-af and zh→en downloads en-zh, but de→en, no→en and nb→en all download en-af, and no→es downloaded en-ca. availability() still returns "downloadable" for these pairs. edge://on-device-translation-internals lists only 18 packs: en-af, am, ar, as, awa, bas, bsb, ca, ceb, cy, el, et, ha, iu, km, ln, tk, zh.

Your Translator API playground fails the same way. Chrome on the same machine works.

Expected: Edge downloads the pack for the requested pair, create() resolves, and translation works.

Device performance class

Very Low (an RTX 2060 Mobile, so Edge may not be detecting the GPU on Linux). Setting #edge-llm-on-device-model-performance-param to "Enabled BypassPerfRequirement" changes nothing.

Is translation model downloaded?

Yes, but see bug 2. Edge Dev logs "Edge Translate Kit Language Pack component ready" and "Edge LLM: runtime component ready". In Edge stable, the EdgeLLMRuntime folder ends up empty: VerifyInstallation runs but the runtime never reports ready.

Edge channel and version

Edge Stable 148.0.3967.83, Edge Dev 157.0.4329.0. Both behave the same.

Device information

Ubuntu 24.04.4 LTS, Linux 6.8.0-147-generic, x64. 12 threads, 15 GB RAM. Intel UHD Graphics 630 + NVIDIA GeForce RTX 2060 Mobile.

Activity

  1. LuisPicoES commented on Nov 9, 2026

    @LuisPicoES

    Confirming on a second machine: Ubuntu 26.04.1 LTS, Edge 157.0.4341.42 (x86_64, [stable/dev]). Same behaviour: playground crash / “The translation service crashed” in the console / create() never resolving. edge://on-device-translation-internals/ lists the same 18 packs (en-af … en-zh), with only en-ca installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions