This image does not seem to load using picasso.
Image Properties:
Type: JPG file
Dimensions: 6000 X 4000 pixels
Size: 12.2 MB
Error Log:
D/Picasso: Main created [R16] Request{url.. resize(100,100) centerCrop}
D/Picasso: Hunter executing [R16]+1ms
D/Picasso: Dispatcher enqueued [R16]+1ms
D/libc-netbsd: [getaddrinfo]: hostname=192.168.0.10; servname=(null); netid=0; mark=0
D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
I/System.out: [CDS]rx timeout:20000
I/System.out: [CDS]SO_SND_TIMEOUT:0
I/System.out: [OkHttp] sendRequest>>
I/System.out: [OkHttp] sendRequest<<
D/skia: jpeg_decoder mode 0, colorType 4, w 6000, h 4000, sample 1, bsLength 0!!
I/System.out: close [socket][/192.168.0.106:45679]
D/Picasso: Dispatcher retrying [R16]+738ms
D/Picasso: Hunter executing [R16]+739ms
D/libc-netbsd: [getaddrinfo]: hostname=192.168.0.10; servname=(null); netid=0; mark=0
D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
I/System.out: [CDS]rx timeout:20000
I/System.out: [CDS]SO_SND_TIMEOUT:0
I/System.out: [OkHttp] sendRequest>>
I/System.out: [OkHttp] sendRequest<<
D/skia: jpeg_decoder mode 0, colorType 4, w 6000, h 4000, sample 1, bsLength 0!!
I/System.out: close [socket][/192.168.0.106:55039]
I/System.out: [CDS]shutdownInput in read
I/System.out: close [socket][/:::55039]
I/System.out: close [socket][/:::55039]
D/Picasso: Dispatcher retrying [R16]+1398ms
D/Picasso: Hunter executing [R16]+1399ms
D/Picasso: Dispatcher batched [R16]+1403ms for error
D/Picasso: Dispatcher delivered [R16]+1609ms
D/Picasso: Main errored [R16]+1614ms
Are you sure it's not a out of memory exception?
yes I am sure, no OOM is thrown. Infact I have tried adding android:largeHeap="true" to the manifest but it does not help.
Also I am able to load the same image using other open source libraries like Glide, UIL etc.
Most Android devices have a max texture size in their GPUs of 2048x2048 or
4096x4096. I don't know of any that support larger than that, although they
probably exist on the phones with 4K displays. The Bitmap decoder will log
a message when this happens, but otherwise it silently fails. Do you
actually need to load the full size image? Are you using something like
.fit().centerInside()?
On Mon, Apr 10, 2017 at 7:20 AM Chirag Maheshwari notifications@github.com
wrote:
yes I am sure, no OOM is thrown. Infact I have tried adding
android:largeHeap="true" to the manifest but it does not help.
Also I am able to load the same image using other open source libraries
like Glide, UIL etc.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/square/picasso/issues/1613#issuecomment-292921390,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEXLc16UvmutCr_KINo_DhgZFAMQXks5ruhB8gaJpZM4M38_Y
.
Yes we were using .fit() and .centerInside() both in the app for loading the images. Here is the code for reference.
i got the same problem .
when i use .fit().centerCrop() on a large image,it can not show. however,when i make the same image to 600*800 , this image is showed.how can i solve this problem? i use version 2.5.2
Any solutions yet?
use glide solve this problem..............
Do you really need such a large image? Simple resize it to a bitmap, then make all you want.
Bitmap bitmap = Picasso.with(getContext()).load(uri).resize(2000, 0).get();
Most helpful comment
use glide solve this problem..............