tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

App working just fine on the debug mode but it crashes on the Release Mode #676

Closed e-shawakri closed 3 years ago

e-shawakri commented 3 years ago

The library is working just fine while debugging but when I generate the Release APK file and test it. it crashes. when I've test the released APK it shows the following error.

    --------- beginning of crash
2021-02-10 00:36:28.846 22300-22628/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
    Process: com.emad.videosEditor, PID: 22300
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:318)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
        at java.util.concurrent.FutureTask.run(FutureTask.java:242)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:762)
     Caused by: java.lang.NoClassDefFoundError: <clinit> failed for class com.arthenica.mobileffmpeg.Config; see exception in other thread
        at com.arthenica.mobileffmpeg.Config.a(SourceFile)
        at c.b.a.a.doInBackground(SourceFile:1)
        at android.os.AsyncTask$2.call(AsyncTask.java:304)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
        at java.lang.Thread.run(Thread.java:762) 

FFMPEG version: 4.4.LTS

AxitaKathiriya commented 3 years ago

I am facing the same problem. Please provide me a solution of this crash.

Description App is Crashing When i use FFmpeg.Cancel().

Expected behavior App will work fine in release mode. App should not crash.

Current behavior What happened.

Logs Fatal Exception: java.lang.NoClassDefFoundError: com/arthenica/mobileffmpeg/Config at com.arthenica.mobileffmpeg.FFmpeg.cancel(FFmpeg.java:175)

Environment