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

IllegalStateException at "dequeueOutputBuffer()" #33

Open
narendra88 opened this issue Jul 11, 2017 · 0 comments
Open

IllegalStateException at "dequeueOutputBuffer()" #33

narendra88 opened this issue Jul 11, 2017 · 0 comments

Comments

@narendra88
Copy link

I tried to pick video from gallery and compressing it using this in 2 devices yet so far ( LG Nexus 5 & Samsung Galaxy Grand - GT-I9082 ).

It worked fine in LG Nexus 5, but failed in "Samsung Galaxy Grand", without even mentioning the error.

For that, I debugged and placed logs in MediaController class (com.iceteck.silicompressorr.videocompression.MediaController)

Thus able to track the error
Please suggest any fix or workaround for that, in order to make it work on all devices

The error I got is as follows -

> java.lang.IllegalStateException
> at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
> at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1033)
> at com.iceteck.silicompressorr.videocompression.MediaController.convertVideo(MediaController.java:491)
> at com.iceteck.silicompressorr.SiliCompressor.compressVideo(SiliCompressor.java:300)
> at com.iceteck.silicompressor.SelectPictureActivity$VideoCompressAsyncTask.doInBackground(SelectPictureActivity.java:379)
> at com.iceteck.silicompressor.SelectPictureActivity$VideoCompressAsyncTask.doInBackground(SelectPictureActivity.java:358)
> at android.os.AsyncTask$2.call(AsyncTask.java:288)
> at java.util.concurrent.FutureTask.run(FutureTask.java:237)
> at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
> 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)
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant