wseemann / FFmpegMediaPlayer

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

Fatal signal 11 (SIGSEGV) on xiaomi #133

Open LazyDoge opened 7 years ago

LazyDoge commented 7 years ago

make dependancy. everything works fine in emulator, but method stop causing this error on my xiaomi redmi note 3 pro se, so sad, it works very good, untill u try to stop it

frapeti commented 6 years ago

same issue here on Xiaomi Redmi Note 4, happens when I'm stopping the playback, does'nt happen with android's MediaPlayer

frapeti commented 6 years ago

@LazyDoge could you workaround this yet?

@wseemann any hint for this? I can paste the stacktrace here:

07-30 00:45:29.228 719-719/? E/AudioFlinger: open /proc/19220/cmdline error
07-30 00:45:29.230 19220-19220/com.techtripod.buenavistafm:buenavistafm_stream A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xff000003d3fff7 in tid 19220 (avistafm_stream)
07-30 00:45:29.282 716-716/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-30 00:45:29.283 716-716/? A/DEBUG: Build fingerprint: 'xiaomi/mido/mido:6.0.1/MMB29M/V8.2.10.0.MCFMIDL:user/release-keys'
07-30 00:45:29.283 716-716/? A/DEBUG: Revision: '0'
07-30 00:45:29.283 716-716/? A/DEBUG: ABI: 'arm64'
07-30 00:45:29.283 716-716/? A/DEBUG: pid: 19220, tid: 19220, name: avistafm_stream  >>> com.techtripod.buenavistafm:buenavistafm_stream <<<
07-30 00:45:29.283 716-716/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xff000003d3fff7
07-30 00:45:29.294 716-716/? A/DEBUG:     x0   0000000000000000  x1   0000000000000000  x2   0000000000000000  x3   0000000000000000
07-30 00:45:29.294 716-716/? A/DEBUG:     x4   0000000000000000  x5   0000000000000000  x6   0000000000000000  x7   0000000000000000
07-30 00:45:29.294 716-716/? A/DEBUG:     x8   0000000000000001  x9   0000007faad4fa70  x10  0000000000000003  x11  0000000000000470
07-30 00:45:29.294 716-716/? A/DEBUG:     x12  000000000000000c  x13  0000000000004000  x14  0000000000000000  x15  0000000000000004
07-30 00:45:29.294 716-716/? A/DEBUG:     x16  0000007faad48c40  x17  00000055b77c0000  x18  9000000000000000  x19  7fff000003d3ffef
07-30 00:45:29.294 716-716/? A/DEBUG:     x20  0000007faad4f000  x21  7fff000003d3ffff  x22  0000007faad4fa70  x23  0000000000000040
07-30 00:45:29.294 716-716/? A/DEBUG:     x24  0000000012dd7060  x25  0000000012ddda00  x26  000027a600004b14  x27  0000000012d5af30
07-30 00:45:29.295 716-716/? A/DEBUG:     x28  0000000000000000  x29  0000007fe2e39c40  x30  0000007faace7554
07-30 00:45:29.295 716-716/? A/DEBUG:     sp   0000007fe2e39c40  pc   0000007faace742c  pstate 0000000020000000
07-30 00:45:29.301 716-716/? A/DEBUG: backtrace:
07-30 00:45:29.301 716-716/? A/DEBUG:     #00 pc 000000000004742c  /system/lib64/libc.so (dlfree+60)
07-30 00:45:29.301 716-716/? A/DEBUG:     #01 pc 00000000000195a8  /system/lib64/libc.so (free+20)
07-30 00:45:29.301 716-716/? A/DEBUG:     #02 pc 000000000000fd00  /data/app/com.techtripod.buenavistafm-1/lib/arm64/libffmpeg_mediaplayer_jni.so (shutdown+252)
07-30 00:45:29.302 716-716/? A/DEBUG:     #03 pc 000000000000ee94  /data/app/com.techtripod.buenavistafm-1/lib/arm64/libffmpeg_mediaplayer_jni.so (clear_l+1388)
07-30 00:45:29.302 716-716/? A/DEBUG:     #04 pc 000000000000e1fc  /data/app/com.techtripod.buenavistafm-1/lib/arm64/libffmpeg_mediaplayer_jni.so (stop+392)
07-30 00:45:29.302 716-716/? A/DEBUG:     #05 pc 0000000000009a20  /data/app/com.techtripod.buenavistafm-1/lib/arm64/libffmpeg_mediaplayer_jni.so (_ZN11MediaPlayer4stopEv+124)
07-30 00:45:29.302 716-716/? A/DEBUG:     #06 pc 0000000000007b94  /data/app/com.techtripod.buenavistafm-1/lib/arm64/libffmpeg_mediaplayer_jni.so
07-30 00:45:29.302 716-716/? A/DEBUG:     #07 pc 0000000000df5aac  /data/app/com.techtripod.buenavistafm-1/oat/arm64/base.odex (offset 0x7f2000) (void wseemann.media.FFmpegMediaPlayer._stop()+128)
07-30 00:45:29.302 716-716/? A/DEBUG:     #08 pc 0000000000dfba38  /data/app/com.techtripod.buenavistafm-1/oat/arm64/base.odex (offset 0x7f2000) (void wseemann.media.FFmpegMediaPlayer.stop()+124)
07-30 00:45:29.302 716-716/? A/DEBUG:     #09 pc 0000000000d61d58  /data/app/com.techtripod.buenavistafm-1/oat/arm64/base.odex (offset 0x7f2000) (void com.techtripod.buenavistafm.StreamService.stopRadioPlaying()+108)
07-30 00:45:29.302 716-716/? A/DEBUG:     #10 pc 0000000000d5fe50  /data/app/com.techtripod.buenavistafm-1/oat/arm64/base.odex (offset 0x7f2000) (void com.techtripod.buenavistafm.StreamService.access$000(com.techtripod.buenavistafm.StreamService)+68)
07-30 00:45:29.302 716-716/? A/DEBUG:     #11 pc 0000000000d5edb8  /data/app/com.techtripod.buenavistafm-1/oat/arm64/base.odex (offset 0x7f2000) (void com.techtripod.buenavistafm.StreamService$7.onReceive(android.content.Context, android.content.Intent)+124)
07-30 00:45:29.303 716-716/? A/DEBUG:     #12 pc 0000000073e28374  /data/dalvik-cache/arm64/system@framework@boot.oat (offset 0x249a000)
07-30 00:45:29.544 716-716/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_07
07-30 00:45:29.544 716-716/? E/DEBUG: AM write failed: Broken pipe
07-30 00:45:29.563 3437-3522/? E/octvm_klo: get package info failed for com.techtripod.buenavistafm:buenavistafm_stream
07-30 00:45:30.132 510-510/? E/SELinux: avc:  denied  { find } for service=gbahttpauth scontext=u:r:system_server:s0 tcontext=u:object_r:gba_auth_service:s0 tclass=service_manager
LazyDoge commented 6 years ago

