mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
17 of the build 270 crash logs are 0xdead10cc kills on the main thread inside DataManager.save(), every one reached from the 5-second PlayerService progress-save timer. During background audio the timer keeps writing; when playback stops the app can be suspended mid-save, still holding the SQLite lock in the shared app-group container. Wrap the periodic save in a background-task assertion when the app is not active, and skip the write when the position has not moved since the last save, so a paused player stops writing every five seconds. The remaining six 0xdead10cc logs die in DataManager.init recovering the WAL during a background launch. They are most likely the aftermath of these dirty kills, so store opening is left as is.