Search Issue Tracker

Won't Fix

Votes

0

Found in

2019.4

2020.3

2021.1.0b5

2021.2.0a7

Issue ID

1318589

Regression

No

[Android] Cache.expirationDelay does not remove expired Asset Bundles from the cache

Asset Bundles

-

Steps to reproduce:
1. Open the attached project "TestForTrunk"
2. Build it to Android and run the app
3. Press the "Load Cube" button few times (a white cube should appear )
4. Use terminal or cmd and type "adb shell" to access the device storage
5. Use "cd storage/emulated/0/Android/data/com.unity.test/files/UnityCache/Shared"
6. Use ls to get a specific location which is written in a HashNumber
7. Use "cd (The first HashNumber from step 6 )"
8. Use ls to get another location that is named as a HashNumber
9. Use "cd (HashNumber from step 8)"
10. Use "stat __data"
11. Take a note of the timesteps
12. Close the app and wait for 10 or more seconds
13. Launch the app
14. Repeat step 9

Expected results: Timestamps are different
Actual results: Timestamps are the same(meaning __data file is not replaced but rather the older one is used)

Reproducible with: 2019.4.21f1, 2020.3.0f1, 2021.1.0b5, 2021.2.0a7
Unable to test with: 2018.4.31f1 due to project breaking

Reproducible devices:
VLNQA00264, Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00279, Samsung Galaxy S10+ (SM-G975U), Android 9, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
------------------- Huawei P40 Pro 10 HiSilicon Kirin 9000 Mali-G78
------------------- Huawei Mate 40 Pro 10 HiSilicon Kirin 990 5G Mali-G76

Unable to reproduce with:
iPhone 12 Mini and iPhone XR running iOS 14.4 and 14.3
Windows standalone

Unable to test with the device due to Asset BUndle fails to load::
----------, Xiaomi Redmi 4 (Redmi 4), Android 6.0.1, CPU: Snapdragon 430 MSM8937, GPU: Adreno (TM) 505
----------, Motorola Nexus 6 (Nexus 6), Android 7.1.1, CPU: Snapdragon 805 APQ8084AB, GPU: Adreno (TM) 420

  1. Resolution Note:

    This feature is planned for deprecation in the near future. We recommend allowing the cache to be cleared out based on cache size as opposed to expiration time.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.