Code Monkey home page Code Monkey logo

Comments (8)

tanersener avatar tanersener commented on May 18, 2024

There should be a longer stack trace in logcat. Have you looked at it?

from ffmpeg-kit.

Shivgupta1031 avatar Shivgupta1031 commented on May 18, 2024

I Am also facing this issue, the crash occurs suddenly, below are the complete logs

LOGCAT:
2021-05-17 11:20:49.095 29656-29656/com.devdhiv.starherowe I/ffmpeg-kit: Loading ffmpeg-kit.
2021-05-17 11:20:49.098 29656-29656/com.devdhiv.starherowe E/System: java.io.FileNotFoundException: /data/app/4NtlWDNmJ9ibAw7vmqtDJQ==/com.devdhiv.starherowe-Fc6sBda5a3BVJ9p3kTYjEA==/base.apk (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:265)
at java.util.zip.ZipFile.(ZipFile.java:187)
at java.util.jar.JarFile.(JarFile.java:169)
at java.util.jar.JarFile.(JarFile.java:106)
at libcore.io.ClassPathURLStreamHandler.(ClassPathURLStreamHandler.java:46)
at dalvik.system.DexPathList$NativeLibraryElement.maybeInit(DexPathList.java:859)
at dalvik.system.DexPathList$NativeLibraryElement.findNativeLibrary(DexPathList.java:880)
at dalvik.system.DexPathList.findLibrary(DexPathList.java:595)
at dalvik.system.BaseDexClassLoader.findLibrary(BaseDexClassLoader.java:281)
at java.lang.Runtime.loadLibrary0(Runtime.java:1061)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:45)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKitAbiDetect(NativeLoader.java:127)
at com.arthenica.ffmpegkit.AbiDetect.(AbiDetect.java:30)
at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:62)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:167)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:100)
at com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy(FFmpegKitConfig.java:1094)
at com.arthenica.ffmpegkit.FFmpegSession.(FFmpegSession.java:76)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:95)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:183)
at com.devdhiv.starherowe.helpers.ExecuteFfmpegCommand$Companion.execute(ExecuteFfmpegCommand.kt:35)
at com.devdhiv.starherowe.activities.EditVideoActivity.startProcessing(EditVideoActivity.kt:1127)
at com.devdhiv.starherowe.activities.EditVideoActivity.access$startProcessing(EditVideoActivity.kt:64)
at com.devdhiv.starherowe.activities.EditVideoActivity$saveOverlayImage$2.onSuccess(EditVideoActivity.kt:886)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:893)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:853)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:254)
at android.app.ActivityThread.main(ActivityThread.java:8199)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
2021-05-17 11:20:49.104 29656-29656/com.devdhiv.starherowe E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.devdhiv.starherowe, PID: 29656
java.lang.Error: FFmpegKit failed to start on brand: OPPO, model: CPH2119, device: OP4C51L1, api level: 30, abis: arm64-v8a armeabi-v7a armeabi, 32bit abis: armeabi-v7a armeabi, 64bit abis: arm64-v8a.
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:47)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:183)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:100)
at com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy(FFmpegKitConfig.java:1094)
at com.arthenica.ffmpegkit.FFmpegSession.(FFmpegSession.java:76)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:95)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:183)
at com.devdhiv.starherowe.helpers.ExecuteFfmpegCommand$Companion.execute(ExecuteFfmpegCommand.kt:35)
at com.devdhiv.starherowe.activities.EditVideoActivity.startProcessing(EditVideoActivity.kt:1127)
at com.devdhiv.starherowe.activities.EditVideoActivity.access$startProcessing(EditVideoActivity.kt:64)
at com.devdhiv.starherowe.activities.EditVideoActivity$saveOverlayImage$2.onSuccess(EditVideoActivity.kt:886)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:893)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:853)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:254)
at android.app.ActivityThread.main(ActivityThread.java:8199)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libavfilter.so" not found: needed by /data/app/
-lfYrP4wRgNDBhSD58L6qw==/com.devdhiv.starherowe-Y9aBoG6pNpqJbA31v9mRKA==/lib/arm64/libffmpegkit.so in namespace classloader-namespace
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:45)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:183) 
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:100) 
at com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy(FFmpegKitConfig.java:1094) 
at com.arthenica.ffmpegkit.FFmpegSession.(FFmpegSession.java:76) 
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:95) 
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:183) 
at com.devdhiv.starherowe.helpers.ExecuteFfmpegCommand$Companion.execute(ExecuteFfmpegCommand.kt:35) 
at com.devdhiv.starherowe.activities.EditVideoActivity.startProcessing(EditVideoActivity.kt:1127) 
at com.devdhiv.starherowe.activities.EditVideoActivity.access$startProcessing(EditVideoActivity.kt:64) 
at com.devdhiv.starherowe.activities.EditVideoActivity$saveOverlayImage$2.onSuccess(EditVideoActivity.kt:886) 
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:893) 
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:853) 
at android.os.AsyncTask.finish(AsyncTask.java:771) 
at android.os.AsyncTask.access$900(AsyncTask.java:199) 
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:254) 
at android.app.ActivityThread.main(ActivityThread.java:8199) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049) 
2021-05-17 11:20:51.688 1087-17089/? I/FFmpegExtractor: [SniffFFMPEGCommon:L2801]found stream 0 id 0x15002 codec aac
2021-05-17 11:20:51.689 1087-17089/? I/FFmpegExtractor: [SniffFFMPEGCommon:L2801]found stream 1 id 0x1b codec h264
2021-05-17 11:20:51.689 1087-17089/? I/FFmpegExtractor: [mp4]video codec(h264), confidence should be larger than MPEG4Extractor
2021-05-17 11:20:51.689 1087-17089/? D/FFmpegExtractor: [SniffFFMPEG:L2922] ffmpeg detected media content as 'video/mp4' with confidence 0.43
2021-05-17 11:20:51.689 1087-17089/? I/FFmpegExtractor: [Sniff:L2963] confidence:0.430000
2021-05-17 11:20:51.706 1087-17089/? D/OplusMPEG4Extractor: [BetterSniffMPEG4:L7303] 1 A:1 V:1

