Yet another "Image can't be decoded" problem
Hi,
i've been using this library for a long time, but i never encountered error like this one.
trying to load this bitmap: http://i.nyx.cz/V/VIRTUALVOID.gif ends up with error above. android 4.2.2, but it works on 4.0.3.
some logging:
02-19 17:29:56.552: D/skia(2362): Too large gif source (-60164 bytes) 02-19 17:29:56.552: D/skia(2362): --- decoder->decode returned false 02-19 17:29:56.559: E/ImageLoader(2362): Image can't be decoded [http://i.nyx.cz/V/VIRTUALVOID.gif_96x96] 02-19 17:29:56.567: D/ImageLoader(2362): Load image from network [http://i.nyx.cz/V/VIRTUALVOID.gif_96x96] 02-19 17:29:56.568: D/ImageLoader(2362): Cache image on disc [http://i.nyx.cz/V/VIRTUALVOID.gif_96x96] 02-19 17:29:56.588: D/libc-netbsd(2362): getaddrinfo: www.nyx.cz get result from proxy >> 02-19 17:29:56.589: I/System.out(2362): propertyValue:true 02-19 17:29:56.592: I/System.out(2362): [socket][3] connection /81.27.197.73:80;LocalPort=36718(0) 02-19 17:29:56.668: I/System.out(2362): [CDS]connect[/81.27.197.73:80] tm:90 02-19 17:29:56.675: D/Posix(2362): [Posix_connect Debug]Process sk.virtualvoid.nyxdroid.v2 :80 02-19 17:29:56.683: I/System.out(2362): [CDS]rx timeout:20000 02-19 17:29:56.692: I/System.out(2362): [socket][/192.168.2.105:36718] connected 02-19 17:29:56.692: I/System.out(2362): [CDS]rx timeout:0 02-19 17:29:56.709: I/System.out(2362): >doSendRequest 02-19 17:29:56.744: I/System.out(2362): <doSendRequest 02-19 17:29:56.803: I/System.out(2362): [CDS]close[36718] 02-19 17:29:56.806: I/System.out(2362): close [socket][/0.0.0.0:36718] 02-19 17:29:56.807: I/System.out(2362): close [socket][/0.0.0.0:36718] 02-19 17:29:56.978: D/skia(2362): Too large gif source (-60164 bytes) 02-19 17:29:56.978: D/skia(2362): --- decoder->decode returned false 02-19 17:29:56.992: D/skia(2362): Too large gif source (-60164 bytes) 02-19 17:29:56.992: D/skia(2362): --- decoder->decode returned false 02-19 17:29:56.995: E/ImageLoader(2362): Image can't be decoded [http://i.nyx.cz/V/VIRTUALVOID.gif_96x96] 02-19 17:29:57.426: I/SurfaceTextureClient(2362): STC::queueBuffer fps:4.58, dur:1091.63, max:472.94, min:20.04
Just as it said, the gif source is too big??
Did you saw the size ???
"Too large gif source -60164 bytes)"
Maybe you have some troubles with proxy. So Android has such strange behavior. Actually I don't have this problem, image is showed normally.
I don' think so, I've found this :
An easy workaround is to put your GIF in drawable-nodpi/ instead and to perform the scaling use Bitmap.createScaledBitmap()
That bug is related to bitmap/gif rescaling ...
It's somehow possible to disable GIF/image scaling in UIL ?
see this: https://code.google.com/p/android/issues/detail?id=34619
it's REALLY interesting, because http://square.github.io/picasso/ can do it...
can you please make any statement to this issue ? thanks
I am also facing the same issue. It used to say," Image can't be decoded". I am putting request for png image of 400KB on https.
I can't help you, this is specific device's decoder.