Skip to content

[Bug]: Android device panel shows "No video received" instead of the hub's "ffmpeg not found" error #14278

Description

@charsijawaan

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. On Linux, run the T3 server with ffmpeg unavailable to the device hub. Without uninstalling ffmpeg: set SERVE_EMU_FFMPEG=/nonexistent/ffmpeg for the server (e.g. a systemd drop-in for the t3 service) and restart it.
  2. Open the Device panel and select an Android emulator.
  3. Wait about 15 seconds.

Expected behavior

The panel says ffmpeg is missing or unusable, the reason the device hub already reports.

Actual behavior

The panel shows "No video received from the device. Reconnect to try again." Nothing in the panel or the server trace mentions ffmpeg.

The hub's Android API does report the cause:

GET /vendor/serve-emu/api/stream-mode?device=emulator-5554 → 503
{"ok":false,"error":{"code":"service_unavailable","message":"ffmpeg not found or unusable (tried \"/nonexistent/ffmpeg\"): spawn /nonexistent/ffmpeg ENOENT"}}

In packages/client-runtime/src/device/stream.ts, a non-OK video response becomes throw new Error(`stream ${response.status}`) without reading the body (line 657 on main). The panel then falls through to the first-frame timeout (FIRST_FRAME_TIMEOUT_MS, 15s) and shows the generic message.

Impact

Minor bug or occasional failure

Version or commit

t3 v0.0.43-nightly.20260927.2344 (bundled expo-device-hub 0.12.0)

Environment

Ubuntu 26.04.1 LTS, T3 background service (systemd), Node 24.21.0, Android emulator 37.1.11

Logs or stack traces

GET /vendor/serve-emu/api/stream-mode?device=emulator-5554 -> 503
{"ok":false,"error":{"code":"service_unavailable","message":"ffmpeg not found or unusable (tried \"/nonexistent/ffmpeg\"): spawn /nonexistent/ffmpeg ENOENT"}}
GET /vendor/serve-emu/api/stream-settings?device=emulator-5554
{"ok":false,"error":"serve-emu start for emulator-5554 is cooling down after a failure"}

Screenshots, recordings, or supporting files

No response

Workaround

Install ffmpeg (e.g. sudo apt install ffmpeg) and restart the T3 server. Investigated with Claude Code.

Activity

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions