Model loading can hang with no way out

Aperta
#158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start with load_model in desktop/src-tauri/src/lib.rs, where Engine::load runs on the blocking pool, and trace how the engine lock is taken and held around it. Check how the recorder's "Warming up model" state is set and cleared. Done when a load that never returns produces a clear failure after a bound, the engine lock is released, and a later dictation can proceed.

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

Descrizione

bug priority:P2

From the SpeakType 1 audit in PR #103 by @schallau, where a hung model load left the recorder saying "Warming up model" forever.

SpeakType 2 has the same shape of problem: Engine::load runs on the blocking pool with no time limit (desktop/src-tauri/src/lib.rs, load_model), so a load that never returns leaves the pill warming and the engine lock held, and every later dictation waits behind it.

Worth doing:

  • Put a bound on loading, and report a clear failure when it passes.
  • Make sure the engine lock isn't held forever if a load wedges.
  • Say something useful the first time a large model is loaded, since that genuinely takes a while.
Lingua principale
Swift
Stelle
540
Fork
74
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 karansinghgit/speaktype

Tutte le issue di karansinghgit/speaktype

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.