mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
Occasionally Segmentation fault used on rk3562 platform #156
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#156
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cnjswwxbtcc on GitHub (Mar 13, 2025).
Segmentatin fault should be caused by my own code processing
@nyanmisaka commented on GitHub (Mar 13, 2025):
Please provide a command line that can be reproduced with ffmpeg and a video sample.
@mark3303 commented on GitHub (Mar 27, 2025):
I met maybe the same problem when I use the encoder "hevc_rkmpp". It broken with "Segmentation fault" before avcodec_send_frame, the gdb info show down here.
#0 0x0000007f9877a968 in mpp_buffer_create () from /oem/usr/lib/librockchip_mpp.so.1
#1 0x0000007f9877e33c in mpp_buffer_get_with_tag () from /oem/usr/lib/librockchip_mpp.so.1
#2 0x0000000000d12bb4 in rkmpp_drm_pool_alloc (opaque=0x346585f0, size=) at libavutil/hwcontext_rkmpp.c:225
#3 0x0000000000cffd6c in pool_alloc_buffer (pool=0x34687f00) at libavutil/buffer.c:362
#4 av_buffer_pool_get (pool=0x34687f00) at libavutil/buffer.c:401
#5 0x0000000000d125c8 in rkmpp_get_buffer (hwfc=0x346585f0, frame=0x3466f7a0) at libavutil/hwcontext_rkmpp.c:337
#6 0x0000000000d110c0 in av_hwframe_get_buffer (hwframe_ref=, frame=0x3466f7a0, flags=flags@entry=0) at libavutil/hwcontext.c:563
#7 0x000000000075bc1c in rkmpp_submit_frame (frame=0x346670b0, avctx=0x34674600) at libavcodec/rkmppenc.c:607
#8 rkmpp_encode_frame (avctx=0x34674600, packet=0x34675420, frame=0x346670b0, got_packet=0x7ff974600c) at libavcodec/rkmppenc.c:875
#9 0x000000000056235c in ff_encode_encode_cb (avctx=avctx@entry=0x34674600, avpkt=avpkt@entry=0x34675420, frame=0x346670b0, got_packet=got_packet@entry=0x7ff974600c) at libavcodec/encode.c:264
#10 0x00000000005626c4 in encode_simple_internal (avpkt=0x34675420, avctx=0x34674600) at libavcodec/encode.c:350
#11 encode_simple_receive_packet (avpkt=, avctx=) at libavcodec/encode.c:364
#12 encode_receive_packet_internal (avctx=avctx@entry=0x34674600, avpkt=0x34675420) at libavcodec/encode.c:398
#13 0x0000000000562994 in avcodec_send_frame (avctx=0x34674600, frame=0x34674ff0) at libavcodec/encode.c:541
#14 0x0000000000462db0 in Storage::Push(cv::Mat) ()
#15 0x0000000000461e78 in main ()
It could worked with the same code by using encoder "AV_CODEC_ID_H265".
@nyanmisaka commented on GitHub (Mar 27, 2025):
https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Compilation#attention
No it’s not related.
@nyanmisaka commented on GitHub (Apr 8, 2025):
Closing as I couldn't get a sample.