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

Not able to load the image from local storage. #1451

Open
nitingrov86 opened this issue Jul 13, 2016 · 4 comments
Open

Not able to load the image from local storage. #1451

nitingrov86 opened this issue Jul 13, 2016 · 4 comments

Comments

@nitingrov86
Copy link

nitingrov86 commented Jul 13, 2016

I/dalvikvm-heap: Grow heap (frag case) to 23.295MB for 1781875-byte allocation
07-13 13:44:21.669 18667-18667/com.testD/Picasso: Main created [R0] Request{file:///data/data/com.test/files/565/6bd95510-7ea6-4123-92c4-a5f48cc4fbdb.jpg resize(1116,720)}
07-13 13:44:21.676 18667-30514/com.test D/Picasso: Dispatcher enqueued [R0]+7ms
07-13 13:44:21.677 18667-30516/com.test D/Picasso: Hunter executing [R0]+8ms
07-13 13:44:22.182 18667-30514/com.test D/Picasso: Dispatcher batched [R0]+513ms for error
07-13 13:44:22.387 18667-30514/com.test D/Picasso: Dispatcher delivered [R0]+717ms
07-13 13:44:22.525 18667-18667/com.test D/Picasso: Main errored [R0]+856ms

File imageFile = new File(getMediaPath());
Picasso.with(activity)
                    .load(imageFile)
                    .fit()
                    .memoryPolicy(MemoryPolicy.NO_CACHE)
                    .into(imageViewSubject.getValue(), new Callback() {
                        @Override
                        public void onSuccess() {
                        }

                        @Override
                        public void onError() {
                        }
                    });
@nitingrov86
Copy link
Author

without fit() and memoryPolicy() I get the following error:-
Bitmap too large to be uploaded into a texture (4320x2432, max=4096x4096)

@nitingrov86
Copy link
Author

works fine with snapshot version from 07/19/2016.
@JakeWharton Is there any ETA on picasso v2.6? We really need it for our release, if you can provide tentative release date it would be helpful. Thanks.

@ghost
Copy link

ghost commented Sep 13, 2018

@JakeWharton Can I work on this?

@JakeWharton
Copy link
Member

JakeWharton commented Sep 13, 2018 via email

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