advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.18k stars 164 forks source link

Android - Freeze when rewinding to beginning of chapter #730

Open eudes opened 1 year ago

eudes commented 1 year ago

Steps to reproduce

  1. Play an audiobook
  2. Press on the "rewind to beginning of chapter" button

Expected behaviour

Actual behaviour

Environment data

Audiobookshelf Version: 0.9.64-beta

Android Issue

Android version: 12

Device model: Sony Xperia 1 II

Stock or customized system: Stock

advplyr commented 1 year ago

Is this specific to certain audiobooks?

Does this also happen if you stream the same audiobook?

eudes commented 1 year ago

It looks like it happens with any local, 1 file per chapter book. No issues while streaming or with single file chaptered books (excluding first load). File format doesn't seem to matter.

I've also observed the UI freezing when first playing any local book, so it may be related to opening new files.

advplyr commented 1 year ago

Hmm, I wasn't able to reproduce this issue. Maybe you can try grabbing some sample audio files and putting them in a folder to see if it is the audio encoding?

eudes commented 1 year ago

I tried a couple of things here: 1 - Downloading some sample mp3 files directly to the phone and playing them as a book in ABS --> Sometimes it freezes on first playing the book, no chapter issues 2 - Putting these same files in my server and downloading them through the ABS app --> Sometimes it freezes on frist playing the book, and sometimes chapter issues as well, but not as often as with a normal book. 3 - Importing those files through my library manager (Readarr), tagging and renaming, and then importing into ABS --> Same as 2

I'm a bit stuck on things to try here. I got it to show a "This app is not responding" message on Android and getting a log dump, by pressing everywhere while frozen. Would that be useful?

advplyr commented 1 year ago

Log dump could help. I'm not sure what the issue could be. You could try turning off battery optimization for the app