Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A IllegalArgumentException caused by file length 0 (get filelength failed!) #1315

Closed
huangjunkun opened this issue Jun 21, 2016 · 0 comments
Closed
Labels

Comments

@huangjunkun
Copy link

Back traces starts.
java.lang.IllegalArgumentException
at com.facebook.common.internal.Preconditions.checkArgument(Preconditions.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.producers.LocalFetchProducer.getEncodedImage(LocalFetchProducer.java:107)
at com.facebook.imagepipeline.producers.LocalFileFetchProducer.getEncodedImage(LocalFileFetchProducer.java:38)
at com.facebook.imagepipeline.producers.LocalFetchProducer.produceResults(LocalFetchProducer.java:56)

@oprisnik oprisnik added the bug label Jun 21, 2016
ghost pushed a commit that referenced this issue Jun 21, 2016
…length failed!)

Summary:
Fix bug: A IllegalArgumentException caused by file length 0 (get filelength failed!)
#1315
Closes #1316

Reviewed By: aagnes

Differential Revision: D3462772

Pulled By: oprisnik

fbshipit-source-id: edc87bc49d1528266fb4a653af50f2a7d59a8c81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants