fresco icon indicating copy to clipboard operation
fresco copied to clipboard

When I load a picture of 600 * 22177, the app run crash!

Open pphdsny opened this issue 11 years ago • 7 comments

I want to know that fresco has a size limit for loading pictures?

pphdsny avatar Jul 22 '15 10:07 pphdsny

It shouldn't. But this is a pretty big image so could cause problems, what Android version are you running? What is the stack trace from the crash?

IanChilds avatar Jul 22 '15 10:07 IanChilds

Nothing.No detailed log.Only 07-23 09:38:46.428 W/OpenGLRenderer﹕ Bitmap too large to be uploaded into a texture (200x7382, max=4096x4096) 07-23 09:38:46.429 A/libc﹕ Fatal signal 7 (SIGBUS) at 0x0000000f (code=1), thread 17160 (eam.app.android) I saw that there was a maximum limit on the log is 4096*4096, is not I load the picture can not exceed this limit? My app is running version is 4.0+.fresco version is 0.5.3.

pphdsny avatar Jul 23 '15 01:07 pphdsny

Is this a JPEG or a PNG?

IanChilds avatar Jul 23 '15 11:07 IanChilds

JPEG

pphdsny avatar Jul 24 '15 07:07 pphdsny

I am doubt that, too! But I didn't find any method to rule the decoding size of images

aiuuyoyo avatar Jul 24 '15 13:07 aiuuyoyo

It seems fresco has no a size limit for loading pictures. I didn't find any in the guidline.http://fresco-cn.org/docs/using-image-pipeline.html#_

aiuuyoyo avatar Jul 24 '15 13:07 aiuuyoyo

The limit is device-specific, and is imposed by OpenGL. See http://stackoverflow.com/questions/10271020/bitmap-too-large-to-be-uploaded-into-a-texture for example. In this case it is 4096x4096, which should be plenty. You might need to use an image that doesn't have such a huge aspect ratio.

IanChilds avatar Jul 27 '15 09:07 IanChilds