Android-Universal-Image-Loader icon indicating copy to clipboard operation
Android-Universal-Image-Loader copied to clipboard

Yet another "Image can't be decoded" problem

Open virtualvoid opened this issue 12 years ago • 9 comments

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

virtualvoid avatar Feb 19 '14 16:02 virtualvoid

Just as it said, the gif source is too big??

bytebeats avatar Feb 20 '14 01:02 bytebeats

Did you saw the size ???

"Too large gif source -60164 bytes)"

virtualvoid avatar Feb 20 '14 06:02 virtualvoid

Maybe you have some troubles with proxy. So Android has such strange behavior. Actually I don't have this problem, image is showed normally.

nostra13 avatar Feb 20 '14 10:02 nostra13

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 ...

virtualvoid avatar Feb 20 '14 17:02 virtualvoid

It's somehow possible to disable GIF/image scaling in UIL ?

see this: https://code.google.com/p/android/issues/detail?id=34619

virtualvoid avatar Feb 20 '14 17:02 virtualvoid

it's REALLY interesting, because http://square.github.io/picasso/ can do it...

virtualvoid avatar Feb 20 '14 17:02 virtualvoid

can you please make any statement to this issue ? thanks

virtualvoid avatar Mar 01 '14 08:03 virtualvoid

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.

ghost avatar Jul 14 '14 05:07 ghost

I can't help you, this is specific device's decoder.

nostra13 avatar Jul 15 '14 20:07 nostra13