A customer using my Android app (containing FMX Cloud Pack 3.7.2.1) reports getting this error while uploading to Dropbox:
java.lang.OutOfMemoryError: Failed to allocate a 65552 byte allocation with 47728 free bytes and
46KB until OOM, target footprint 201326592, growth limit 201326592.
The customer originally saw this error message when using a version made by Delphi 10.4 but I recently rolled out a version made with Delphi 11 and the latest FMX Cloud Pack 3.7.2.1. He sees the same error.
He has Android 11, and this happens when attempting to upload a specific file to Dropbox which is around 160MB.
I have just replicated the same error on a test phone here. The file in my case is 176MB and also on Android 11.
So we were able to download the files of this size but not upload them. Files less than 140MB seem to have no issue.
Unfortunately uploads to DropBox are currently limited to files with a maximum file size of 150MB.
This is a limitation of the DropBox API, we'll have to investigate if uploads for larger files can be supported in a future version.