App crashes when trying to access local media after app is restored to a fresh device through the Android setup process #721

Open
opened 2026-04-24 23:35:33 +02:00 by adam · 3 comments
Owner

Originally created by @puhtahtoe on GitHub (Oct 8, 2023).

Steps to reproduce

  1. Have media downloaded to internal local storage on an Android device
  2. Set up a new Android device and allow Google Play Services (or whatever does it) to restore the app automatically
  3. Open the app on the new device and see that the media previously downloaded on the old device are marked as downloaded on the new device
  4. Attempt to open or delete media marked as downloaded
  5. App crashes

Expected behaviour

The app should not crash when attempting to open the media. It should either not mark media as downloaded after a restore or it should start downloading the media when opened after a restore.

Actual behaviour

The app crashes. I am guessing this is because whatever keeps track of downloaded media in the app was restored but the media was not actually downloaded through the restore process.

Environment data

Audiobookshelf Version: 2.4.3

  • Android App?
  • iOS App?

Android Issue

Android version: 0.9.66-beta

Device model:
First device: Pixel 5a 5G
Second device: Pixel 3a

Stock or customized system:
First device: stock Android 13
Second device: stock Android 12

iOS Issue

iOS Version:

iPhone model:

Originally created by @puhtahtoe on GitHub (Oct 8, 2023). ### Steps to reproduce 1. Have media downloaded to internal local storage on an Android device 2. Set up a new Android device and allow Google Play Services (or whatever does it) to restore the app automatically 3. Open the app on the new device and see that the media previously downloaded on the old device are marked as downloaded on the new device 4. Attempt to open or delete media marked as downloaded 5. App crashes ### Expected behaviour The app should not crash when attempting to open the media. It should either not mark media as downloaded after a restore or it should start downloading the media when opened after a restore. ### Actual behaviour The app crashes. I am guessing this is because whatever keeps track of downloaded media in the app was restored but the media was not actually downloaded through the restore process. ### Environment data Audiobookshelf Version: 2.4.3 - [x] Android App? - [ ] iOS App? #### Android Issue Android version: 0.9.66-beta Device model: First device: Pixel 5a 5G Second device: Pixel 3a Stock or customized system: First device: stock Android 13 Second device: stock Android 12 #### iOS Issue iOS Version: iPhone model:
adam added the bug label 2026-04-24 23:35:33 +02:00
Author
Owner

@advplyr commented on GitHub (Oct 8, 2023):

Was the media downloaded to internal storage or shared storage?

@advplyr commented on GitHub (Oct 8, 2023): Was the media downloaded to internal storage or shared storage?
Author
Owner

@puhtahtoe commented on GitHub (Oct 8, 2023):

Internal storage.

Also, I forgot to mention that attempting to delete the "downloaded" media also resulted in the app crashing. I had to uninstall it then reinstall manually then I was able to redownload the media.

@puhtahtoe commented on GitHub (Oct 8, 2023): Internal storage. Also, I forgot to mention that attempting to delete the "downloaded" media also resulted in the app crashing. I had to uninstall it then reinstall manually then I was able to redownload the media.
Author
Owner

@DrSeussFreak commented on GitHub (Oct 22, 2023):

I'm experiencing this as well, i am running Ubuntu with docker

Server: v2.4.4
App: 0.9.66-beta

Pixel 8 Pro with October patch

I reset the apps data, certain books when downloaded cause the app to crash right at, I'm guessing, the scan stage, as if I remove the book from the directory scan works most of the time.

One book in particular is causing me issues, i redownload it from audible, same issue, used an to convert it to a new m4b file and same issue.

@DrSeussFreak commented on GitHub (Oct 22, 2023): I'm experiencing this as well, i am running Ubuntu with docker Server: v2.4.4 App: 0.9.66-beta Pixel 8 Pro with October patch I reset the apps data, certain books when downloaded cause the app to crash right at, I'm guessing, the scan stage, as if I remove the book from the directory scan works most of the time. One book in particular is causing me issues, i redownload it from audible, same issue, used an to convert it to a new m4b file and same issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#721