wseemann / FFmpegMediaPlayer

FFmpegMediaPlayer can be used to control playback of audio/video files and streams.
675 stars 200 forks source link

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

Open Farrukh381 opened 7 years ago

Farrukh381 commented 7 years ago

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 commented 7 years ago

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

CodeK1988 commented 7 years ago

I have the same problem please.

irmanfauzi commented 7 years ago

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

yaseralnajjar commented 7 years ago

@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 😿

alexspyr commented 6 years ago

Same problem. Anyone has any fix?

Farrukh381 commented 6 years ago

Use exoplayer

On 13 Dec 2017 15:39, "Alex Spyropoulos" notifications@github.com 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 .

iaubain commented 6 years ago

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)

Hamza417 commented 4 years ago

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