FFmpegMediaPlayer icon indicating copy to clipboard operation
FFmpegMediaPlayer copied to clipboard

FFmpegmediaplayer Stop and realease methods creates ANR and crash (Serious Issue)

Open Farrukh381 opened this issue 8 years ago • 8 comments

HI i am using your player in live channels streaming android app.......I call stop and release player when player activity is onstop() is called......but it works on some phones like having sdk 21+ but creates ANR in earlier sdk devices.....This is potential bug which makes this player useless........... The bug is JNI

A/libc: @@@ ABORTING: LIBC: ARGUMENT IS INVALID HEAP ADDRESS IN dlfree addr=0x00000040 02-06 14:59:30.200 24720-25637 /com.livetv.android.apps.uktvnow A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 25637 (AsyncTask #3)

Invalid heap Adresss that causes the ANR and Crash.....Hope you resolved it Thanks.....waiting for your response

Farrukh381 avatar Feb 06 '17 10:02 Farrukh381

Beside this Issue your player is so Good and Nice if you please fix this it is appreciated and it can become one of best open source player for android Thanks

Farrukh381 avatar Feb 06 '17 10:02 Farrukh381

I have the same problem please.

CodeK1988 avatar Mar 07 '17 01:03 CodeK1988

I'm using 1.0.4, experiencing the same issue. Is there any workaround?

irmanfauzi avatar Mar 18 '17 23:03 irmanfauzi

@wseemann Hope this problem can be fixed... until now, this is the best player I've found! If fixed, I will publish a xamarin android binding :)

Here are some suggested solutions: https://github.com/WritingMinds/ffmpeg-android-java/issues/141

Solved this issue by updating ffmpeg from n2.4.2 to the latest version (n3.0.1).

Seems like ./configure with --disable-yasm and --disable-asm will prevent text relocations, but should also make FFMPEG extremely slow 😿

yaseralnajjar avatar May 28 '17 14:05 yaseralnajjar

Same problem. Anyone has any fix?

alexspyr avatar Dec 13 '17 10:12 alexspyr

Use exoplayer

On 13 Dec 2017 15:39, "Alex Spyropoulos" [email protected] wrote:

Same problem. Anyone has any fix?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wseemann/FFmpegMediaPlayer/issues/127#issuecomment-351352698, or mute the thread https://github.com/notifications/unsubscribe-auth/AH1adityNTz9hw7uZGnJnrAQ6VAuUXIMks5s_6l3gaJpZM4L3-xc .

Farrukh381 avatar Dec 13 '17 10:12 Farrukh381

Same problem, actually it is very strange how long this bug could be! but I really appreciated this player anyway (as long as you don't over play)

iaubain avatar Aug 29 '18 10:08 iaubain

Just encountered the same problem in both Android 10 and 9, first initialization works fine but crashes either on the next prepare or at any random place like seeking the audio file

Hamza417 avatar Sep 28 '20 01:09 Hamza417