repository stringclasses 156 values | issue title stringlengths 1 1.01k ⌀ | labels stringclasses 8 values | body stringlengths 1 270k ⌀ |
|---|---|---|---|
facebookfresco | exifinterface invalid image | Bug | 11 29 14 38 58 418 27599 27644 w exifinterface invalid image java io ioexception invalid marker 89 at android medium exifinterface getjpegattribute exifinterface java 1612 at android medium exifinterface loadattribute exifinterface java 1335 at android medium exifinterface exifinterface java 1053 at com facebook imagepipeline producers localexifthumbnailproducer getexifinterface localexifthumbnailproducer java 136 at com facebook imagepipeline producer localexifthumbnailproducer 1 getresult localexifthumbnailproducer java 103 at com facebook imagepipeline producer localexifthumbnailproducer 1 getresult localexifthumbnailproducer java 97 at com facebook common executor statefulrunnable run statefulrunnable java 45 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1112 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 587 at java lang thread run thread java 818 |
facebookfresco | be there a way to exclude the native part | Question | I be develop app run only on device whose sdk 21 the ashmem cache seem not availabe to I if the so file be only for ashmem purpose they be a size waste for I can I exclude that part in some way or should I just remove the so file and assume it win t crash |
facebookfresco | how to refresh a drawee with a same uri but not the same image acturally | Question | for example at first I do draweeavatar setimageuri avatar jpg then I update the avatar jpg to another picture but still name avatar jpg when I call the method draweeavatar setimageuri avatar jpg it would not update how can I update the bitmap in the draweeavatar |
facebookfresco | java lang unsatisfiedlinkerror | Question | java lang unsatisfiedlinkerror no implementation find for void com facebook imagepipeline memory nativememorychunk nativefree long try java com facebook imagepipeline memory nativememorychunk nativefree and java com facebook imagepipeline memory nativememorychunk nativefree j at com facebook imagepipeline memory nativememorychunk nativefre 212 360000 ioctl u8bsigstate 1 e native method at com facebook imagepipeline memory nativememorychunk close nativememorychunk java 75 at com facebook imagepipeline memory nativememorychunk finalize nativememorychunk java 243 at java lang daemon finalizerdaemon dofinalize daemon java 202 at java lang daemon finalizerdaemon run daemon java 185 at java lang thread run thread java 818 this issue have discovery in 2 android tv all of they be api23 it be still can not load image when restart app |
facebookfresco | how do I judge the image have be really download cache | Question | hello I use fresco to download image in my project and then I need to distinguish whether the image be a gif or a big image I find these linsk from official documentation url url so I write my own downloadsubscriber accord to the above public abstract class imagedownloadsubscriber extend basedatasubscriber private volatile boolean mfinishe private file tempfile private imagerequ imagerequ public imagedownloadsubscriber imagerequ imagerequ this imagerequ imagerequ override public void onprogressupdate datasource datasource if mfinishe onprogress int datasource getprogress 100 override protect void onnewresultimpl datasource datasource if datasource isfinishe applog e onnewresultimpl isfinishe return return closeablereference pooledbytebuffer datasource getresult if pooledbytebuffer null applog e onnewresultimpl pooledbytebuffer return return final pooledbytebufferinputstream be new pooledbytebufferinputstream pooledbytebuffer get try cachekey cachekey defaultcachekeyfactory getinstance getencodedcachekey imagerequ null imagepipelinefactory getinstance getmainfilecache insert cachekey new writercallback override public void write outputstream os throw ioexception byte datum new byte 16 1024 int count while count be read datum 1 os write datum 0 count tempfile getcacheresource mfinishe true onsuccess tempfile catch ioexception e onfail new throwable e finally try if be null be close catch ioexception e onfail new throwable e closeablereference closesafely pooledbytebuffer override protect void onfailureimpl datasource datasource mfinishe true onfail new runtimeexception onfailureimpl cache return file private file getcacheresource if imagerequ null return null filecache mainfilecache imagepipelinefactory getinstance getmainfilecache cachekey cachekey defaultcachekeyfactory getinstance getencodedcachekey imagerequ false file cachefile null if mainfilecache haskey cachekey cachefile filebinaryresource mainfilecache getresource cachekey getfile return cachefile applog e getcacheresource tempfile return null workerthread protect abstract void onprogress int progress workerthread protect abstract void onsuccess file image workerthread protect abstract void onfail throwable t use imagerequ imagerequ imagerequestbuilder newbuilderwithsource uri parse appimage formaturl absurl setlowestpermittedrequestlevel imagerequ requestlevel full fetch setcachechoice imagerequ cachechoice default build file imagefile getcachefile imagerequ if imagefile exist handler sendemptymessage 2 imagepath imagefile getabsolutepath uri uri uri fromfile imagefile message msg handler obtainmessage 3 msg obj uri handler sendmessage msg return download fresco getimagepipeline prefetchtodiskcache imagerequ false monitor datasource source fresco getimagepipeline fetchencodedimage imagerequ true source subscribe new imagedownloadsubscriber imagerequ override protect void onprogress int progress override protect void onsuccess file image handler sendemptymessage 2 if image null applog d imagedownloadsubscriber image path image getabsolutepath imagepath image getabsolutepath uri uri uri fromfile image message msg handler obtainmessage 3 msg obj uri handler sendmessage msg else applog d imagedownloadsubscriber image be null handler sendemptymessage 4 override protect void onfail throwable t applog d imagedownloadsubscriber errmsg t getlocalizedmessage handler sendemptymessage 2 handler sendemptymessage 4 new defaultexecutorsupplier runtime getruntime availableprocessor forbackgroundtask private file getcachefile final imagerequ request filecache mainfilecache imagepipelinefactory getinstance getmainfilecache final cachekey cachekey defaultcachekeyfactory getinstance getencodedcachekey request false file cachefile request getsourcefile if mainfilecache haskey cachekey cachefile filebinaryresource mainfilecache getresource cachekey getfile return cachefile in most case it be work properly but sometimes the file from callback method of onsuccess file image image be null and sometimes the file be not null but these code uri uri uri fromfile image inputstream be null try be new fileinputstream uri getpath catch filenotfoundexception e applog e getimagetype errmsg e getlocalizedmessage catch filenotfoundexception in the case of these failure when I load the image second time file imagefile getcachefile imagerequ the imagefile exist be true it prove that the image have be cache successful how do I monitor or judge the image have be really cache and get a not null imagefile |
facebookfresco | try to use a recycle bitmap android graphic bitmap | Question | public static void dispaly string url imageview imageview imagepipeline imagepipeline fresco getimagepipeline imagerequestbuilder builder imagerequestbuilder newbuilderwithsource geturi url imagerequ request builder build datasource datasource imagepipeline fetchdecodedimage request duapplicaiton getinstance datasource subscribe new basebitmapdatasubscriber override protect void onnewresultimpl bitmap bitmap imageview setimagebitmap bitmap override protect void onfailureimpl datasource datasource callerthreadexecutor getinstance the code run in android 6 0 1 exception my phone os be cm13 but the code can run normally in other android os |
facebookfresco | disable downsampling for a single request | Bug | in general I want to use downsampling but would like to disable it for a single request where I be get an image strip that be considerably large than allow to render on android for example the image be 40x4000 100 frame I m process the image create an animate drawable from the 100 frame which be then render in sequence at 40x40 if I enable downsample I get a 20x2000 image be there any way to explicitly disable downsampling for a particular image request I try set resize option but it didn t seem to help probably because it isn t a jpg file |
facebookfresco | java lang unsatisfiedlinkerror dlopen fail | Bug | recently we ve encounter several strange problem in system loadlibrary it crash in dlopen with several different msg they be 1 bad file number java lang unsatisfiedlinkerror dlopen fail datum app lib tv danmaku bili 2 libimagepipeline so phdr mmap fail bad file number 2 have no loadable segemnt java lang unsatisfiedlinkerror dlopen fail datum app lib tv danmaku bili 1 libimagepipeline so have no loadable segment 3 invalid argument java lang unsatisfiedlinkerror can not load library load library linker cpp 785 can t load program header table datum app lib tv danmaku bili 2 libimagepipeline so invalid argument 4 bad elf magic java lang unsatisfiedlinkerror dlopen fail datum app tv danmaku bili 1 lib arm libimagepipeline so have bad elf magic we have many other native lib but the problem seem only occur in fresco s so it seem only happend in libimagepipeline so and libmemtrunk so it can not be reproduce and we know the crash in our crash system fresco version 0 11 0 android system distribution 4 4 4 api 19 39 85 4 3 api 18 19 13 4 4 2 api 19 11 99 5 1 1 api 22 11 06 4 2 2 api 17 6 49 manufacturer most in xiaomi and vivo |
facebookfresco | java lang nosuchmethoderror android os statfs getblocksizelong in android 4 3 operating system oppo brand mobile phone | Bug | fresco 0 14 1 in android 4 3 operating system oppo brand mobile phone java lang nosuchmethoderror android os statfs getblocksizelong at com facebook common statfs statfshelper getavailablestoragespace statfshelper java 137 at com facebook common statfs statfshelper testlowdiskspace statfshelper java 114 at com facebook cache disk diskstoragecache updatefilecachesizelimit diskstoragecache java 584 at com facebook cache disk diskstoragecache maybeevictfilesincachedir diskstoragecache java 485 at com facebook cache disk diskstoragecache startinsert diskstoragecache java 342 at com facebook cache disk diskstoragecache insert diskstoragecache java 377 at com facebook imagepipeline cache buffereddiskcache writetodiskcache buffereddiskcache java 364 at com facebook imagepipeline cache buffereddiskcache access 500 buffereddiskcache java 38 at com facebook imagepipeline cache buffereddiskcache 3 run buffereddiskcache java 243 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1080 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 573 at java lang thread run thread java 838 |
facebookfresco | how can I track the imagerequ downloadtime decodetime totaltimecost label question | Question | I want to make statistic of image request time cost but only find cachetrack I want to know how to get each image request s download time cost total time cost and so on |
facebookfresco | imageinfo incorrect for rotate image | Bug | when auto rotate be enable it seem that the imageinfo return in the controllerlistener onfinalimageset be wrong for image that be rotate namely if I have a 50x100 image with rotation 90 fresco will auto rotate this as 100x50 and display the image as wide but the imageinfo will report the image as have 50x100 controllerlistener listener new basecontrollerlistener override public void onfinalimageset string i d nullable imageinfo imageinfo nullable animatable animatable int width imageinfo getwidth report 50 int height imageinfo getheight report 100 draweecontroller controller fresco newdraweecontrollerbuilder seturi uri setcontrollerlistener listener build draweeview setcontroller controller be this intend if it be be there a way to detect if a rotation occur I be try to have image load in that be full width but variable height with the image s intend aspect ratio as describe in this so post 34075281 |
facebookfresco | basebitmapdatasubscriber not be call | Question | hi I be try to reuse the bitmap from fresco because I need to set as background in another view the problem it s the basebitmapdatasubscriber it s not be call here s my code private void getfrescoimage string url to get image use fresco uri uri uri parse url imagepipeline imagepipeline fresco getimagepipeline imagerequ imagerequ imagerequ fromuri uri datasource datasource imagepipeline fetchdecodedimage imagerequ context callerthreadexecutor threadexecutor callerthreadexecutor getinstance the code be execute until here try datasource subscribe new basebitmapdatasubscriber override public void onnewresultimpl nullable bitmap bitmap if bitmap null log d tag bitmap datum source return success but bitmap null return simpledraweeview setimagebitmap bitmap setcardbackground bitmap setrecycleritemanimation cardview getadapterposition the bitmap provide to this method be only guarantee to be around for the lifespan of this method the image pipeline free the bitmap s memory after this method have complete this be fine when pass the bitmap to a system process as android automatically create a copy if you need to keep the bitmap around look into use a basedatasubscriber instead of a basebitmapdatasubscriber override public void onfailureimpl datasource datasource no cleanup require here threadexecutor finally if datasource null datasource close |
facebookfresco | animate gif pause unpause | Question | just want to be sure be this function not support or I overlook it thank you |
facebookfresco | why react native use fresco 0 11 0 | Question | can t I replace to fresco 0 14 0 look forward to your reply |
facebookfresco | question be it necessary to call bitmap recycle | Question | as fresco lib s instruction after decode and push the bitmap into ashmem we call pinbitmap to prevent it from reclaim by the system after the bitmap isn t use anymore we recycle it by call bitmap recycle to unpin it but I try not call bitmap recycle in both of my application and fresco sample bitmap be still recycle by garbage collector the bitmap be not leak in memory so be it necessary to call bitmap recycle thank in advance |
facebookfresco | the image have rough edge | Bug | qq 20161101190205 |
facebookfresco | I have a problem about loading gif the url be | Bug | I have a problem about loading gif the url be fresco load success but can t play it this problem be just for the specific url |
facebookfresco | hierarchy setplaceholderimage null not work since 0 14 | Bug | hello at first I have only low resolution image and load it with my placeholder drawable hierarchy setplaceholderimage photoloadingdrawable imageview setimageuri lowresurl next I fetch high resolution image url from api and if low resolution image be already in cache I show low resolution image as a preview while high resolution image be load there placeholder be set to null and low resolution image be act as a placeholder hierarchy setplaceholderimage null draweecontroller controller fresco newdraweecontrollerbuilder setlowresimagerequest imagerequ fromuri lowresurl setimagerequ imagerequ fromuri highresurl setoldcontroller imageview getcontroller build imageview setcontroller controller when I upgrade from 0 13 to 0 14 both 0 14 0 and 0 14 1 this solution break I see low resolution image first then when I get high resolution image url I see placeholder and then high res image |
facebookfresco | oom error even with relatively small resize and downsample jpgs in recyclerview | Question | in my activity I have a single recyclerview widget that display an image and text when user push a button to request more photo image url be fetch asynchronously in batch of 24 at a time for testing purpose only these image be jpgs that be originally 640x 480 pxs in size these be the small high re photo I can obtain but the application resize they down to 320 x 180 pxs just enough to prevent blurriness the xml for my viewholder contain a simpledraweeview and have the follow setup xml in my recyclerview adapter class I have an inner class for my viewholder I have a method binddata itemmodel item that bind the datum to the viewholder simpledraweeview itemthumbnail and textview not show java uri uri uri parse item getthumbnailurl imagerequestbuilder request imagerequestbuilder newbuilderwithsource uri request setresizeoption new resizeoption 320 180 request setprogressiverenderingenable true draweecontroller controller fresco newdraweecontrollerbuilder setimagerequ request build setoldcontroller itemthumbnail getcontroller build itemthumbnail setcontroller controller and my adapter keep a running list of my itemmodel like this private list videolist now in the application class globalstate I have configure the imagepipeline and initialize fresco as follow I research several closed bug report and the fresco doc that suggest to implement a memorytrimmableinterface and make attempt to do that java public class globalstate extend application private list trimmable new arraylist override public void oncreate super oncreate imagepipelineconfig config imagepipelineconfig newbuilder this setdownsampleenable true setmemorytrimmableregistry new memorytrimmableregistry override public void registermemorytrimmable memorytrimmable trimmable trimmable add trimmable log d global state trimmable size trimmable size override public void unregistermemorytrimmable memorytrimmable trimmable build fresco initialize this config override public void ontrimmemory int level if level trim memory moderate fresco getimagepipelinefactory getencodedcountingmemorycache clear fresco getimagepipelinefactory getbitmapcountingmemorycache clear if trimmable isempty for memorytrimmable t trimmable log d config debug application trimmable t t trim memorytrimtype onclosetodalvikheaplimit t trim memorytrimtype onsystemlowmemorywhileappinforeground fresco getimagepipeline cleardiskcache fresco getimagepipeline clearcache super ontrimmemory level problem now if I run my application the recyclerview load the viewholder and display the image relatively quickly once 200 image have load I notice the recyclerview scrolling become a bit slow however every time I reach viewholder position 300 or more my application crash with an oom error 0 31 14 06 01 470 4006 4776 bytesize productproject productproject e art throw outofmemoryerror fail to allocate a 307212 byte allocation with 152872 free byte and 149 kb until oom 10 31 14 06 01 580 4006 4776 bytesize productproject productproject e androidruntime fatal exception thread 492 process bytesize productproject productproject pid 4006 java lang outofmemoryerror fail to allocate a 307212 byte allocation with 152872 free byte and 149 kb until oom at dalvik system vmruntime newnonmovablearray native method at android graphic bitmap nativecreate native method at android graphic bitmap createbitmap bitmap java 939 at android graphic bitmap createbitmap bitmap java 912 at android graphic bitmap createbitmap bitmap java 879 at com facebook imagepipeline memory bitmappool alloc bitmappool java 55 at com facebook imagepipeline memory bitmappool alloc bitmappool java 30 at com facebook imagepipeline memory basepool get basepool java 259 at com facebook imagepipeline platform artdecoder decodestaticimagefromstream artdecoder java 137 at com facebook imagepipeline platform artdecoder decodejpegfromencodedimage artdecoder java 120 at com facebook imagepipeline decoder imagedecoder decodejpeg imagedecod java 149 at com facebook imagepipeline decoder imagedecoder decodeimage imagedecod java 82 at com facebook imagepipeline producer decodeproducer progressivedecoder dodecode decodeproducer java 194 at com facebook imagepipeline producer decodeproducer progressivedecoder access 200 decodeproducer java 97 at com facebook imagepipeline producer decodeproducer progressivedecoder 1 run decodeproducer java 129 at com facebook imagepipeline producers jobscheduler dojob jobscheduler java 207 at com facebook imagepipeline producers jobscheduler access 000 jobscheduler java 27 at com facebook imagepipeline producers jobscheduler 1 run jobscheduler java 78 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1112 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 587 at com facebook imagepipeline core prioritythreadfactory 1 run prioritythreadfactory java 43 at java lang thread run thread java 818 10 31 14 06 01 650 4006 4775 bytesize productproject productproject e art throw outofmemoryerror fail to allocate a 307212 byte allocation with 160184 free byte and 156 kb until oom and just prior in my logcat I notice this 10 31 14 12 07 677 27718 27725 bytesize productproject productproject a art art runtime runtime cc 284 heaptrimmerdaemon prio 5 tid 8 wait 10 31 14 12 07 677 27718 27725 bytesize productproject productproject a art art runtime runtime cc 284 wait on 0x1d6edc75 a java lang daemon heaptrimmerdaemon 10 31 14 12 07 677 27718 27725 bytesize productproject productproject a art art runtime runtime cc 284 at java lang daemon heaptrimmerdaemon run daemon java 314 10 31 14 12 07 677 27718 27725 bytesize productproject productproject a art art runtime runtime cc 284 lock 0x1d6edc75 a java lang daemon heaptrimmerdaemon be there anyway to resolve this I be hope I could release simpledraweeviews that I have already surpass in the recyclerview because they aren t be show anyway to free up some memory space but I be not sure how to do this or if there be a well method to handle this type of scenario oprisnik or kirwan who I have see respond to these type of issue any tip thank you |
facebookfresco | android studio 2 2 2 after the introduction of the xml version of the 0 10 1 property without prompt | Enhancement | android studio 2 2 2 after the introduction of the xml version of the 0 10 1 property without prompt |
facebookfresco | how to judge this be a cache image in onfinalimageset | Question | I be count the image loading time consume the need to distinguish whether the image be load from the cache include memory cache and file cache I find a callback in onfinalimageset but there be no parameter about that be there any way to do this thank |
facebookfresco | manually add cache | Question | my current approach be this imagerequ imagerequ imagerequestbuilder newbuilderwithsource uri build cachekey bitmapcachekey defaultcachekeyfactory getinstance getbitmapcachekey imagerequ diskstoragecache maindiskstoragecache fresco getimagepipelinefactory getmaindiskstoragecache try maindiskstoragecache insert bitmapcachekey new writercallback override public void write outputstream os throw ioexception byte bytes httpurlconnhelper loadbytefromurl childentity cover if byte null os write bytes os close catch ioexception e e printstacktrace do you manually add the cache to the right |
facebookfresco | how to extend imagerequ | Question | I have a bean name photo the bean have more than one imageurl so I should use setfirstavailableimagerequest I want to use photo i d to generate the cachekey for follow reason 1 I want to use photo i d to generate the cachekey because all of it s url can share the same cache 2 when I want to fetchbitmapcache I can just use the photo I d to fetch because the I don t know which url fetch the image for the feature I need to extend imagerequ and add a string field name mcachekey and override cachekeyfactory and use imagerequ mcachekey to getcache be there any well way for the feature |
facebookfresco | duplicate entry android support v4 print printhelper printhelperstubimpl class fresco build error be anyone have this problem | Question | error execution fail for task app transformclasseswithjarmergingfordebug com android build api transform transformexception java util zip zipexception duplicate entry android support v4 print printhelper printhelperstubimpl class |
facebookfresco | race condition lead to outofbound in forwardingcontrollerlistener | Bug | hello I m get a strange crash when load a simple local gif 10 18 18 00 57 522 8284 8284 com goodrun android debug d androidruntime shut down vm fatal exception main process com goodrun android debug pid 8284 java lang indexoutofboundsexception invalid index 1 size be 1 at java util arraylist throwindexoutofboundsexception arraylist java 255 at java util arraylist get arraylist java 308 at com facebook drawee controller forwardingcontrollerlistener onfinalimageset forwardingcontrollerlistener java 91 at com facebook drawee controller abstractdraweecontroller onnewresultinternal abstractdraweecontroller java 524 at com facebook drawee controller abstractdraweecontroller access 000 abstractdraweecontroller java 47 at com facebook drawee controller abstractdraweecontroller 1 onnewresultimpl abstractdraweecontroller java 469 at com facebook datasource basedatasubscriber onnewresult basedatasubscriber java 48 at com facebook datasource abstractdatasource 1 run abstractdatasource java 181 at android os handler handlecallback handler java 739 at android os handler dispatchmessage handler java 95 at android os looper loop looper java 148 at android app activitythread main activitythread java 5417 at java lang reflect method invoke native method at com android internal os zygoteinit methodandargscaller run zygoteinit java 726 at com android internal os zygoteinit main zygoteinit java 616 |
facebookfresco | huge bitmap round with bitmap shader be black | Bug | this occur on specific device zte blade possible may be reproduce on another device I simplify round demo from source so it show only one image with scaletype center and round method bitmap only I also change image to big one result on zte be bitmap shader zte same code but with round method overlay color work well overlay color zte same code without any rounding work well too and no problem on nexus 6 and other device with any rounding method in our application this bug reproduce in two way we be use bitmap only method 1 image be load black and stay black 2 image be load well but then another image on the screen be load for example when we scroll recycler view the first one become black when another image scroll away the first one become normal again you can see it on the video the black be in the middle on the screen image which win t load at all as in demo and in the right up corner there be image which appear and disappear while image in bottom recycler view loading unloading view attach detache from window without round we have no problem at all so I assume there be some problem in roundedbitmapdrawable which use bitmap shader to round corner |
facebookfresco | could I custom producer and set it to imagepipeline to load image for special case | Question | as I know fresco support custom network fetcher but I want to customize some local file fetcher to load image from disk be there any interface for imagepipeline to customize the produer the case be I have some video with private file format and I want get thumbnail from they not like the general video I can get thumbnail through uri format file and it will be auto process by localvideothumbnailproducer for those private video if I want to get thumnail through fresco I must custome the producer to replace the normal producer therefore I can take advantage of fresco and cache management to simplify my code be be possible for fresco to customize the producer pipeline |
facebookfresco | question be there a way to remove all other cache if not in a special url list | Enhancement | I have a requirement to just remove all other image cache if not in a special url list I do not know if there be a way to do this |
facebookfresco | prefetchtobitmapcache not support post process | Question | java fresco getimagepipeline prefetchtobitmapcache imagerequestbuilder newbuilderwithsource uri parse url setpostprocessor new xxxpostprocessor build null xxxpostprocessor process not execute change prefetchtobitmapcache to fetchdecodedimage xxxpostprocessor process will be excute |
facebookfresco | why doesn t my project use the fresco | Question | I be build with gradle and add the follow line to the dependency section of my build gradle file compile com facebook fresco fresco 0 14 0 but my project or an error k93 56v8x o8dr 61 9bs 3k 5g7iipbkuq l lnv yb |
facebookfresco | illegal rotation angle cause exception with default rotationoption | Bug | recently the library in our project be upgrade to 0 14 0 sometimes get the follow exception e unknown transformingconsumer unhandled exception java lang illegalargumentexception at com facebook common internal precondition checkargument precondition java 108 at com facebook imagepipeline producer resizeandrotateproducer getrotationangle resizeandrotateproducer java 288 at com facebook imagepipeline producer resizeandrotateproducer shouldrotate resizeandrotateproducer java 301 at com facebook imagepipeline producer resizeandrotateproducer shouldtransform resizeandrotateproducer java 228 at com facebook imagepipeline producer resizeandrotateproducer access 600 resizeandrotateproducer java 43 at com facebook imagepipeline producers resizeandrotateproducer transformingconsumer onnewresultimpl resizeandrotateproducer java 128 at com facebook imagepipeline producers resizeandrotateproducer transformingconsumer onnewresultimpl resizeandrotateproducer java 76 at com facebook imagepipeline producer baseconsumer onnewresult baseconsumer java 49 at com facebook imagepipeline producer addimagetransformmetadataproducer addimagetransformmetadataconsumer onnewresultimpl addimagetransformmetadataproducer java 48 at com facebook imagepipeline producer addimagetransformmetadataproducer addimagetransformmetadataconsumer onnewresultimpl addimagetransformmetadataproducer java 32 at com facebook imagepipeline producer baseconsumer onnewresult baseconsumer java 49 at com facebook imagepipeline producer multiplexproducer multiplexer onnextresult multiplexproducer java 442 at com facebook imagepipeline producer multiplexproducer multiplexer forwardingconsumer onnewresultimpl multiplexproducer java 499 at com facebook imagepipeline producer multiplexproducer multiplexer forwardingconsumer onnewresultimpl multiplexproducer java 496 at com facebook imagepipeline producer baseconsumer onnewresult baseconsumer java 49 at com facebook imagepipeline producers encodedmemorycacheproducer 1 onnewresultimpl encodedmemorycacheproducer java 94 at com facebook imagepipeline producers encodedmemorycacheproducer 1 onnewresultimpl encodedmemorycacheproducer java 89 at com facebook imagepipeline producer baseconsumer onnewresult baseconsumer java 49 at com facebook imagepipeline producer diskcacheproducer diskcacheconsumer onnewresultimpl diskcacheproducer java 234 at com facebook imagepipeline producer diskcacheproducer diskcacheconsumer onnewresultimpl diskcacheproducer java 206 at com facebook imagepipeline producer baseconsumer onnewresult baseconsumer java 49 at com facebook imagepipeline producer networkfetchproducer notifyconsumer networkfetchproducer java 168 at com facebook imagepipeline producer networkfetchproducer maybehandleintermediateresult networkfetchproducer java 145 at com facebook imagepipeline producer networkfetchproducer onresponse networkfetchproducer java 104 at com facebook imagepipeline producer networkfetchproducer access 000 networkfetchproducer java 37 at com facebook imagepipeline producer networkfetchproducer 1 onresponse networkfetchproducer java 72 at com facebook imagepipeline producer httpurlconnectionnetworkfetcher fetchsync httpurlconnectionnetworkfetcher java 83 at com facebook imagepipeline producer httpurlconnectionnetworkfetcher 1 run httpurlconnectionnetworkfetcher java 61 at java util concurrent executors runnableadapter call executor java 422 at java util concurrent futuretask run futuretask java 237 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1112 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 587 at java lang thread run thread java 841 after debug the code find that it cause by the illegal rotation angle 1 the default value in the encodedimage for some reason it fail to decode the dimension information which mean the follow expression return null in the encodedimage java pair dimensions bitmaputil decodedimension getinputstream I think mrotationangle should be set to zero in this case right |
facebookfresco | java security cert certpathvalidatorexception trust anchor for certification path not foun | Question | how to ignore the https certificate |
facebookfresco | strange transcoder error java lang runtimeexception bogus huffman table definition | Bug | I create custom view with multidraweeholder in this view I have the custom logic for draw several image main big image and two row below whith preview but some image take this stack java lang runtimeexception bogus huffman table definition at com facebook imagepipeline nativecode jpegtranscoder nativetranscodejpeg native method at com facebook imagepipeline nativecode jpegtranscoder transcodejpeg jpegtranscoder java 66 at com facebook imagepipeline producers resizeandrotateproducer transformingconsumer dotransform resizeandrotateproducer java 154 at com facebook imagepipeline producers resizeandrotateproducer transformingconsumer access 000 resizeandrotateproducer java 72 at com facebook imagepipeline producer resizeandrotateproducer transformingconsumer 1 run resizeandrotateproducer java 89 at com facebook imagepipeline producers jobscheduler dojob jobscheduler java 207 at com facebook imagepipeline producers jobscheduler access 000 jobscheduler java 27 at com facebook imagepipeline producers jobscheduler 1 run jobscheduler java 78 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1113 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 588 at com facebook imagepipeline core prioritythreadfactory 1 run prioritythreadfactory java 43 at java lang thread run thread java 818 image for example please help I thanx ps there be my custom view implementation galleriesarticleview txt |
facebookfresco | simpledraweeview black filckering on replacement image | Enhancement | I be try to replace mutiple image from local storage use the same simpledraweeview how avoid the black flickering after a while the black flickering disappear and work well see the video I be only do msimpledraweeview setimageuri file imageslist get index I be use com facebook fresco fresco 0 13 0 thank |
facebookfresco | how fresco render the image without display to screen and listen the progress | Question | I have struggle the problem for a long time the situation be I need to download a picture from network to simpledraweeview and transfer it to a bitmap object when it load complete the question be if simpledraweeview doesn t display to the screen it seem not start load |
facebookfresco | how to get http response header | Enhancement | in my case some value store in http response header how to get it |
facebookfresco | update fresco source from master seem to make animate webp need api 10 download webp picture | Bug | hello I ve update my repo up to this commit from fresco master source build my app be ok but on run when webp transcode be do to a non animate webp app crash with this error message fatal exception thread 17 java lang noclassdeffounderror com facebook animate webp webpimage at java lang runtime nativeload native method at java lang runtime loadlibrary runtime java 432 at java lang system loadlibrary system java 554 at com facebook common soloader soloadershim defaulthandler loadlibrary soloadershim java 32 at com facebook common soloader soloadershim loadlibrary soloadershim java 56 at com facebook imagepipeline nativecode staticwebpnativeloader ensure staticwebpnativeloader java 35 at com facebook imagepipeline nativecode webptranscoderimpl transcodewebptojpeg webptranscoderimpl java 57 at com facebook imagepipeline producer webptranscodeproducer dotranscode webptranscodeproducer java 185 at com facebook imagepipeline producer webptranscodeproducer access 300 webptranscodeproducer java 38 at com facebook imagepipeline producer webptranscodeproducer 1 getresult webptranscodeproducer java 111 at com facebook imagepipeline producer webptranscodeproducer 1 getresult webptranscodeproducer java 106 at com facebook common executor statefulrunnable run statefulrunnable java 45 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1088 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 581 at com facebook imagepipeline core prioritythreadfactory 1 run prioritythreadfactory java 43 at java lang thread run thread java 1019 cause by java lang classnotfoundexception com facebook animate webp webpimage in loader dalvik system pathclassloader datum app net opalesurfcaste lamaille 2 apk at dalvik system pathclassloader findclass pathclassloader java 240 at java lang classloader loadclass classloader java 551 at java lang classloader loadclass classloader java 511 thank eric ps I try now to add module animate webp to my project as a workaround |
facebookfresco | diskstoragecache mlock problem | Bug | as we see when new diskstoragecache class it could use a background thread to calculate the cache size which may take long time and when I want to get a resource it must wait the initialization to complete because they use the same locker can this be optimize |
facebookfresco | memory keep grow in recyclerview | Question | I have a recyclerview inside the fragment when I scroll and load more item the memory will keep grow up although I already release simpledraweeview controller in onviewrecycler and onviewdetache memory from 130 mb grow to 210 mb I have set downsampling and resize the my image loadimage recycler viewdetach |
facebookfresco | how to get a collection of memorytrimmable object | Question | as doc say I can override activity ontrimmemory and excute memorytrimmable interface but how can I get memorytrimmable object can you provide a demo if your application listen to system memory event it can pass they over to fresco to trim memory cache the easy way for most app to listen to event be to override activity ontrimmemory you can also use any subclass of componentcallbacks2 you should have an implementation of memorytrimmableregistry this object should keep a collection of memorytrimmable object fresco s cache will be among they when get a system memory event you call the appropriate memorytrimmable method on each of the trimmable |
facebookfresco | where be trim function in memorytrimmable call | Question | I have download source code of 0 13 0 release in the comment trim function in memorytrimmable can trim memory but there be no caller to process this method as in the picture there s only 8 usage find trim |
facebookfresco | bug closeableobject could be close unsafely in multiplexproducer multiplexer onnextresult | Bug | closeableobject could be close unsafely in multiplexproducer multiplexer onnextresult com facebook imagepipeline producer multiplexproducer multiplexer onnextresult while iterator hasnext pair producercontext pair iterator next synchronize pair pair first onnewresult closeableobject isfinal the fail situation be submit two image request for the same url image but their width height be different in result one image request be successful one image request be fail e g image here closeableobject should be cloneornull closeableobject |
facebookfresco | round gif be not support how to get gif source | Enhancement | hi I get a problem I want to get the gif source load by fresco but I have no idea after I finish read doc can you help I |
facebookfresco | how to animate from circle to normal draweeview in share element transition | Enhancement | I use for example add fresco roundascircle true to simpledraweeview of drawee source xml the shape doesn t change smoothly |
facebookfresco | border not visible in rounded image | Bug | I m use the follow code to round the image and also try to set the border with it the result image be rounded but the border be not visible roundingparam roundingparam roundingparam ascircle roundingparam setroundascircle true roundingparam setborder android r color white 15 0f and set this as the rounding param as view getheirarchy setroundingparam roundingparam but still no border be see I also try set in xml but still no luck I m use the late version of fresco I e compile com facebook fresco fresco 0 13 0 |
facebookfresco | centercrop do not work | Bug | I be set a local uri for the image for the drawee and once the image load it doesn t centercrop when the image be not square there be always one side that be small than the respective width height as if no scaling type be be apply and the default fitcenter be be use I m also use fresco s scaletype as oppose to android scaletype since I read the android property be just ignore by fresco |
facebookfresco | app size increase by 1 mb | Question | hi we be try out fresco in our app and when we build the app the size of the app jump by over 1 mb be there a way we can reduce the size of the library we be not use any of the extra library just the basic one my build gradle look like dependency other dependency compile com facebook fresco fresco 0 13 0 also if I remove fresco and add uil the app size increase by only 0 1 mb thank in advance |
facebookfresco | dependency clean up | Enhancement | hi I find that each module of fresco depend on bolt and android support v4 but only few of they really use it for exemple animate gif have this two but I can not find the utility for the module can we consider do a dependency clean up |
facebookfresco | picture draw problem | Bug | excuse I but I have a problem code a123123 123123123 and the effect be 456456 here be the picture address I d also try to use center inside run on different phone use android hardwareaccelerate true but it doesn t work should I need to add some other code to solve this thank in advance |
facebookfresco | fadedrawable call invalidateself so many time when the picture be download | Bug | I have a recyclerview like this screen shoot I write a custom view follow this guide to show 0 9 picture to make the view scroll smooth I set the fade animation s duration be 0 and not set the progressbardrawable i except the custom view call ondraw time 1 init draweeholder count 1 placeholder drawable 1 actual drawable but I find the invalidatedrawable method call so many time I check the source code genericdraweehierarchy java line 278 public void setprogress float progress boolean immediate mfadedrawable beginbatchmode setprogress progress if immediate mfadedrawable finishtransitionimmediately mfadedrawable endbatchmode the invalidateself function call wether the progressbardrawable be set or not I think we can check progressbardrawable not null first then call the setprogress function |
facebookfresco | can I replace the default localvideothumbnailproducer for a request | Enhancement | localvideothumbnailproducer use thumbnailutil createvideothumbnail which fail to load thumbnail for certain hd video glide allow I to bypass this kind of default behavior by add a custom decoder to a request be there a mechanism to use a custom producer in fresco where I can use my own logic to extract the thumbnail |
facebookfresco | unknown image format exception | Bug | hello this issue be mention early but I create new bug to show pure example of how to reproduce it and why it happen I notice this issue when test my app on device with wifi disabled and 4 g enable but there be very important detail I have negative balance on my phone account so there be no actually internet on 4 g so how issue look like 1 I turn off wifi there be only 4 g work 2 I try to load image and get error 3 I enable wifi and try again image still not load that happen because my 4 g internet provider in case of negative balance return I html page like please add money to your account on every html request to show I it when I open some page in browser the bad thing be that fresco save this page to cache I find it there and try to decode it as image again and again so user will never see actual image event if internet available so maybe in case of decode exception well not to save corrupted datum to cache |
facebookfresco | how to clear the request queque | Question | hi in a particular case only single thread be support in the first activity a lot of request be send then I start a second activity and the first activity be not be finish there re also some request need to send in this activity but these request wouldn t be excute until request from the first activity be finish my server be not fast enough then I mush wait a long time so can anybody tell I how to cancel a request in the queque or how to clear the request queque any thought would be appreciate |
facebookfresco | use placeholder with progressive image throw java lang outofmemoryerror | Bug | uri muri uri parse murl imagerequ request imagerequestbuilder newbuilderwithsource muri setprogressiverenderingenable true build draweecontroller mcontroller fresco newdraweecontrollerbuilder setimagerequ request setoldcontroller msimpledraweeview getcontroller build msimpledraweeview setcontroller mcontroller placeholderimage size 7 kb cause by java lang outofmemoryerror dalvik system vmruntime newnonmovablearray vmruntime java android graphic bitmapfactory nativedecodeasset bitmapfactory java android graphic bitmapfactory decodestream bitmapfactory java 613 android graphic bitmapfactory decoderesourcestream bitmapfactory java 446 android graphic drawable drawable createfromresourcestream drawable java 988 android content re resource createfromresourcestream resource java 2822 android content re resource loaddrawableforcookie resource java 2523 android content re resource loaddrawable resource java 2421 android content re miuiresource loaddrawable miuiresource java 393 android content re resource getdrawable resource java 805 android content re resource getdrawable resource java 770 com facebook drawee generic genericdraweehierarchyinflater getdrawable genericdraweehierarchyinflater java 227 com facebook drawee generic genericdraweehierarchyinflater updatebuilder genericdraweehierarchyinflater java 116 com facebook drawee generic genericdraweehierarchyinflater inflatebuilder genericdraweehierarchyinflater java 77 com facebook drawee view genericdraweeview inflatehierarchy genericdraweeview java 58 com facebook drawee view genericdraweeview genericdraweeview java com facebook drawee view simpledraweeview simpledraweeview java java lang reflect constructor newinstance constructor java java lang reflect constructor newinstance constructor java 288 android view layoutinflater createview layoutinflat java 611 android view layoutinflater createviewfromtag layoutinflater java 747 android view layoutinflater rinflate layoutinflater java 810 android view layoutinflater rinflate layoutinflater java 813 android view layoutinflater inflate layoutinflat java 508 android view layoutinflater inflate layoutinflat java 418 com yappily adapter postdetailadapter oncreateviewholder postdetailadapter java 83 android support v7 widget recyclerview adapter createviewholder recyclerview java 5779 android support v7 widget recyclerview recycler getviewforposition recyclerview java 5003 android support v7 widget recyclerview recycler getviewforposition recyclerview java 4913 android support v7 widget linearlayoutmanager layoutstate next linearlayoutmanager java 2029 android support v7 widget linearlayoutmanager layoutchunk linearlayoutmanager java 1414 android support v7 widget linearlayoutmanager fill linearlayoutmanag java 1377 android support v7 widget linearlayoutmanag onlayoutchildren linearlayoutmanager java 578 android support v7 widget recyclerview dispatchlayoutstep2 recyclerview java 3260 android support v7 widget recyclerview dispatchlayout recyclerview java 3069 android support v7 widget recyclerview onlayout recyclerview java 3518 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android support v4 widget swiperefreshlayout onlayout swiperefreshlayout java 598 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget relativelayout onlayout relativelayout java 1077 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget relativelayout onlayout relativelayout java 1077 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget framelayout layoutchildren framelayout java 579 android widget framelayout onlayout framelayout java 514 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget linearlayout setchildframe linearlayout java 1703 android widget linearlayout layoutvertical linearlayout java 1557 android widget linearlayout onlayout linearlayout java 1466 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget framelayout layoutchildren framelayout java 579 android widget framelayout onlayout framelayout java 514 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget linearlayout setchildframe linearlayout java 1703 android widget linearlayout layoutvertical linearlayout java 1557 android widget linearlayout onlayout linearlayout java 1466 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android widget framelayout layoutchildren framelayout java 579 android widget framelayout onlayout framelayout java 514 android view view layout view java 15691 android view viewgroup layout viewgroup java 5039 android view viewrootimpl performlayout viewrootimpl java 2116 android view viewrootimpl performtraversal viewrootimpl java 1873 android view viewrootimpl dotraversal viewrootimpl java 1091 android view viewrootimpl traversalrunnable run viewrootimpl java 5926 android view choreographer callbackrecord run choreographer java 775 android view choreographer docallback choreographer java 588 android view choreographer doframe choreographer java 558 android view choreographer framedisplayeventreceiver run choreographer java 761 android os handler handlecallback handler java 739 android os handler dispatchmessage handler java 95 android os looper loop looper java 135 android app activitythread main activitythread java 5276 java lang reflect method invoke method java java lang reflect method invoke method java 372 com android internal os zygoteinit methodandargscaller run zygoteinit java 908 com android internal os zygoteinit main zygoteinit java 703 |
facebookfresco | avoid resize large image bitmap | Enhancement | I m use fresco to process bitmap but when the image be large the process bitmap reduce half the image spec original image spec height 4032 width 3024 size 4 65 mb process image spec height 2016 width 1512 size 595 kb there be a way to avoid that I mean to keep the image spec and only reduce the image size my code uri uriphoto uri parse file path imagerequ imagerequ imagerequestbuilder newbuilderwithsource uriphoto build imagepipeline imagepipeline fresco getimagepipeline datasource datasource imagepipeline fetchdecodedimage imagerequ context datasource subscribe new basebitmapdatasubscriber override public void onnewresultimpl nullable bitmap bitmap if bitmap null string s formatter formatfilesize context bitmap getallocationbytecount 10 string builder process image spec path n height bitmap getheight nwidth bitmap getwidth nsize s logger info builder override public void onfailureimpl datasource datasource no cleanup require here callerthreadexecutor getinstance my application imagepipelineconfig config imagepipelineconfig newbuild application setbitmapsconfig bitmap config rgb 565 setdownsampleenable true build fresco initialize application config I m use the version 0 8 1 thank |
facebookfresco | cmyk support | Bug | hi I m on the samsung sm g3818android4 2 2 picture do not show up this be my picture address https dn runedu img qbox I 5324277294619549696 adjustment resizeoption on other mobile phone and some can not be display public static void showimageenty simpledraweeview view string url int width int height int imageresouse if url null view setimageuri uri parse re com zjcs student imageresouse else uri uri uri parse url imagerequ request imagerequestbuilder newbuilderwithsource uri setresizeoption new resizeoption width height build draweecontroller controller fresco newdraweecontrollerbuilder setoldcontroller view getcontroller setautoplayanimation true setimagerequ request build view setcontroller controller imageutil showimageenty itemholder grouplogo info getimgurl screenutil dp2px activity 48 screenutil dp2px activity 48 r drawable home def type |
facebookfresco | set the corner with the border the outermost layer will have a pixel shadow how to solve this | Enhancement | |
facebookfresco | how can change to another end point | Enhancement | I use com facebook fresco fresco 0 12 0 com facebook fresco imagepipeline okhttp3 0 12 0 I have 4 different server get image from the server must need own http session so I initalize fresco when create activity every time override protect void oncreate bundle savedinstancestate if mrequ getsource equal a base url fresco initialize mfolderdetailview getcontext imagepipelineconfigfactory getnewokhttpimagepipelineconfig mfolderdetailview getcontext a restfuladapter getclient else if mrequ getsource equal b base url fresco initialize mfolderdetailview getcontext imagepipelineconfigfactory getnewokhttpimagepipelineconfig mfolderdetailview getcontext b restfuladapter getclient else if mrequ getsource equal c base url fresco initialize mfolderdetailview getcontext imagepipelineconfigfactory getnewokhttpimagepipelineconfig mfolderdetailview getcontext c restfuladapter getclient else fresco initialize mfolderdetailview getcontext imagepipelineconfigfactory getnewokhttpimagepipelineconfig mfolderdetailview getcontext a restfuladapter getclient work be fine but have nativememory leak I afraid of oom log be right this nativememorychunk finalize chunk 267867b0 still active underlying address 2fcca010 be fresco initalize only way change to another end point or how can change to another end point |
facebookfresco | disk cache management wrong byte size | Question | hi guy work now on the android version of an ios app I m try to use fresco the same way that what I have do on the io version of the app here be what I do not succeed to recreate on android 1 a user upload an image I get the size in byte of the uploaded jpeg quality 60 and add it to my object firebase 2 other user can download this image consequence the image be cache 3 I have create an helper function that grab the cache image with a custom key because like aw the uri to the image change compare the byte size of the cache jpg to the value store on the object 2 possibility same size I display the cache version different size I get the download url from firebase storage then I download the image and store it with the custom key so if I replace an image directly in the server with the same name I update the size to the correct one on the server object user will update the image to display the new one it work like a charm on io on android I have instal fresco and try to mimic the same behavior for now I do not manage the 1 upload that s fine I have plenty of image to grab form the server the problematic part be store the file in the cache with the custom key grade the size that I should have and should be same as server here be the code involve please help I to understand why there be a difference in byte size first part check if the key exist in the cache if yes grab the resource else download then store in cache please note that I m not use a drawee which be sad if you have a well solution or understand the problem I d love to know about last here be a sample size on server and io cache 60 23ko size on android from cache 36 12ko static public void loadimageinview final imageview imageview string bucket string name firebasestorage storage firebasestorage getinstance storagereference storageref storage getreferencefromurl dataservice bucket root final cachekey key new simplecachekey bucket name filecache cache fresco getimagepipelinefactory getmainfilecache cache read if cache haskey key binaryresource resource cache getresource key try final byte bytearray resource read bitmap bitmap bitmapfactory decodebytearray bytearray 0 bytearray length bytearrayoutputstream stream new bytearrayoutputstream bitmap compress bitmap compressformat jpeg 60 stream final byte bytecompressedarray stream tobytearray int sizejpeg bytecompressedarray length imageview setimagebitmap bitmap catch ioexception e e printstacktrace else I grab the image storageref child dataservice bucket setup name getdownloadurl addonsuccesslistener new onsuccesslistener override public void onsuccess uri uri imagepipeline imagepipeline fresco getimagepipeline imagerequ imagerequ imagerequestbuilder newbuilderwithsource uri setrequestpriority priority high setlowestpermittedrequestlevel imagerequ requestlevel full fetch build datasource datasource imagepipeline fetchdecodedimage imagerequ context try datasource subscribe new basebitmapdatasubscriber override public void onnewresultimpl nullable bitmap bitmap if bitmap null log d uri image loader bitmap datum source return success but bitmap null return display image imageview setimagebitmap bitmap cache recording try bytearrayoutputstream stream new bytearrayoutputstream bitmap compress bitmap compressformat jpeg 60 stream final byte bytearray stream tobytearray fresco getimagepipelinefactory getmainfilecache insert key new writercallback override public void write outputstream os throw ioexception os write bytearray catch ioexception cachewriteexception override public void onfailureimpl datasource datasource no cleanup require here callerthreadexecutor getinstance finally if datasource null datasource close addonfailurelistener new onfailurelistener override public void onfailure nonnull exception e log d uri image loader bitmap datum source return success but bitmap null thank guy matthieu |
facebookfresco | be it possible to turn off disk cache | Question | I know it s a very specific feature but we can t save anything on a disk because of security reason so far I find only method for delete the exist cache such as cleardiskcache and evictfromdiskcache how to prevent to save anything on a disk |
facebookfresco | upgrade webp lib from 0 4 3 to 0 5 1 | Enhancement | in the new version there be a lot of improvement for mobile device |
facebookfresco | about draweecontroller question | Question | injectview r i d simpledraweeview simpledraweeview simpleview injectview r i d simpleview simpledraweeview simpledraweeview uri uri uri parse imagerequ request imagerequestbuilder newbuilderwithsource uri setprogressiverenderingenable true build controller fresco newdraweecontrollerbuilder setimagerequ request settaptoretryenable true setoldcontroller simpledraweeview getcontroller setcontrollerlistener listener build simpledraweeview setcontroller controller simpleview setcontroller controller why do I find the first simpledraweeview have no loading image resource the second simpleview load image exactly do not that view share the same controller english be not very well please excuse I |
facebookfresco | store in the cache | Question | hi d I want to know the duration of cache storage fresco memorycache and diskcache how much for a long time a store |
facebookfresco | big memory issue because of rn s and fresco s usage of object finalize | Duplicate | it s from react native issue place it here just because hope for someone s attention |
facebookfresco | toomanybitmapsexception cause no display again | Duplicate | this problem have be issue many time but I don t think it have be solve I add a comment at the bottom of this issue the image will not show after a long time run if you have a lot of picture to render because of toomanybitmapsexception but imagepipeline clearcache or shutdown doesn t solve it I check the code in com facebook imagepipeline memory bitmapcounter and didn t find any code clear the mcount and msize to zero when you call clearcache so I think there may be something miss here |
facebookfresco | crash decode gif image to static image and it could lead to jni crash | Bug | decode gif image to static image and it could lead to jni crash com facebook imagepipeline decoder imagedecoder decodegif com facebook imagepipeline decoder imagedecod decodestaticimage crash on android 4 4 4 4 1 2 4 3 4 4 2 jni crash log as follow signal 11 sigsegv code 1 segv maperr fault addr deadbaad r0 00000000 r1 40136456 r2 deadbaad r3 40139fbb r4 7cdac0b8 r5 40144180 r6 400e5000 r7 7cdac0c0 r8 7c5f77d0 r9 7c5f73a8 10 7c5f7378 fp 00000200 ip 00000001 sp 7c5f72d0 lr 4010771f pc 40107720 cpsr 600f0030 00 pc 00011720 system lib libc so dlfree 1191 01 pc 0000dc6f system lib libc so free 10 02 pc 000fe179 system lib libskia so zn17skgifimagedecoder8ondecodeep8skstreamp8skbitmapn14skimagedecoder4modee 1064 03 pc 000fc41d system lib libskia so zn14skimagedecoder6decodeep8skstreamp8skbitmapns2 6configens 4modee 36 04 pc 001013ab system lib libskia so zn21skimageref globalpool8ondecodeep14skimagedecoderp18skstreamrewindablep8skbitmapns4 6configens0 4modee 12 05 pc 00100e17 system lib libskia so zn10skimageref13preparebitmapen14skimagedecoder4modee 102 06 pc 00100e5d system lib libskia so zn10skimageref12onlockpixelsepp12skcolortable 12 07 pc 000c969b system lib libskia so zn10skpixelref10lockpixelsev 38 08 pc 0009bc77 system lib libskia so znk8skbitmap10lockpixelsev 20 09 pc 00100cd7 system lib libskia so zn10skimageref8isopaqueep8skbitmap 18 10 pc 00077135 system lib libandroid runtime so 11 pc 0007732b system lib libandroid runtime so 12 pc 0001d30c system lib libdvm so dvmplatforminvoke 112 13 pc 0004d8db system lib libdvm so z16dvmcalljnimethodpkjp6jvaluepk6methodp6thread 398 14 pc 00026720 system lib libdvm so 15 pc 0002d790 system lib libdvm so z11dvmmterpstdp6thread 76 16 pc 0002adf4 system lib libdvm so z12dvminterpretp6threadpk6methodp6jvalue 184 17 pc 0005fd75 system lib libdvm so z14dvmcallmethodvp6threadpk6methodp6objectbp6jvaluest9 va list 336 18 pc 0005fd99 system lib libdvm so z13dvmcallmethodp6threadpk6methodp6objectp6jvaluez 20 19 pc 00054a93 system lib libdvm so 20 pc 0000d1d0 system lib libc so thread entry 72 21 pc 0000d368 system lib libc so pthread create 240 java backtrace at android graphic bitmapfactory nativedecodebytearray at android graphic bitmapfactory decodebytearray at com facebook imagepipeline platform kitkatpurgeabledecoder decodebytearrayaspurgeable at com facebook imagepipeline platform dalvikpurgeabledecoder decodefromencodedimage at com facebook imagepipeline decoder imagedecod decodestaticimage at com facebook imagepipeline decoder imagedecoder decodegif at com facebook imagepipeline decoder imagedecoder decodeimage at com facebook imagepipeline producer decodeproducer progressivedecoder dodecode at com facebook imagepipeline producer decodeproducer progressivedecoder onnewresultimpl |
facebookfresco | request how to disable draweeeventtracker | Enhancement | in our chat application fast scrolling of list of chat cause many call to draweeeventtracker that call draweeeventtracker that have arrayblockingqueue that lock thread for 15 for nothing on slow device do this even when log be not use at all it will be nice to have something to disable this call or change collection to more performant one |
facebookfresco | crash when init fresco | Question | after upgrade to 0 11 app crashs when init fresco private void frescoinit int maxheapsize int runtime getruntime maxmemory final int maxmemorycachesize maxheapsize 4 public static final int maxdiskcachesize 40 byteconstant mb final int maxdiskcachesize maxmemorycachesize 2 1000 1000 in mb imagepipelineconfig builder configbuilder okhttpimagepipelineconfigfactory newbuild this getangelnetinstance getclient imagepipelineconfig config okhttpimagepipelineconfigfactory newbuilder this getangelnetinstance getclient setdownsampleenable true setbitmapmemorycacheparamssuppli new supplier public memorycacheparam get return new memorycacheparam maxmemorycachesize max total size of element in the cache integer max value max entry in the cache maxmemorycachesize max total size of element in eviction queue integer max value max length of eviction queue integer max value max cache entry size setmaindiskcacheconfig diskcacheconfig newbuilder this setbasedirectorypath getapplicationcontext getcachedir setbasedirectoryname imagepipeline cache setmaxcachesize maxdiskcachesize build build fresco initialize this fresco initialize this config it thow a runtimeexception at com facebook imagepipeline core imagepipelineconfig imagepipelineconfig java 170 seem that mcustomlocalproducersequencefactory builder mcustomproducersequencefactory mimagepipelineexperiment builder mexperimentsbuilder build mcustomlocalproducersequencefactory init getexecutorsupplier getpoolfactory getpooledbytebufferfactory mimagepipelineexperiment isdecodefiledescriptorenable builder mcustomproducersequencefactory be null so mcustomlocalproducersequencefactory init throw the exception the default init method without config parameter be also not work what s wrong |
facebookfresco | be there any way to load part of a image | Enhancement | due to very specific need I need to load part of a image since the image be too long that exceed the 4096x4096 limit how to do that elegantly use fresco like the bold line follow genericdraweehierarchy hierarchy builder setfadeduration 300 setplaceholderimage new mycustomdrawable setbackground backgroundlist setoverlay overlayslist setcropregion 0 0 imagewidth 4096 build msimpledraweeview sethierarchy hierarchy |
facebookfresco | how many time to retry before failureimage be show | Question | use fresco I set retryiamge and failure iamge as I observe in absence of network image can not be downloae I need to press retry image 2 5 time before failure image show why be that where to configure the retry count or after I press retryimage once the image request be fire before the response arrive I can press retryimge again and again once reponse arrive say that network be non available failure image show update I be sure that I press the retryimage once one iamgerequ be fire press twice fire two imagerequ |
facebookfresco | why basepool use sparsearray to manager bucket | Question | sparsearray which key be sort so if use sparsearray to manage object it will result to some little size object often first release why base pool use aparsearray |
facebookfresco | com facebook common soloader soloadershim defaulthandler loadlibrary error | Bug | I use 0 10 0 compile com facebook fresco fresco 0 10 0 aar compile com facebook fresco drawee 0 10 0 aar compile com facebook fresco fbcore 0 10 0 aar compile com facebook fresco imagepipeline 0 10 0 aar compile group com facebook fresco name imagepipeline okhttp3 version 0 10 0 |
facebookfresco | be it possible to load 9 patch resource image | Enhancement | I try to use imagerequestbuilder right this imagerequestbuilder newbuilderwithresourceid r drawable blank folder setresizeoption new resizeoption 300 300 setautorotateenable true build but do not work |
facebookfresco | why closeableanimatedimage isn t be cache into bitmapmemorycache | Question | why closeableanimatedimage isn t be cache into bitmapmemorycache com facebook imagepipeline producer bitmapmemorycacheproducer wrapconsumer stateful result can not be cache and be just forward if newresult get isstateful getconsumer onnewresult newresult islast return |
facebookfresco | what will happen setautoplayanimation false for gif image | Question | when setautoplayanimation false not support for cache it will only take the first frame as preview image but I think it will be decode whole frame may be need additional resource and not support for cache also and just show the first frame so setautoplayanimation false can we show static image without decode whole frame may be this some already discuss topic |
facebookfresco | placeholder image and progressbar image be not display when use in custom imageview | Question | hi as our ui request I have to use custom view to use fresco as your document in your official site I do the below thing use the my view the remote picture be load successfully but it s display empty not the place holder image before remote picture load I be not sure it s your library s bug can you help look at this thank init code java public class chatimagedraweeview extend imageview private closeablereference imagereference null public draweeholder mdraweeholder public chatimagedraweeview context context this context null public chatimagedraweeview context context attributeset attrs this context attrs 0 public chatimagedraweeview context context attributeset attrs int defstyle super context attrs defstyle genericdraweehierarchy hierarchy new genericdraweehierarchybuilder getresource setfailureimage r color img placehoder color setprogressbarimage new progressbardrawable setprogressbarimagescaletype scalingutil scaletype center inside setplaceholderimage context getresource getdrawable r color img placehoder color setplaceholderimagescaletype scalingutil scaletype center inside build mdraweeholder draweeholder create hierarchy context setimageurl public void setimageurl string url imagerequ imagerequ imagerequestbuilder newbuilderwithsource uri parse url build imagepipeline imagepipeline fresco getimagepipeline final datasource datasource imagepipeline fetchimagefrombitmapcache imagerequ this draweecontroller controller fresco newdraweecontrollerbuilder setoldcontroller mdraweeholder getcontroller setimagerequ imagerequ setcontrollerlistener new basecontrollerlistener override public void onfinalimageset string s nullable imageinfo imageinfo nullable animatable animatable try imagereference datasource getresult if imagereference null closeableimage image imagereference get do something with the image if image null image instanceof closeablestaticbitmap closeablestaticbitmap closeablestaticbitmap closeablestaticbitmap image bitmap bitmap closeablestaticbitmap getunderlyingbitmap if bitmap null setimagebitmap bitmap finally datasource close closeablereference closesafely imagereference settaptoretryenable true build mdraweeholder setcontroller controller |
facebookfresco | support fit | Enhancement | in picasso we don t need to care about memory usage and more importantly don t need manually calculate the good image size to fit since it provide a magic method fit do fresco provide similar function too picasso with context load usageexamplelistviewadapter eatfoodyimage 0 fit call centerinside or centercrop to avoid a stretch image into imageviewfit |
facebookfresco | listview convertview simpledraweeview show wrong order | Question | in a listview adaper the getview method always like this public view getview int position view convertview viewgroup parent viewholder viewholder null if null convertview layoutinflat minflater layoutinflater from mcontext convertview minflater inflate r layout view listitem home null viewholder new viewholder convertview convertview settag viewholder else viewholder viewholder convertview gettag viewholder simpledraweeview setimageuri getimageuri position to load image asynchronously as above the item view will reuse so the simpledraweeview also will reuse how to avoid wrong image to be set on the item view when asyn request finish like below holder imageview settag imgurl because getview reuse convertview where the background request finish and return to ui thread the correct imageview to set image if imageview gettag null imageview gettag equal imageurl imageview setimagebitmap result |
facebookfresco | a illegalargumentexception cause by file length 0 get filelength fail | Bug | back trace start java lang illegalargumentexception at com facebook common internal precondition checkargument precondition java 108 at com facebook imagepipeline memory nativepooledbytebufferoutputstream nativepooledbytebufferoutputstream java 50 at com facebook imagepipeline memory nativepooledbytebufferfactory newbytebuffer nativepooledbytebufferfactory java 98 at com facebook imagepipeline memory nativepooledbytebufferfactory newbytebuffer nativepooledbytebufferfactory java 26 at com facebook imagepipeline producers localfetchproducer getbytebufferbackedencodedimage localfetchproducer java 79 at com facebook imagepipeline producer localfetchproducer getencodedimage localfetchproducer java 107 at com facebook imagepipeline producer localfilefetchproducer getencodedimage localfilefetchproducer java 38 at com facebook imagepipeline producer localfetchproducer produceresult localfetchproducer java 56 |
facebookfresco | can fresco support video cache | Enhancement | this be glide support video cache load video file glide with itemview getcontext use videolistglidemodule getokhttpurlloader inputstream class load new glideurl item getvideourl as file class diskcachestrategy diskcachestrategy source into progresstarget |
facebookfresco | animateddrawable usage | Enhancement | can I inherit animateddrawable achieve other function |
facebookfresco | libjpeg turbo version too low and google playstore reject it | Enhancement | hello google play developer we detect that your app s list at the end of this email be use an unsafe version of libjpeg turbo library what s happen begin september 17 2016 google play will block publishing of any new app or update that use pre 1 4 2 version of libjpeg turbo app with vulnerability like this can expose user to risk of compromise and may be consider in violation of our malicious behavior policy action require migrate your app s to use libjpeg turbo v1 4 2 or high as soon as possible and increment the version number of the upgrade apk |
facebookfresco | not able to show gif with proguard enable in 0 11 0 | Bug | hello I ve build my app with proguard enable and follow the instruction find in the document however the gif can not be display I have find a solution to fix this problem by add the follow line to the proguard config file keep class com facebook imagepipeline animate and everything work as normal could you update the proguard file in documentation if there be no other solution thank you |
facebookfresco | downscale cmyk jpeg fail | Bug | jpegtranscoder transcodejpeg fail if the jpeg use cmyk color java lang runtimeexception unsupported color conversion request |
facebookfresco | webp with alpha on api 17 | Bug | I m use compile com facebook fresco webpsupport 0 10 0 to support transparent webp image on device 18 api api 18 be when native support be add to framework but on some device on api 17 for example huawei ascend g700 I m face this weird bug screenshot for the reference it should look like this these webp image be from official google sample side by side comparison webp lossy with alpha be there some workaround about this |
facebookfresco | bitmap too large to be upload into a texture 414x9571 max 8192x8192 | Enhancement | simpledraweeview have layout width and layout height the actualimagescaletype be centercrop why need setresizeoption for request why be it not accord to the size of the simpledraweeview glide and picasa be support url |
facebookfresco | fresco display remote gif 5 20 second after download | Enhancement | I try display network gif in a recycleview list the gif size be normal after onlevelchange reach to 10000 I have to wait 5 20 second to see the gif display animation fresco usage compile com facebook fresco fresco 0 10 0 compile com facebook fresco animate gif 0 10 0 in fresco 0 90 the same problem be there the same issue be report in the problem be pretty serious in my senario often you have to wait more than 30 second to see the animation |
facebookfresco | feature request inject local file to disk cache | Enhancement | I have be try to cache a local image use the remote url so that the user do not have to download something which they just upload previously we be use uil for image loading which do this very easily I imagine this be quite a common use case but I have be unable to figure out a solution even after look through various thing in the documentation such as cachekeyfactory I couldn t find anything to fit my specific scenario here be the scenario I be try to achieve 1 the user capture datum on the device eg a camera image or gallery image 2 the user upload this to our backend server 3 the backend server respond to the client with the remote url for this file which will be use for all future load by all user 3 when we get the backend response we wish to be able to cache the local file under that remote url instead of the local file url so that the user do not have to download this file again when view their own file 4 this would mean that when the user next call for a fresco lookup on this remote url it will then be able to find this already in the cache base on the local client version of the file which we upload and precache against that remote url be there any functionality in fresco that would allow I to do this thank love the library |
facebookfresco | support netscape application loop block gif | Enhancement | I find that the loopcount be not assign in animate gif src main jni gifimage gif cpp but assign in animate webp src main jni webpimage webp cpp |
facebookfresco | setdecodememoryfileenable true may cause some phone crash | Bug | phone model lenovo a820 t android version 4 1 2 kernel version 3 4 5 frseco version 0 9 0 this phone will crash every time this be my code imagepipelineconfig imagepipelineconfig imagepipelineconfig newbuilder getapplicationcontext setdecodememoryfileenable true build fresco initialize this imagepipelineconfig when I write like this fresco initialize this it will be fine |
facebookfresco | java lang outofmemoryerror | Duplicate | java lang outofmemoryerror at android graphic bitmap nativecreate bitmap java at android graphic bitmap createbitmap bitmap java 822 at android graphic bitmap createbitmap bitmap java 799 at android graphic bitmap createbitmap bitmap java 766 at com facebook imagepipeline animate impl animateddrawablecachingbackendimpl createnewbitmap animateddrawablecachingbackendimpl java 149 at com facebook imagepipeline animate impl animateddrawablecachingbackendimpl obtainbitmapinternal animateddrawablecachingbackendimpl java 342 at com facebook imagepipeline animate impl animateddrawablecachingbackendimpl runprefetch animateddrawablecachingbackendimpl java 452 at com facebook imagepipeline animate impl animateddrawablecachingbackendimpl access 200 animateddrawablecachingbackendimpl java 53 at com facebook imagepipeline animate impl animateddrawablecachingbackendimpl 3 call animateddrawablecachingbackendimpl java 412 at bolt task 2 run task java 195 at com facebook common executor constrainedexecutorservice worker run constrainedexecutorservice java 178 at java util concurrent threadpoolexecutor runworker threadpoolexecutor java 1112 at java util concurrent threadpoolexecutor worker run threadpoolexecutor java 587 at com facebook imagepipeline core prioritythreadfactory 1 run prioritythreadfactory java 43 at java lang thread run thread java 841 the souce animateddrawablecachingbackendimpl java method createnewbitmap private bitmap createnewbitmap flog v tag create new bitmap stotalbitmap incrementandget flog v tag total bitmap d stotalbitmap get return bitmap createbitmap manimateddrawablebackend getrenderedwidth manimateddrawablebackend getrenderedheight bitmap config argb 8888 throw outofmemory error |
facebookfresco | fresco support animate image gif streaming | Enhancement | I know fresco support jpeg streaming fresco can support animate image like gif webp streaming |
facebookfresco | bug in exif auto rotation for load image | Bug | I see that there be an api available on imagerequestbuilder to enable and disable auto rotation of image with exif data I be have some issue get it to work with my code 1 auto rotation seem to be enable by default although this do not seem to be mention in the doc at all as far as I can see 2 when I try to disable it with imagerequestbuilder setautorotateenable false the image still get auto rotate be this a bug 3 when an auto rotate image finish loading and the listener invoke basecontrollerlistener onfinalimageset the width and height value report in imageinfo do not reflect the rotation that have be perform for example a 1024x512 image with exif rotation 6 report its width x height as 1024x512 not 512x1024 as I would expect update I find this post on stackoverflow seem my problem be because I have enable downsampling be there a fix in the work for this also the documentation ought to be update to mention this caveat with downsampling to save other people from waste time try to fix it |
facebookfresco | progressbardrawable onlevelchange always 10000 | Enhancement | hi I m use big size gif image for fresco so I want use progressbar however progressbardrawable onlevelchange be always input 10000 why onlevelchange method without do input 0 10000 so when the call genericdraweehierarchy setprogress answer I ll wait |
facebookfresco | autorotate not support invert orientation | Enhancement | fresco be miss autoorientation support for invert exif orientation orientation 1 3 6 8 get correct but 2 4 5 7 not exif orientations exif orientation example screenshot 20160524 123512 screenshot 20160524 123518 screenshot 20160524 123525 screenshot 20160524 123532 |
facebookfresco | when can make gif achieve round | Enhancement | when can make gif achieve round next version |
facebookfresco | in some case always get problem decode into exist bitmap | Bug | when I try to use simpledraweeview seturi to set a local png file to view there s some probability that always get problem decode into exist bitmap it only occur when two simpledrawwview load same file my version be 0 10 e1578611 a9a6 4e88 85cb 1414571dfaa8 |
facebookfresco | v0 10 0 fresco with okhttp v0 10 0 be leak connection when some fetch produce 404 error | Bug | I have be use fresco 0 9 0 for a while with the okhttp 0 9 0 network fetcher and everything have be fine however after upgrade to v0 10 0 for both fresco and the okhttp backend I be see error like this on occasion 05 02 12 20 53 653 13097 14210 com appname w okhttpclient a connection to be leak do you forget to close a response body this only happen in a certain scenario I have some debug code that deliberately mangle some of my fetch url to test 404 handing and when that code be enable I see the connection leak as show above if I disable the mangle code I see no leak if I change the debug code to mangle 100 of the url instead of 90 this also work with no leak surprisingly my concern be that when I get legitimate 404 error occur in the wild rather than fake they like this they will be leak connection which may eventually prevent image from loading update these connection leak do not happen with fresco 0 10 0 okhttp 0 9 0 seem to be okhttp 0 10 0 that be cause the problem |
facebookfresco | can t set resource i d for retry failure and progressbar image | Enhancement | as state here it feel like 3 method be miss genericdraweehierarchy setfailureimage int resourceid genericdraweehierarchy setprogressbarimage int resourceid genericdraweehierarchy setretryimage int resourceid and their mirror genericdraweehierarchybuilder setfailureimage int resourceid genericdraweehierarchybuilder setprogressbarimage int resourceid genericdraweehierarchybuilder setretryimage int resourceid be this by choice why would you have genericdraweehierarchy setplaceholderimage int resourceid and not those other method |
facebookfresco | fresco crash on use svg as placeholder and failure image prior to lollipop | Enhancement | since I upgrade to support library 23 3 0 I be use only vector drawable and not png asset work fine on lollipop and above but crash prior to lollipop |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.