Android crash when attempting to download missing file #327

Open
opened 2026-04-24 23:16:44 +02:00 by adam · 1 comment
Owner

Originally created by @nichwall on GitHub (Oct 24, 2022).

Steps to reproduce

  1. Turn off watcher
  2. Merge book to M4B on ABS
  3. Do not rescan directory
    image
    image
  4. Download book on Android (v0.9.57-beta)
  5. Android app crashes, download manager gives notifications that all audio files failed to download (the cover was successfully downloaded)

Expected behaviour

Some sort of warning/popup to say the file is missing or library needs to be rescanned.

Actual behaviour

Attempted to download book which has been merged (but library has not been rescanned) causes the Android app to crash when attempting to download the book.
Download (of the same book) then behaves as expected after scanning the library.

Environment data

Audiobookshelf Version: 2.2.0 (Docker)

  • Android App?
  • iOS App?

Android Issue

Android version: Android 13

Device model: Pixel 6a

Stock or customized system: Stock

Originally created by @nichwall on GitHub (Oct 24, 2022). ### Steps to reproduce 1. Turn off watcher 2. Merge book to M4B on ABS 3. Do not rescan directory ![image](https://user-images.githubusercontent.com/5686638/197580883-7991229d-2403-4f39-b446-40717d5df588.png) ![image](https://user-images.githubusercontent.com/5686638/197580908-fd1699b2-e05a-4289-a427-e58afa12711f.png) 5. Download book on Android (v0.9.57-beta) 6. Android app crashes, download manager gives notifications that all audio files failed to download (the cover was successfully downloaded) ### Expected behaviour Some sort of warning/popup to say the file is missing or library needs to be rescanned. ### Actual behaviour Attempted to download book which has been merged (but library has not been rescanned) causes the Android app to crash when attempting to download the book. Download (of the same book) then behaves as expected after scanning the library. ### Environment data Audiobookshelf Version: 2.2.0 (Docker) - [x] Android App? - [ ] iOS App? #### Android Issue Android version: Android 13 Device model: Pixel 6a Stock or customized system: Stock
adam added the bug label 2026-04-24 23:16:44 +02:00
Author
Owner

@nichwall commented on GitHub (Jul 9, 2023):

Update on this issue (Android 13, Pixel 6a, version 0.9.65, server 2.2.23), haven't checked the behavior since first posted. Test book downloads correctly to both filesystem and Internal App Storage after rescanning library files as mentioned before.

Android app no longer crashes when trying to download missing files from the server. The behavior is now as follows:

Downloading to the shared filesystem

Cover image is correctly downloaded, download "Completes successfully", then gives the error "Item download complete but failed to create library item." The android file system shows that only the cover was downloaded. The book is not marked as local and download button is still able to be pressed.

Downloading to Internal App Storage

Get the three toasts saying the download completed successfully (as mentioned in Discord by evequefou on July 4, 2023), item is marked as local and download button disappears. Pressing play gives "Playback Failed: Source error". Viewing local files shows the mp3 files exist, but I assume they are all 0 bytes since it downloaded them instantly and the mp3s do not exist on the server.

@nichwall commented on GitHub (Jul 9, 2023): Update on this issue (Android 13, Pixel 6a, version 0.9.65, server 2.2.23), haven't checked the behavior since first posted. Test book downloads correctly to both filesystem and Internal App Storage after rescanning library files as mentioned before. Android app no longer crashes when trying to download missing files from the server. The behavior is now as follows: #### Downloading to the shared filesystem Cover image is correctly downloaded, download "Completes successfully", then gives the error "Item download complete but failed to create library item." The android file system shows that only the cover was downloaded. The book is not marked as local and download button is still able to be pressed. #### Downloading to Internal App Storage Get the three toasts saying the download completed successfully (as mentioned in Discord by evequefou on July 4, 2023), item is marked as local and download button disappears. Pressing play gives "Playback Failed: Source error". Viewing local files shows the mp3 files exist, but I assume they are all 0 bytes since it downloaded them instantly and the mp3s do not exist on the server.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#327