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

addr = mpp_buffer_get_ptr(desc->buffers[i]); core dump #7

Closed
MapleAura opened this issue Jan 13, 2024 · 2 comments
Closed

addr = mpp_buffer_get_ptr(desc->buffers[i]); core dump #7

MapleAura opened this issue Jan 13, 2024 · 2 comments

Comments

@MapleAura
Copy link

MapleAura commented Jan 13, 2024

大佬您好,又来请教一个问题。

我在进行网络流解码或者文件解码操作时hwcontext_rkmpp.c:397出现了core dump。
命令行如下:
gdb --args ffmpeg -re -c:v h264_rkmpp -hwaccel_output_format drm_prime -i /xxx/8.mkv -an -sn -vframes 5000 -f null -

堆栈:
image

采用调用ffmpeg接口的方式出现了同样的问题,mpp已经更新到官网最新,使用的是最新的6.1分支的代码。

附件是我测试用的视频
8.zip

@nyanmisaka
Copy link
Owner

@MapleAura It was a regression. Please apply the latest commit 97e6a5e and try again.

@MapleAura
Copy link
Author

t was a regression

好了 结果能拿到了 谢谢您

nyanmisaka pushed a commit that referenced this issue Apr 17, 2024
In close_output(), a dummy frame is created with format NONE passed
to enc_open(), which isn't prepared for it. The NULL pointer
dereference happened at
av_pix_fmt_desc_get(enc_ctx->pix_fmt)->comp[0].depth.

When fgt.graph is NULL, skip fg_output_frame() since there is
nothing to output.

frame #0: 0x0000005555bc34a4 ffmpeg_g`enc_open(opaque=0xb400007efe2db690, frame=0xb400007efe2d9f70) at ffmpeg_enc.c:235:44
frame #1: 0x0000005555bef250 ffmpeg_g`enc_open(sch=0xb400007dde2d4090, enc=0xb400007e4e2daad0, frame=0xb400007efe2d9f70) at ffmpeg_sched.c:1462:11
frame #2: 0x0000005555bee094 ffmpeg_g`send_to_enc(sch=0xb400007dde2d4090, enc=0xb400007e4e2daad0, frame=0xb400007efe2d9f70) at ffmpeg_sched.c:1571:19
frame #3: 0x0000005555bee01c ffmpeg_g`sch_filter_send(sch=0xb400007dde2d4090, fg_idx=0, out_idx=0, frame=0xb400007efe2d9f70) at ffmpeg_sched.c:2154:12
frame #4: 0x0000005555bcf124 ffmpeg_g`close_output(ofp=0xb400007e4e2d85b0, fgt=0x0000007d1790eb08) at ffmpeg_filter.c:2225:15
frame #5: 0x0000005555bcb000 ffmpeg_g`fg_output_frame(ofp=0xb400007e4e2d85b0, fgt=0x0000007d1790eb08, frame=0x0000000000000000) at ffmpeg_filter.c:2317:16
frame #6: 0x0000005555bc7e48 ffmpeg_g`filter_thread(arg=0xb400007eae2ce7a0) at ffmpeg_filter.c:2836:15
frame #7: 0x0000005555bee568 ffmpeg_g`task_wrapper(arg=0xb400007d8e2db478) at ffmpeg_sched.c:2200:21

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants