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

App crashes automatically after selecting video #23

Closed
kuldeepworkid opened this issue Jul 27, 2021 · 5 comments
Closed

App crashes automatically after selecting video #23

kuldeepworkid opened this issue Jul 27, 2021 · 5 comments

Comments

@kuldeepworkid
Copy link

kuldeepworkid commented Jul 27, 2021

The crash is happening when we select compressionMethod: 'manual'
await Video.compress(
imgData.path,
{
compressionMethod: 'manual',
maxSize: imgData.height,
bitrate: 450000,
},
progress => {
console.log('prog===>', progress);
},
);
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:399)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.IllegalStateException: Failed to stop the muxer
at android.media.MediaMuxer.nativeStop(Native Method)
at android.media.MediaMuxer.stop(MediaMuxer.java:466)
at com.zolad.videoslimmer.VideoSlimEncoder.releaseCoder(VideoSlimEncoder.java:622)
at com.zolad.videoslimmer.VideoSlimEncoder.convertVideo(VideoSlimEncoder.java:391)
at com.zolad.videoslimmer.VideoSlimTask.doInBackground(VideoSlimTask.java:30)
at com.zolad.videoslimmer.VideoSlimTask.doInBackground(VideoSlimTask.java:11)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
at java.lang.Thread.run(Thread.java:919) 
2021-07-27 18:51:03.330 25348-25644/com.dt.thanthiwhistle E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3

@numandev1
Copy link
Owner

@kuldeepworkid can you send me a video so I can reproduce it on my side

@kuldeepworkid
Copy link
Author

kuldeepworkid commented Jul 29, 2021

@kuldeepworkid can you send me a video so I can reproduce it on my side

@nomi9995 https://drive.google.com/file/d/1jw5XqDf9pMWJrSMwwTWrR-Bbx1tafFxl/view?usp=sharing

@HemendraKhatik
Copy link

same issue

@numandev1
Copy link
Owner

numandev1 commented Oct 28, 2021

@kuldeepworkid @HemendraKhatik

@krupalikevadiya we are using NextLevelSessionExporter pod for compression videos on ios. but on this video, it is giving an exception, therefore, I am returning the same URI. I have created issue on NextLevel/NextLevelSessionExporter#37 we have to wait for resolve issue from NextLevelSessionExporter size

#19 (comment)

can you try a different video?

@numandev1
Copy link
Owner

Closing due to inactivity.

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

3 participants