streamd v0.2.3: fix NRE Spectre crash under daemon (Linux PTY)
All checks were successful
release / build-and-upload (push) Successful in 6m56s

Wrap N_m3u8DL-RE with util-linux script so Spectre gets a real TTY; drop
subtitles; pin COLUMNS/LINES; kill process group on stop. Fixes immediate
'downloader exited before any media arrived' on serve start.
This commit is contained in:
404errordeveloper 2026-10-10 19:54:41 +02:00
parent a091922efa
commit 5b6f38c9cf
5 changed files with 235 additions and 32 deletions

46
docs/releases/v0.2.3.md Normal file
View file

@ -0,0 +1,46 @@
# Streamd v0.2.3
Host patch after v0.2.2. Retargets the rolling **`stable`** channel.
## Highlights
### NRE Spectre crash under daemon (Linux)
- **Symptom:** `downloader exited before any media arrived` within ~1s; log showed
`System.ArgumentException` / `Spectre.Console.LiveRenderable.RemoveRange`
- **Cause:** N_m3u8DL-RE forces Spectre live UI when stdout is redirected. Under
`streamd serve` (no TTY) console width is 0 and the progress thread crashes
- **Fix:** On Linux, wrap NRE with util-linux `script -q -a -f` so it gets a real
PTY; drop subtitle tracks (`-ds for=all`); pin `COLUMNS`/`LINES`/`TERM`; kill
the process group on stop
- Log path in errors clarified as `data/logs/<name>-nre.log`
### Verified
- vm-2085: `rte` + `rte-jr` stayed **ok** after deploy (40s+ uptime)
## Known limits
- **BBC Live from datacenter IPs** can still get CDN **403**. Needs UK residential egress.
- Requires `script` (util-linux) on the host PATH for the PTY path; falls back to
plain file redirect if missing (may still hit Spectre on some hosts)
## Assets
| Asset | Platform |
|---|---|
| `streamd-windows-amd64.exe` | Windows x86_64 |
| `streamd-windows-arm64.exe` | Windows ARM64 |
| `streamd-linux-amd64` | Linux x86_64 |
| `streamd-linux-arm64` | Linux ARM64 |
| `streamd-darwin-amd64` | macOS Intel |
| `streamd-darwin-arm64` | macOS Apple Silicon |
| `proxy-android-arm64` | On-device MITM |
| `SHA256SUMS.txt` | Checksums |
Built with `CGO_ENABLED=0`. Provider zips remain on separate **`modules-v*`** releases.
```bash
curl -fL -o streamd \
"https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/download/stable/streamd-linux-amd64"
chmod +x streamd
./streamd serve update # or: stop → replace → start
```