Android - Freeze when rewinding to beginning of chapter #578

Open
opened 2026-04-24 23:29:05 +02:00 by adam · 5 comments
Owner

Originally created by @eudes on GitHub (Jun 4, 2023).

Steps to reproduce

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

Expected behaviour

  • The audio starts playing from the beginning immediately
  • The UI remains responsive

Actual behaviour

  • The audio takes a while to load
  • The UI freezes
  • The UI shows the previous chapter for an instant
  • Video: https://youtube.com/shorts/vmbsjrfuvhM
    (Audio stops playing on "rewind" button press)

Environment data

Audiobookshelf Version: 0.9.64-beta

  • Android App?
  • iOS App?

Android Issue

Android version: 12

Device model: Sony Xperia 1 II

Stock or customized system: Stock

Originally created by @eudes on GitHub (Jun 4, 2023). ### Steps to reproduce 1. Play an audiobook 2. Press on the "rewind to beginning of chapter" button ### Expected behaviour - The audio starts playing from the beginning immediately - The UI remains responsive ### Actual behaviour - The audio takes a while to load - The UI freezes - The UI shows the previous chapter for an instant - Video: https://youtube.com/shorts/vmbsjrfuvhM (Audio stops playing on "rewind" button press) ### Environment data Audiobookshelf Version: 0.9.64-beta - [X] Android App? - [ ] iOS App? #### Android Issue Android version: 12 Device model: Sony Xperia 1 II Stock or customized system: Stock
adam added the bugunable to reproduce labels 2026-04-24 23:29:05 +02:00
Author
Owner

@advplyr commented on GitHub (Jun 4, 2023):

Is this specific to certain audiobooks?

Does this also happen if you stream the same audiobook?

@advplyr commented on GitHub (Jun 4, 2023): Is this specific to certain audiobooks? Does this also happen if you stream the same audiobook?
Author
Owner

@eudes commented on GitHub (Jun 5, 2023):

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.

@eudes commented on GitHub (Jun 5, 2023): 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.
Author
Owner

@advplyr commented on GitHub (Jun 5, 2023):

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?

@advplyr commented on GitHub (Jun 5, 2023): 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?
Author
Owner

@eudes commented on GitHub (Jun 5, 2023):

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?

@eudes commented on GitHub (Jun 5, 2023): 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?
Author
Owner

@advplyr commented on GitHub (Jun 5, 2023):

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

@advplyr commented on GitHub (Jun 5, 2023): Log dump could help. I'm not sure what the issue could be. You could try turning off battery optimization for the app
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#578