-
Notifications
You must be signed in to change notification settings - Fork 640
Description
[REQUIRED] Step 2: Describe your environment
- Android Studio version: Android Studio Narwhal 3 Feature Drop | 2025.1.3
- Firebase Component: Storage
- Component version: 22.0.0
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
In my application, I upload photos and videos, but some of them are uploaded with missing data.
• For photos, it seems that only certain chunks are missing, always in multiples of 262,144 bytes (256 KB).
• For videos, the file size doesn’t appear to align with this chunk size. I often get invalid videos of exactly 3,232 bytes and multiple of 262 144 bytes (256KB). I’m not sure if this information is helpful, but it might point to the root cause.
The uploads are performed from a coroutine, which can be canceled. This could potentially be related to the issue. However, I believe that nothing should be visible on the server side until the upload is fully completed and confirmed.
The issue is hard to reproduce and only affects a small percentage of uploads, but it’s very annoying. It also seems to be an old bug, as described here:
#5843
Additional context:
• Photos are uploaded as WebP images.
• Videos are MP4 (H.265) files with a maximum duration of 10 seconds.
• I don’t know whether the SDK returns a success result after these invalid uploads.
You have previously suggested using WorkManager, but in my case, WorkManager is only a fallback solution, since its execution can be delayed depending on device resources.