WordPress-FluxC-Android icon indicating copy to clipboard operation
WordPress-FluxC-Android copied to clipboard

Handle low memory errors while uploading logs

Open irfano opened this issue 1 year ago • 0 comments

Fixes #3010

This addresses low-memory error cases during log uploads.

When there is low memory on the device and there is a log file with a large size that needs to be uploaded, the app crashes. Although this doesn't happen frequently, when it does occur for a user, it tends to happen repeatedly for that user. This PR resolves this issue by treating it as an IRRECOVERABLE_FAILURE and deleting the log file.

It's hard to test it. But I'd like you to review the solution.

irfano avatar May 12 '24 11:05 irfano