Crash of video compression on Samsung J5
See original GitHub issueWe are currently facing an error with the compression on a Samsung J5 device. It runs into an IllegalStateException in the VideoSlimmer.convertVideo()
call.
We get the following stacktrace:
android.media.MediaCodec.native_stop MediaCodec.java
android.media.MediaCodec.stop MediaCodec.java:2251
com.zolad.videoslimmer.VideoSlimEncoder.releaseCoder VideoSlimEncoder.java:613
com.zolad.videoslimmer.VideoSlimEncoder.convertVideo VideoSlimEncoder.java:391
com.zolad.videoslimmer.VideoSlimTask.doInBackground VideoSlimTask.java:30
com.zolad.videoslimmer.VideoSlimTask.doInBackground VideoSlimTask.java:11
android.os.AsyncTask$3.call AsyncTask.java:394
java.util.concurrent.FutureTask.run FutureTask.java:266
android.os.AsyncTask$SerialExecutor$1.run AsyncTask.java:305
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java:1167
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java:641
java.lang.Thread.run Thread.java:923
We found out, that in the com.zolad.videoslimmer
package the releaseCoder()
method has no proper exception handling if an encoder is already released. This results in the exception bubbling up into the react-native-compressor
package.
Is there any chance that we can fix this in this library?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:14
Top Results From Across the Web
Samsung Galaxy J5 System Crash (Solution) - Tech Junkie
It's common that bad third-party apps will some time cause the Samsung J5 to crash. It's suggested to first read reviews of the...
Read more >Solved: Blurry Videos when sending via messaging - 759653
This means that the videos are compressed before they are sent and it reduces quality.
Read more >Reasons Why Android Apps Crash - The Droid Guy
Another reason why an app fails to load, freezes, then eventually dies is when it receives limited to no bandwidth. An unreliable connection ......
Read more >Android FFMPEG video compression issue in Samsung ...
I am using this library to compress video in android. App gets crash when I try to compress video second time. It works...
Read more >[KERNEL][6.0.1][J5 2016][Linaro 6.3.1] Cherry Kernel | Page 21
What variant of J5 do you use? ... Sometimes apps crash how fix 3.10.94 ... [UPDATED][ROM][6.0.1][Galaxy J5 2016/FN]Light Stock Rom V3.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok i have fixed the issue and created my own VideoSlimmer package. As long as the VideoSlimmer package is not maintained, I would propose to use my package here: https://github.com/daschaa/VideoSlimmer/packages/1163123
I can add you as maintainer if you want to. Then you don’t have to add the code to your native codebase. Would be cool if we could collaborate there. My plan is to refactor the package completely and add proper testing to it. What do you think @nomi9995 ? 🙌🏼
@NiklasLehnfeld I was copied code directly in this package but then I reverted. now i am using this package https://github.com/nomi9995/VideoCompressor