Downloads to temp folder continue after app crashes; orphaned downloads persist after restart #168

Open
opened 2026-04-24 23:10:49 +02:00 by adam · 2 comments
Owner

Originally created by @hobesman on GitHub (Jun 2, 2022).

Steps to reproduce

  1. Press download on a book in android app
  2. Cause app to crash (not sure how to consistently replicate)
  3. Watch downloads continue to temp directory (e.g. /Android/data/com.audiobokshelf.app/files/Download)
  4. Restart app and temporary files remain in temporary directory. They don't get deleted, nor moved to final directory for listening.

Expected behaviour

  • Files would be recognized as the triggered downloads, or else would be deleted.

Actual behaviour

  • Files linger unused and unremoved.

Environment data

Android 9
Server 2.0.18
Downloading to internal storage
Audiobookshelf Version:

  • [ X] Android App? 0.9.46-beta
  • iOS App?

Android Issue

Android version: 9

Device model: LG G7 Thinq

Stock or customized system: Stock

iOS Issue

iOS Version:

iPhone model:

Originally created by @hobesman on GitHub (Jun 2, 2022). ### Steps to reproduce 1. Press download on a book in android app 2. Cause app to crash (not sure how to consistently replicate) 3. Watch downloads continue to temp directory (e.g. /Android/data/com.audiobokshelf.app/files/Download) 4. Restart app and temporary files remain in temporary directory. They don't get deleted, nor moved to final directory for listening. ### Expected behaviour - Files would be recognized as the triggered downloads, or else would be deleted. ### Actual behaviour - Files linger unused and unremoved. ### Environment data Android 9 Server 2.0.18 Downloading to internal storage Audiobookshelf Version: - [ X] Android App? 0.9.46-beta - [ ] iOS App? #### Android Issue Android version: 9 Device model: LG G7 Thinq Stock or customized system: Stock #### iOS Issue iOS Version: iPhone model:
adam added the bugandroid labels 2026-04-24 23:10:49 +02:00
Author
Owner

@nichwall commented on GitHub (May 26, 2025):

I have been working on refactoring the Android download logic over the past few months (progress was a bit slow due to life getting in the way). This refactor was primarily focused on cleaning up the framework, and not specifically aimed at fixing any particular issue. However, it is possible that the changes may have resolved this issue as a side effect.

If you get a chance, please try sideloading the APK located at the end of the pull request and let me know if you run into other issues, whether this issue still occurs, or if this issue appears to be resolved. The APK can be downloaded from the "Build APK" workflow at the end of the page by clicking on "View Details", then clicking on "Summary", then downloading the APK. The PR is https://github.com/advplyr/audiobookshelf-app/pull/1587

I am requesting feedback on all of the open Android download issues, so apologies if you receive multiple notifications.

Workflow run
APK download

@nichwall commented on GitHub (May 26, 2025): I have been working on refactoring the Android download logic over the past few months (progress was a bit slow due to life getting in the way). This refactor was primarily focused on cleaning up the framework, and not specifically aimed at fixing any particular issue. However, it is possible that the changes may have resolved this issue as a side effect. If you get a chance, please try sideloading the APK located at the end of the pull request and let me know if you run into other issues, whether this issue still occurs, or if this issue appears to be resolved. The APK can be downloaded from the "Build APK" workflow at the end of the page by clicking on "View Details", then clicking on "Summary", then downloading the APK. The PR is https://github.com/advplyr/audiobookshelf-app/pull/1587 I am requesting feedback on all of the open Android download issues, so apologies if you receive multiple notifications. ![Workflow run](https://github.com/user-attachments/assets/ac386c0c-5a3c-4b10-98a1-1c5626358348) ![APK download](https://github.com/user-attachments/assets/ded054e4-0cc5-457c-bb59-f1651197fbbc)
Author
Owner

@konetzed commented on GitHub (Jan 28, 2026):

Just curious any updates on this? Getting stuck downloads on random books.

@konetzed commented on GitHub (Jan 28, 2026): Just curious any updates on this? Getting stuck downloads on random books.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#168