Skip to content

v0.0.8

Latest

Choose a tag to compare

@keyur2maru keyur2maru released this 18 May 02:37

Diagnostics & Crash-Reporting Improvements

Adds an onLog callback to VadHandler.create for routing the package's production log lines into your app's crash reporter (Crashlytics, Sentry, Bugsnag, etc.), plus an always-on breadcrumb logged immediately before each ONNX
Runtime session creation on native platforms. Useful for diagnosing native crashes inside libonnxruntime.so on low-end Android devices.

Highlights:

  • Add optional VadLogCallback? onLog parameter to VadHandler.create and matching VadLogCallback typedef exported from package:vad/vad.dart
  • Emit always-on VadModel: creating OrtSession (model=... bytes=... sampleRate=... os=... osVersion=...) breadcrumb before each native session creation — the last line in logcat before any crash inside libonnxruntime.so
  • Route all non-debug failures through onLog when set: session-creation errors (native + web), inference errors, frame-processing errors, audio-stream and microphone-permission failures
  • README: add Reporting Issues troubleshooting section with adb logcat capture instructions and a Crashlytics wiring example

No breaking changes — onLog is optional and defaults to current behavior (print/logcat).

Full Changelog:
See CHANGELOG.md