导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    V853调试MPP遇到的几个问题

    V Series
    2
    2
    1419
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Y
      giao LV 6 最后由 编辑

      目前在mpp外编上遇到有几处问题无法解决,特来请教各位大佬。

      执行sample_smartPreview_demo时会提示段错误

      9a017256ba351e279125cc096285527f675d5dac.png

      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时提示

      a90dc0c4a6b12e386cd85fcf93e9fc856f4ccb64.png

      [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时循环提示 无法获取视频流报错

      839f03788cd68bf13f2241bc81425b7729eed578.png

      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!
      
      1 条回复 最后回复 回复 引用 分享 0
      • WhycanService
        WhycanService LV 8 最后由 编辑

        咋感觉是glog的锅,试试date命令能不能用

        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策