Open tnoms opened 7 months ago
There's a similar issue in the web client in mobile browser: #7542
Like you said, the problem is likely because it loads the full file in RAM before saving to disk.
Facing exactly the same issue. MobileApp version: 1.107.1 Server version: 1.106.4 `#0 _ByteCallbackSink.add (dart:convert/byte_conversion.dart)
Same here. Downloading 310 mb video file in the Android app throws out of memory exception and creates broken 256 mb file. No issues downloading in Brave app ver: 1.108.0 server: 1.108.0
The bug
While trying to download a 980 MB video file using the Immich app on Android, the download consistently fails and hangs. In two consecutive tests, a partial video file exactly 512 MB in size was written to disk. In the third test, 100k error logs were generated about running out of memory. This issue does not appear in the web client.
Error logs show: "PlatformDispacter - Catch all error: Out of Memory"
Assumptions:
While brainstorming with a friend, we discovered the following Stack Overflow post noting that manufacturers can enforce heap limits on apps to prevent excessive memory usage. This could be related.
The OS that Immich Server is running on
Debian GNU/Linux 12 (bookworm)
Version of Immich Server
v1.92.1
Version of Immich Mobile App
v1.92.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Initial tests performed:
Next test performed:
Final test performed:
Additional information
App was downloaded from F-Droid, not Google Play