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

Out of memory #1

Open
enricodeleo opened this issue Apr 27, 2015 · 0 comments
Open

Out of memory #1

enricodeleo opened this issue Apr 27, 2015 · 0 comments

Comments

@enricodeleo
Copy link

Hi! I'm using this plugin on a basic angularjs-based android app. Everything seems to work fine if I try to pick small images, when I select an image bigger than a couple of mb the app crashes and I get the following error stack:

FATAL EXCEPTION: pool-1-thread-2
E  java.lang.OutOfMemoryError
E      at java.lang.String.<init>(String.java:365)
E      at java.lang.String.<init>(String.java:228)
E      at org.apache.cordova.file.FileUtils$25.handleDat
   a(FileUtils.java:976)
E      at org.apache.cordova.file.LocalFilesystem.readFi
   leAtURL(LocalFilesystem.java:547)
E      at org.apache.cordova.file.FileUtils.readFileAs(F
   ileUtils.java:947)
E      at org.apache.cordova.file.FileUtils$6.run(FileUt
   ils.java:302)
E      at org.apache.cordova.file.FileUtils$24.run(FileU
   tils.java:540)
E      at java.util.concurrent.ThreadPoolExecutor.runWor
   ker(ThreadPoolExecutor.java:1080)
E      at java.util.concurrent.ThreadPoolExecutor$Worker
   .run(ThreadPoolExecutor.java:573)
E      at java.lang.Thread.run(Thread.java:841)

Do you suggest a workaround? Any hint?

Thank you in advance!

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

1 participant