from ffmpeg-kit.

VivekThummar52 avatar VivekThummar52 commented on May 18, 2024

There should be a longer stack trace in logcat. Have you looked at it?

I found one more important line of error recently

Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libavfilter.so" not found

but as i mentioned before App not crashes every time..

from ffmpeg-kit.

tanersener avatar tanersener commented on May 18, 2024

Then, I suggest using APK Analyser to check if libavfilter.so is packaged inside your apk file.

from ffmpeg-kit.

VivekThummar52 avatar VivekThummar52 commented on May 18, 2024

It's right there as you can see...
libavfilter ss

from ffmpeg-kit.

tanersener avatar tanersener commented on May 18, 2024

java.lang.Error: FFmpegKit failed to start on brand: OnePlus, model: AC2001, device: Nord, api level: 30, abis: arm64-v8a armeabi-v7a armeabi, 32bit abis: armeabi-v7a armeabi, 64bit abis: arm64-v8a

Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libavfilter.so" not found

We need to look at the stack trace then. These messages above are not stack traces. They are just the error messages. They don't show the method calls made.

from ffmpeg-kit.

github-actions avatar github-actions commented on May 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from ffmpeg-kit.

Robin1654 avatar Robin1654 commented on May 18, 2024

I am also having the same crash issue, but don't know how to solve it
I analysed my apk it contains libffmpegkit_abidetect.so in all the abi filters
And this crash is encountered on firebase not in test devices
These are some error traces on firebase :

com.arthenica.ffmpegkit.NativeLoader.a (NativeLoader.java:6)
com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKitAbiDetect (NativeLoader.java:1)
com.arthenica.ffmpegkit.AbiDetect. (AbiDetect.java:1)
com.arthenica.ffmpegkit.AbiDetect.getNativeAbi (AbiDetect.java)
com.arthenica.ffmpegkit.NativeLoader.c (NativeLoader.java:6)
com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit (NativeLoader.java:1)
com.arthenica.ffmpegkit.FFmpegKitConfig. (FFmpegKitConfig.java:1)
com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy (FFmpegKitConfig.java:1)
com.arthenica.ffmpegkit.FFmpegSession. (FFmpegSession.java:1)
com.arthenica.ffmpegkit.FFmpegKit.executeAsync (FFmpegKit.java:1)

from ffmpeg-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.