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

Constructor not working in Android 6.0 (Marshmallow) #86

Closed
mateusgrb opened this issue Mar 1, 2016 · 9 comments
Closed

Constructor not working in Android 6.0 (Marshmallow) #86

mateusgrb opened this issue Mar 1, 2016 · 9 comments

Comments

@mateusgrb
Copy link

In an android emulator 6.0, I'm trying to instantiate a FFmpegMediaMetadataRetriever object like below:
FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever();

but this command is shutting down the thread. I wrapped the call in a try catch to get the exception but it's not working.

I'm running the app in Android 6.0 and I believe that's causing the issue. Any ideas on how to solve that?

@wseemann
Copy link
Owner

wseemann commented Mar 1, 2016

Can you post a stack trace with the error?
On Feb 29, 2016 6:15 PM, "Mateus Gondim" notifications@github.com wrote:

In an android emulator 6.0, I'm trying to instantiate a
FFmpegMediaMetadataRetriever object like below:
FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever();

but this command is shutting down the thread. I wrapped the call in a try
catch to get the exception but it's not working.

I'm running the app in Android 6.0 and I believe that's causing the issue.
Any ideas on how to solve that?


Reply to this email directly or view it on GitHub
#86.

@mateusgrb
Copy link
Author

FATAL EXCEPTION: main
Process: com.example.streamingapp, PID: 3034
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.streamingapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.streamingapp-1/lib/x86_64, /data/app/com.example.streamingapp-1/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libavutil.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at wseemann.media.FFmpegMediaMetadataRetriever.(FFmpegMediaMetadataRetriever.java:120)
at com.example.streamingapp.activities.MainActivity.onCreate(MainActivity.java:139)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@mateusgrb
Copy link
Author

It looks like a compatibility problem with Android 6.0.

@mateusgrb
Copy link
Author

Hey @wseemann , were you able to reproduce this bug in android 6 too?

@AbigailEsman
Copy link

yes, its crashing at my side too
Seems its not loading jni lirbaries such as "avutil"

@wseemann
Copy link
Owner

x86_64 support was added in v1.0.4.

@shaileshmulange
Copy link

@wseemann We are getting some unexpected experience with "Marshmallow 6.0.1". I have found same crash on some device but some device is working properly.It is working on my device but not on friend device both have the same version "Marshmallow 6.0.1".
Now I am using our Marshmallow 6.0 compatible version of the library.

compile 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.6'

@wseemann
Copy link
Owner

Why are you using version 1.0.6?
On May 10, 2016 12:37 AM, "shaileshmulange" notifications@github.com
wrote:

@wseemann https://github.com/wseemann We are getting some unexpected
experience with "Marshmallow 6.0.1". I have found same crash on some device
but some device is working properly.It is working on my device but not on
friend device both have the same version "Marshmallow 6.0.1".
Now I am using our Marshmallow 6.0 compatible version of the library.

compile 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.6'


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#86 (comment)

@shaileshmulange
Copy link

shaileshmulange commented May 10, 2016

If I used lower than this version it is not working on Marshmallow, so I am using 1.0.6.

and also found one crash i.e. java.lang.UnsatisfiedLinkError: dlopen failed: library "libavutil.so.54" not found if I used 1.0.5. and you suggest 1.0.6.

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

4 participants