New
v0.1.46 - fix: android app crash (#425)
π Summary (single-line synopsis)
v0.1.46 delivers a critical Android stability fix that prevents a native SIGSEGV crash when YOLOView is disposed while TensorFlow Lite inference is still running π‘οΈπ±
π Key Changes
- Fixed Android teardown race condition in
YOLOViewthat could crash the app (SIGSEGV) when navigating away or disposing the view during active inference π§΅π₯ - Added a
@Volatile isStoppedguard and multiple early-exit checks insideonFrameto stop frame processing afterstop()begins π - Improved shutdown resilience by wrapping predictor/interpreter close operations to avoid teardown exceptions cascading π§―
- Version bump to
0.1.46and release notes updated inCHANGELOG.mdπβ¬οΈ
π― Purpose & Impact
- More reliable Android apps: prevents hard native crashes (not catchable in Dart) during common UI lifecycle events like route changes, widget disposal, or camera restarts π