Skip to content

ORT panic crashes server when libonnxruntime.dylib missing #792

Closed

Description

@joelteply

Problem

When libonnxruntime.dylib is not found, ORT panics on a tokio worker thread instead of returning an error. This crashes TTS/STT initialization and can poison the tokio runtime.

thread 'tokio-rt-worker' panicked at ort-2.0.0-rc.11/src/lib.rs:191:41:
Failed to load ONNX Runtime dylib

Fix

Wrap TTS/STT initialization in tokio::task::spawn so panics are caught as JoinError. Voice features degrade gracefully — core stays alive.

Status

Fix committed on fix/stability-ipc-events (216bdd2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions