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

在无网络下播放失败,重试,会出现signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) #1186

Closed
lyqaiym opened this issue Apr 17, 2016 · 25 comments

Comments

@lyqaiym
Copy link

lyqaiym commented Apr 17, 2016

********** Crash dump: **********
Build fingerprint: 'samsung/ja3gzs/ja3g:4.4.2/KOT49H/I9500ZSUDNK1:user/release-keys'
pid: 6521, tid: 6595, name: ff_read >>> tv.danmaku.ijk.media.player:ijk <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
Stack frame I/DEBUG (22333): #00 pc 000117d0 /system/lib/libc.so (dlfree+1191): Routine ??
??:0
Stack frame I/DEBUG (22333): #1 pc 0000dd1f /system/lib/libc.so (free+10): Routine ??
??:0
Stack frame I/DEBUG (22333): #2 pc 0014ec63 /data/app-lib/tv.danmaku.ijk.media.player-12/libijkffmpeg.so (ffurl_closep+82): Routine ffurl_closep at /home/lyq/git/ijkplayer-d0413/ijkplayer/android/contrib/ffmpeg-armv7a/libavformat/avio.c:476
Crash dump is completed
就是
av_freep(&h->priv_data);这个方法

@lyqaiym
Copy link
Author

lyqaiym commented Apr 17, 2016

去年的版本,一直没问题,最近更新了,发现这个问题了

@Android4MediaPlayer
Copy link

什么版本?

@lyqaiym
Copy link
Author

lyqaiym commented Apr 17, 2016

就是新下载的,失败以后,重新new一个IJKPlayer,就报错了,fault addr deadbaad,但是&h->priv_data的地址还不是deadbaad,

@Android4MediaPlayer
Copy link

必现还是跟机型有关

@lyqaiym
Copy link
Author

lyqaiym commented Apr 17, 2016

没试其他机型,去年的版本在手机上都没事,
看了方法调用,是不是和多线程有关系啊?

@Android4MediaPlayer
Copy link

我上班再看下0.5.0版本

@bbcallen bbcallen added the bug label Apr 18, 2016
@bbcallen
Copy link
Contributor

I'll take look.

@drawf
Copy link

drawf commented Apr 18, 2016

We look forward to fix this bug as soon as possible

@bbcallen
Copy link
Contributor

bbcallen commented Apr 18, 2016

Did you reproduce this problem in demo, on in your own app?
I can't reproduce here.

@drawf
Copy link

drawf commented Apr 18, 2016

1, in the demo, I used to use master translation of the support https armv7a so, this appears to play random error of http or https when hls
2, in the demo, I use compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.5.0', http playback of hls, the random error
3, in the demo, I use compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.4.5.1', playing the http hls, not wrong

@bbcallen
Copy link
Contributor

bbcallen commented Apr 18, 2016

How did you "重试" in demo?

@drawf
Copy link

drawf commented Apr 18, 2016

They were tested different VideoUri and gradle dependencies

@bbcallen
Copy link
Contributor

I mean "在无网络下播放失败,重试,会出现signal 11"

@drawf
Copy link

drawf commented Apr 18, 2016

Sorry, I was wrong always in the presence of network conditions occur

@lyqaiym
Copy link
Author

lyqaiym commented Apr 21, 2016

@bbcallen @WANZHI 我好像知道是哪个变量了。是tcp协议的libavformat/tcp.c下的typedef struct TCPContext的AVApplicationContext *app_ctx;我还不知道有啥用,但是我去掉,就没事了
在无网络下,总是走到这个协议的时候,挂了

@bbcallen
Copy link
Contributor

Sounds like you didn't clean and rebuild FFmpeg after a git pull.

@lyqaiym
Copy link
Author

lyqaiym commented Apr 22, 2016

@bbcallen 怎么解决啊,不是我一个人有着问题,有时候有网播放hls,释放的时候也会crash

@bbcallen
Copy link
Contributor

No, I still can't reproduce here.

Did you reproduce this problem in demo, on in your own app?
Did you clean and rebuild FFmpeg after a git pull?

@ielicyan
Copy link

ielicyan commented Apr 22, 2016

I followed the usage steps on "https://github.com/Bilibili/ijkplayer" and came across the sample issue.

@bbcallen
Copy link
Contributor

Can not reproduce on Nexus 6p, Android 6.0.1.
Do you have any idea about the difference between your test env and my test env?

@lyqaiym
Copy link
Author

lyqaiym commented Apr 22, 2016

我用三星s4,必现,在vivo,5.0就没事

@drawf
Copy link

drawf commented Apr 22, 2016

0.5.0 is always signal 11 (SIGSEGV) so cut everything back to normal 0.4.5.1

@ielicyan
Copy link

ielicyan commented Apr 22, 2016

My test phone is Huawei Honor-7,Android 4.4.2.
It is OK for local file playback,but crash on m3u8 playback.

@bbcallen
Copy link
Contributor

I'll see if I can get such devices.

@bbcallen
Copy link
Contributor

Possibly fixed in k0.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants