[macos][local-asr] stable 1.3.18 包缺少 mlx.metallib,点击「加载并测试」进程直接退出(无崩溃报告)

Aperta
#1,098 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, rust, tauri
Ambito
ci-cd, release

Direzione di ricerca

The failing load happens in the vendored MLX code referenced at openless-all/app/src-tauri/vendor/qwen3-asr-rs/mlx-c/mlx/c/stream.cpp:40, so start by checking how the Tauri bundle declares resources (tauri.conf.json / bundling settings) and the macOS release workflow that produces the Homebrew cask. Compare with the v2.0.0-Beta.1 build, which does ship Contents/Resources/mlx.metallib. Done means a rebuilt stable .app contains that file (verify with find OpenLess.app -iname '*.metallib') and the release CI fails when an MLX-enabled bundle is missing it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

macOS stable 1.3.18(Homebrew cask 安装):设置 → 本地模型下载 Qwen3-ASR 0.6B 成功后,点击「加载并测试」应用立即自行退出。不生成任何崩溃报告(~/Library/Logs/DiagnosticReports 无新 .ips,无 jetsam 事件),日志戛然而止。

To Reproduce
  1. brew tap Open-Less/openless https://github.com/Open-Less/openless && brew install --cask openless(1.3.18,ad-hoc 签名,xattr -cr 后正常启动)
  2. 设置 → 本地模型,下载 qwen3-asr-0.6b:下载完成,model.safetensors SHA256 与 HF 官方一致(79d6cbd4…23ea),.openless-asr-ready 标记已写入
  3. 点击「加载并测试」→ 应用秒退
Evidence

终端直接运行二进制捕获 stderr,退出前最后一行:

MLX error: Failed to load the default metallib. library not found library not found library not found library not found  at /Users/runner/work/openless/openless/openless-all/app/src-tauri/vendor/qwen3-asr-rs/mlx-c/mlx/c/stream.cpp:40

包体对比(同一台机器实测):

stable 1.3.18 v2.0.0-Beta.1-tauri
find OpenLess.app -iname "*.metallib" -o -iname "*mlx*" 空 Contents/Resources/mlx.metallib ✅
app 总体积 46 MB 181 MB

即 stable 发行包缺少 MLX 后端必需的 mlx.metallib 资源,但可执行文件内仍编入了 qwen3-asr-rs/mlx-c 调用路径,且失败后进程直接退出而非报错回退。

Device information
  • Type of Mac: MacBook Air, Apple M5 (10C CPU + 8C GPU), 16 GB
  • macOS version: 26 (Tahoe)
  • OpenLess version: 1.3.18 stable(Homebrew cask)
Additional information
  • 若 stable 线不打算支持 MLX 后端,请在 UI 隐藏 MLX 渠道;否则「加载并测试」失败应显示明确错误或回退 C 后端,而不是整个进程自退(自退且无 crash report 对排障非常不友好)。
  • 关联:#1006(验证路径读错配置)。注意 #1058/#1072 的修复合入时间为 9/12、9/13,晚于 v2.0.0-Beta.1 的 tag(9/10),与本条 stable 包缺 metallib 的打包问题是两回事——Beta.1 包内 metallib 是存在的。
  • 建议 release CI 增加 macOS 包内容断言:启用 MLX 后端的构建必须包含 Contents/Resources/mlx.metallib,否则 fail the build。
Lingua principale
Rust
Stelle
3.7k
Fork
349
Merge medio
2g 14h
PR unite (30g)
97

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Open-Less/openless

Tutte le issue di Open-Less/openless

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.