-
Notifications
You must be signed in to change notification settings - Fork 602
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
Getting native error while using getMediaInformationAsync #72
Comments
Is there another |
Yes. The video is getting edited right before I call this function. But that's called in another thread by the way. |
So, if you run an |
Fixed in |
In my case same error was reproduced by simple fragment which have FFmpeg.cancel() in onPause(). Simply navigating back and forth |
@AnNEDoMini I assume we need to see more details to be able say these issues are the same. |
Yep i know, Im more than sure of that :) |
@AnNEDoMini Mate, for users who spend their time to read your posts, creating 2 fragments and adding Do you happen to know that Android test applications under ffmpeg-kit-test project have a |
Okay, https://github.com/AnNEDoMini/ffmpegkit-crash-example simple app which does nothing, only tries to call FFmpegKit.cancel() in fragments onPause() PS to my apology - behavior of mobile-ffmpeg if different to ffmpeg-kit, in my example (look at Fragment2 code), in case of using mobile-ffmpeg - you will get native crash Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xf3f26c48)'
|
@AnNEDoMini The creator of this issue uses So, you're running |
To be honest - I'm not 100% sure. But it seems plausible that my an his problem are connected somehow. Maybe some bug with mutex handling, but not with PS Generally I had one more issue with same setup, same crash (pthread_mutex_destroy called on a destroyed mutex), but stack trace pointed to some unrelated code. And with some effort I have found the real root of the problem. |
@AnNEDoMini All right. I created #129 for your issue. It's another problem surprisingly not discovered before. It took time to understand what it is but I managed to see it in your test apps. Thanks for sharing the details about it. |
Description
So I am trying to get duration of a video using FfprobeKit.getMediaInformationAsync but it crashes and throws a native error. This does not happen everytime but occasionally.
Expected behavior
Do not crash while executing the method.
Current behavior
It threw a stacktrace as follow:
Environment
The text was updated successfully, but these errors were encountered: