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

Crash after a few frames? #1

Closed
MarsVard opened this issue Jan 8, 2017 · 5 comments
Closed

Crash after a few frames? #1

MarsVard opened this issue Jan 8, 2017 · 5 comments

Comments

@MarsVard
Copy link

MarsVard commented Jan 8, 2017

Hi I'm using your sample and I noticed it crashes with a memory exception after a few frames.

Have you noticed it too? is there a fix?

@y4nnick
Copy link
Owner

y4nnick commented Jan 11, 2017

Which phone are you using? Could you provide the stacktrace?

@IzabellaConigliaro
Copy link

Hey, mine is crashing too. I have an Galaxy S4 with Android 5.0.1
I don't have the stacktrace right now, but it always crashes when I hit the record button :/

@IzabellaConigliaro
Copy link

Process: com.example.yannick.olay1, PID: 17664
java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:308)
at org.bytedeco.javacpp.Loader.load(Loader.java:585)
at org.bytedeco.javacpp.Loader.load(Loader.java:530)
at org.bytedeco.javacpp.avcodec$AVPacket.(avcodec.java:1694)
at org.bytedeco.javacv.FFmpegFrameRecorder.(FFmpegFrameRecorder.java:149)
at com.example.yannick.olay1.RecordActivity.initRecorder(RecordActivity.java:185)
at com.example.yannick.olay1.RecordActivity.startRecording(RecordActivity.java:292)
at com.example.yannick.olay1.RecordActivity.onClick(RecordActivity.java:558)
at android.view.View.performClick(View.java:5184)
at android.view.View$PerformClick.run(View.java:20910)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

@y4nnick
Copy link
Owner

y4nnick commented Feb 26, 2017

It seams that you didn't imported javacpp correct, take a look at bytedeco/javacv#133 to resolve the UnsatisfiedLinkError

@y4nnick
Copy link
Owner

y4nnick commented Mar 10, 2017

I will close this here, since it is a import problem and not related to the actual code here

@y4nnick y4nnick closed this as completed Mar 10, 2017
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