Nop, i had to refuse this lib. Standart media player works sucks, but it works. Sad that problem is still actual.

frapeti commented 6 years ago

Yep same here, but standard MediaPlayer doesn't play some AAC+ streams on several phones while this player does, so sad...

akshayrasure commented 5 years ago

I have used this library for one of my application. Using this library resulting in increasing the crash rate on google play store. I'm posting the error log from google play console, any help is highly appreciated.

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
MediaPlayer::notify(int, int, int, int)

00 pc 000000000000a8b0 /data/app/xx.xxxx.xxxxxxx-br--tF6zcQLAl3HvDElW8Q==/lib/arm64/libffmpeg_mediaplayer_jni.so (MediaPlayer::notify(int, int, int, int)+488)

01 pc 000000000000722c /data/app/xx.xxxx.xxxxxxx-br--tF6zcQLAl3HvDElW8Q==/lib/arm64/libffmpeg_mediaplayer_jni.so

02 pc 0000000000008034 /data/app/xx.xxxx.xxxxxxx-br--tF6zcQLAl3HvDElW8Q==/lib/arm64/libffmpeg_mediaplayer_jni.so

03 pc 0000000000041f8c /data/app/xx.xxxx.xxxxxxx-br--tF6zcQLAl3HvDElW8Q==/oat/arm64/base.odex