目前在mpp外编上遇到学员反馈有几处问题。
执行sample_smartPreview_demo
时会提示段错误
具体打印信息为:
I0101 03:22:03.445359 1275 sample_smartPreview_demo.c:254] <MPPCallbackWrapper> VO callback: VO Layer[0] chn[0] event:258
I0101 03:22:03.445496 1275 sample_smartPreview_demo.c:271] <MPPCallbackWrapper> vo layer[0] report rendering start
[ISP_WARN]gc2053_mipi get sensor_temp failed: Invalid argument (22).
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
I0101 03:22:03.529241 1271 VideoVirVi_Component.c:1160] <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb55f9d50]
I0101 03:22:03.529488 1271 aiservice_mpp_helper.c:118] <mpp_helper_create_vipp> vipp8 chn0 create success
I0101 03:22:03.529752 1271 aiservice_detect.c:526] <aw_service_start> create face ch0 detect worker thread success.
I0101 03:22:03.529864 1271 aiservice_detect.c:530] <aw_service_start> success
I0101 03:22:03.529935 1271 sample_smartPrevi[ 1584.644475] npu[4f7][500] gckvip_drv_exit, aw_vip_mem_free
ew_demo.c:706] <main> [ 1584.653095] aw_vip_mem_free vir 0xe3782000, phy 0x49a00000
[ 1584.661941] aw_vip_mem_free dma_unmap_sg_atrs
[ 1584.669698] aw_vip_mem_free ion_unmap_kernel
[ 1584.674549] aw_vip_mem_free ion_free
[ 1584.678793] aw_vip_mem_free ion_client_destroy
[ 1584.685449] npu[4f7][500] vipcore, device un-init..
[ 1584.710038] [DISP] disp_mgr_set_layer_config,line:1504:
[ 1584.715822] NULL hdl!
[ 1584.718657] L1 PageTable Invalid
[ 1584.718661] 0x48ffe000 is not mapped!
[ 1584.718665] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.734891] L1 PageTable Invalid
[ 1584.738506] 0x48ffe000 is not mapped!
[ 1584.742605] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.751990] L1 PageTable Invalid
[ 1584.755608] 0x48ffe000 is not mapped!
[ 1584.759708] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.766144] lcd_close_flow
[ 1584.769274] L1 PageTable Invalid
[ 1584.769277] 0x48ffe000 is not mapped!
[ 1584.769280] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.783421] lcd_bl_close
[ 1584.786365] L1 PageTable Invalid
[ 1584.786368] 0x48ffe000 is not mapped!
[ 1584.786371] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.800751] lcd_panel_exit
[ 1584.803885] L1 PageTable Invalid
[ 1584.803888] 0x48ffe000 is not mapped!
[ 1584.803892] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.820381] L1 PageTable Invalid
[ 1584.823995] 0x48ffe000 is not mapped!
[ 1584.828095] DE invalid address: 0x48ffe000, data:0x0, id:0x4
[ 1584.995930] lcd_power_off
[ 1584.998968] [DISP] disp_sys_gpio_set_value,line:416:
[ 1585.004332] OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[ 1585.166331] [DISP] de_fcm_set_para,line:491:
[ 1585.170924] fcm lut 0 not find, auto retry after init
[ 1585.177046] [DISP] de_fcm_set_para,line:491:
[ 1585.181637] fcm lut 0 not find, auto retry after init
Segmentation fault (core dumped)
执行sample_virvi2venc2muxer demo
时提示
具体提示信息为:
[ISP]find gc2053_mipi_1920_1088_20_0 [gc2053_mipi_isp600_20220511_164617_vlc4_day] isp config
[ISP]create isp0 server thread!
I0101 03:32:36.212247 1314 mpi_vi.c:1018] <AW_MPI_VI_CreateVirChn> we allow to create virChn[0] in disable status of vipp[0]
I0101 03:32:36.212561 1314 VideoVirVi_Component.c:1160] <VideoViComponentInit> VideoVirvi component Init! thread_id[0xb6c32d50]
I0101 03:32:36.248254 1314 samp[ 2217.252031] VE: before freq=300000000
2217.257644] VE: real freq=300000000
60C<configVencChnAttr> pixfmt:0x[ 2217.264021] VE: before freq=300000000
20, colorSpace:0x3
I0101 03:32:[ 2217.270975] VE: real freq=300000000
36.248432 1314 sample_vi2venc2muxer.c:1078] <configVencChnAttr> DropFrameNum:0
I0101 03:32:36.248520 1314 sample_vi2venc2muxer.c:1240] <configVencChnAttr> venc set Rcmode=2
I0101 03:32:36.249077 1314 VideoEnc_Component.c:7042] <VideoEncComponentInit> create VideoEnc threadId:0xb5ff8d50
I0101 03:32:36.249227 1314 VideoEnc_Component.c:5422] <VideoEncSendCommand> set VencChn[0] Comp StateIdle
I0101 03:32:36.249368 1318 media_debug.c:45] <getDictByConfPath> MPP_DEDIA_DEBUG_FILE_PATH=(null)
I0101 03:32:36.249539 1318 VideoEnc_Component.c:1110] <CedarvEncInit> VencChn[0] Create VeType=96
iniparser: cannot open /tmp/libcedarc_dynamic_log_level
INFO : cedarc <cdc_log_set_level:43>: Set log level to 5 from /vendor/etc/cedarc.conf
WARNING: cedarc <LogVersionInfo:44>:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Cedar Codec <<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag :
branch: tina-v853-dev
commit: ee230a47e5a2392ec315795121c2d112492fac1c
date : Fri Jul 22 10:37:50 2022 +0800
author: wuguanjian
change-id : I28fe0c31c718f097d61ad6bdbcb4cb5df0bd3575
release_author : lichaopdc
patch :
----------------------------------------------------------------------
I0101 03:32:36.255536 1317 videoInputHw.c:4787] <VideoInputHw_CapThread> loop VideoInputHw_CapThread vipp_id = 0, buf_num=4.
I0101 03:32:36.276050 1314 sample_vi2venc2muxer.c:1291] <createVencChn> create venc channel[0] success!
I0101 03:32:36.276198 1314 sample_vi2venc2muxer.c:1324] <createVencChn> set venc framerate: src 20fps, dst 20fps
I0101 03:32:36.276286 1314 VideoEnc_Component.c:3961] <VideoEncSetFrameRate> vencChn[0] set new framerate:20
E0101 03:32:36.276449 1314 glog_helper.cpp:16] *** Aborted at 12756 (unix time) try "date -d @12756" if you are using GNU date ***
E0101 03:32:36.277036 1314 glog_helper.cpp:16] PC: @ 0x0 (unknown)
Segmentation fault (core dumped)
执行sample_virvi2venc demo
时循环提示 无法获取视频流报错
具体报错信息为:
WARNING: cedarc <EncAdapterPrintEncReg:138>: --------- register of ve encoder base:0xb6f4eb00 -----------
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg00:00f00088 0066c100 001c0623 00000000
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg10:58c00000 00000007 00030000 90070200
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg20:00000080 00000000 00000000 9805ffff
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg30:0a080604 12100e0c 1a181614 00503600
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg40:00000000 00000000 00000000 00000000
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg50:00000000 00000000 00000000 00000000
WARNING: cedarc <EncAdapterPrintEncReg:141>: timeout-enc-reg60:00503400 000000^C000000 00000000 00000000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-reg50:00000000 00000000 01ba03b8 004000ff
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-reg60:00000010 00000210 00000000 00000000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-reg70:00000000 00000000 48e00000 48ffe000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-reg80:48ffe000 00000000 00000000 00000202
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-reg90:03ff03ff 02061011 00800044 00000000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-rega0:00141010 00000000 00000000 00670127
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-regb0:00670127 1002102a 00200080 01010101
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-regc0:005a0155 00000040 5038b000 00000000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-regd0:00000000 00000000 00000000 00000000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-rege0:00000100 01000000 00000000 00000000
WARNING: cedarc <EncAdapterPrintIspReg:157>: timeout-isp-regf0:00000200 00000000 00000000 00000000
WARNING: cedarc <EncAdapterPrintIspReg:160>:
WARNING: cedarc <h265SramPrintf:8565>:
***************F0 Sram Addr Val ***************
WARNING: cedarc <h265SramPrintf:8566>: 0x400: 0050b000 0050b700 0050b000 0050b700
WARNING: cedarc <h265SramPrintf:8567>: 0x410: 00504000 00504000 00503000 00503000
ERROR : cedarc <h265OvertimeRencodeCfg:9318>: F0 Overtime, VBV: Total:3110912, Valid:0, Unused:3110912; Qp: Last:35, Next:41
I0101 03:34:50.087629 1322 sample_virvi2venc.c:34] <handle_exit> user want to exit!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
W0101 03:34:50.126057 1325 videoInputHw.c:4870] <VideoInputHw_CapThread> vi_v_frm_pts_invalid:vipp0--2350981953-2349673863=1308090(us)
I0101 03:34:50.126306 1324 VideoEnc_Component.c:6390] <VideoEncEmptyThisBuffer> Be careful! VencChn[0] vencInputPts[2350981953]-[2349673863]=[1308090]us, vBufSize[1920x1088]
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
I0101 03:34:50.197534 1327 sample_virvi2venc.c:1257] <GetEncoderFrameThread> get first frmae failed!
I0101 03:34:50.197830 1322 sample_virvi2venc.c:1519] <main> start to free res
I0101 03:34:50.197967 1322 sample_virvi2venc.c:1166] <stop> stop
W0101 03:34:50.198096 1324 VideoVirVi_Component.c:1236] <Vi_ComponentThread> Be careful! virChn[0-0] using frame is not empty!
W0101 03:34:50.198184 1324 VideoVirVi_Component.c:388] <DoVideoViReturnAllValidFrames> Be careful! remain [1] usingFrames after return all valid frames
I0101 03:34:50.198280 1322 sample_virvi2venc.c:1175] <stop> stop venc
I0101 03:34:50.198360 1322 VideoEnc_Component.c:5422] <VideoEncSendCommand> set VencChn[0] Comp StateIdle
I0101 03:34:50.198481 1326 VideoEnc_Component.c:7943] <ComponentThread> VencChn[0]: pause/executing[0x3]->idle ...
W0101 03:34:50.198564 1326 VideoEnc_Component.c:7405] <ReturnUseOrigFrameBeforeSetStateIdle> wait for VencChn[0] input orig usingFrameList empty, left frames cnt = [1]
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
^CI0101 03:34:50.697247 1322 sample_virvi2venc.c:34] <handle_exit> user want to exit!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!
[ISP_ERR]isp_sync_debug_info, line: 747,VIDIOC_VIN_ISP_GET_INFO error!