NavidromeApp/watchOS
Dallas Groot 99bf17ec1a Fix 3 crashes from crash logs: SmartDJCache race, AVPlayer observer, KVO threading
🔴 SmartDJCache concurrent Dictionary crash (April 27+28 crash logs):
- EXC_BAD_ACCESS + doesNotRecognizeSelector in bulkImport()
- memoryCache dictionary mutated from main thread (loadBulkCache)
  and background Task.detached (bulkImport) simultaneously
- Fix: NSLock serializes all memoryCache reads and writes

🔴 stopAVPlayer removeTimeObserver crash (April 30 crash log):
- SIGABRT in -[AVPlayer removeTimeObserver:] from Previous button
- timeObserver registered on old player, self.player swapped to
  crossfade's active player by finalizeCrossfade
- Fix: remove observer from OLD player at both swap sites before
  assignment + reorder stopAVPlayer (observer before replaceCurrentItem)

🟡 Audit fixes (no crash logs, preventative):
- KVO in radioSeekBack wrapped in DispatchQueue.main.async
- Stale vis Task guarded by songId in all MainActor.run blocks
- CHANGELOG.md with full findings documentation
2026-04-30 17:27:54 -07:00
..
App Watch: fix command routing, seek bar, volume UI 2026-04-20 13:06:06 -07:00
Audio Fix 3 crashes from crash logs: SmartDJCache race, AVPlayer observer, KVO threading 2026-04-30 17:27:54 -07:00
Resources Fix 3 crashes from crash logs: SmartDJCache race, AVPlayer observer, KVO threading 2026-04-30 17:27:54 -07:00
Views Watch: fix command routing, seek bar, volume UI 2026-04-20 13:06:06 -07:00