Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to Complete Previous Operation Due to Low Memory #924

Open
2 tasks done
iamkotu opened this issue Jul 18, 2023 · 2 comments
Open
2 tasks done

[Bug] Unable to Complete Previous Operation Due to Low Memory #924

iamkotu opened this issue Jul 18, 2023 · 2 comments

Comments

@iamkotu
Copy link

iamkotu commented Jul 18, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated FilePond and its plugins?

  • I have updated FilePond and its plugins

Describe the bug

Hi. I would like to thank you for a great plugin.

I have one problem with uploading photos on mobile devices that have little RAM, e.g. 3GB. My filepond component allows you to upload photos only after taking them with a camera.

The user, after taking a photo and approving that photo, is kicked to the start page of the application and receives the error:

Unable to Complete Previous Operation Due to Low Memory

This is my snippet of component code for uploading images:

image

Out of 300 devices, 20 have this problem, mostly smartphones with low RAM, less than 3.

I've tried closing apps running in the background but that doesn't help. Is the only option left for me to disable photo conversion on older devices?

The error does not occur on all devices with 3GB of RAM and less. The problem is when the phone has a lot of applications.

Thank you for your help.

Reproduction

  1. The user presses the filepond button to add photos.
  2. The phone camera turns on.
  3. The user takes a photo.
  4. The preview of the captured photo is displayed in the camera app.
  5. The user confirms the taken photo by pressing the OK button.
  6. The browser crashes, returns to the start page of the application and gives an error.

Environment

- Device: e.g. Xiaomi Redmi Note 8 / 9. 
- OS: Latest to install
- Browser: Chrome, Firefox, Opera
@iamkotu iamkotu added the bug label Jul 18, 2023
@rikschennink rikschennink removed the bug label Jul 19, 2023
@rikschennink
Copy link
Collaborator

Hi, I think disabling the client side image editing functionality on these devices is the only option for now, perhaps there's a less memory intensive method to resize images by now so it's definitely something I'll explore for v5.

@iamkotu
Copy link
Author

iamkotu commented Jul 19, 2023

Cool. I will follow changes in the project. At the moment, on old devices, I will disable client-side compression and enable server-side compression.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants