This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2PXEVM: TDA2PXEVN

Part Number: TDA2PXEVM

Tool/software: Linux

Hi,

My usecase is below.

Select_Capture -> Merge_Simcop
Dup_Simcop -> Sync_Org -> Alg_DmaSwMs -> Display_Org

Dup_Simcop -> Sync_CensusIn -> Dup_CensusIn -> Alg_Census (EVE1) -> Alg_DisparityHamDist (EVE1) -> Merge_StereoOut ->  Display_Disparity
Dup_CensusIn->Merge_StereoOut
IssM2mIsp -> Alg_IssAewb
GrpxSrc -> Display_Grpx

When I run the program, the error message is shown.

Assertion @ Line: 575 in utils_buf.c: (pBuffer->bufType == SYSTEM_BUFFER_TYPE_VIDEO_FRAME) || (pBuffer->bufType == SYSTEM_BUFFER_TYPE_EGLPIXMAP_VIDEO_FRAME) : failed !!!

What is problem?

The format of the Alg_DisparityHamDist (EVE1) output is problem?

Thanks

Rgds,

Heechang

  • Please somebody help me
  • [HOST] [IPU2 ] 54.630543 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.661196 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.693588 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.726743 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.922070 s: pBuffer->bufType:2
    [HOST] [IPU2 ] 54.922161 s: Assertion @ Line: 576 in utils_buf.c: (pBuffer->bufType == SYSTEM_BUFFER_TYPE_VIDEO_FRAME) || (pBuffer->bufType == SYSTEM_BUFFER_TYPE_EGLPIXMAP_VIDEO_FRAME) : failed !!!
    [HOST] [HOST ] 54.969956 s:
    [HOST] [HOST ]
    [HOST] [HOST ] ====================
    [HOST] [HOST ] Chains Run-time Menu
    [HOST] [HOST ] ====================
    [HOST] [HOST ]
    [HOST] [HOST ] 0: Stop Chain
    [HOST] [HOST ]
    [HOST] [HOST ] p: Print Performance Statistics
    [HOST] [HOST ]
    [HOST] [HOST ] Enter Choice:
    [HOST] [HOST ]
    [HOST] [IPU2 ] 54.993289 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 55.038095 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 55.059110 s: pBuffer->bufType:0
  • Hi,

    Can you share the image of your usecase?
    This error comes from the display link.If the system buffer format is not video frame.
    Can you check which link is giving the output to display link as non video frame system buffer.

    Regards,
    Anuj
  • Hi Kim,

    Could you please check if HapDist and Cencus Algorithms are outputting Video frame buffers? I am not sure about it.
    Also could you please check if this assertion is coming from Display link or if not, which link is throwing this assertion?

    Rgds,
    Brijesh
  • Hi Brijesh,

    How Can I check the output buffer type of the HapDist algorithm?
    My usecase flow is HapDist -> Merge -> Display.

    I checked this assertion is coming from Display Link(./vision_sdk/links_fw/src/rtos/links_ipu/display/displayLink_drv.c).

    Rgds,
    Heechang
  • Hi Anuj,

    I cannot share the image file cause the security policy of the company.
    But I wrote the usecase as above.

    If you need the SetAppPrms, I can inform you about this.
    I use the three Display Links which are Alg_DmaSwMs -> Display_Org, Alg_DisparityHamDist (EVE1) -> Merge_StereoOut -> Display_Disparity and GrpxSrc -> Display_Grpx.

    Regards,
    Heechang
  • Hi Anuj,

    As the log,
    After "[HOST] [IPU2 ] 54.922070 s: pBuffer->bufType:2" is shown, the error message is shown.
    When the bufType:1(Video Frame) is coming, the display is well.

    [HOST] [IPU2 ] 54.630543 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.661196 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.693588 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.726743 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 54.922070 s: pBuffer->bufType:2 <----Meta data buffer (I don't know where this buffer come from)

    I use the Isp channels buffer are 4.
    And, the Census and Disparity algoritms use the 6 output buffers.

    Thanks
    Regards,
    Heechang
  • Hi,

    Is the output buffers of the Disparity algorithm meta data buffer?

    Regards,
    Heechang
  • Hi Anuj,

    I logged to debug like below.

    [HOST] [IPU2 ] 95.677087 s: FrameIdx:0
    [HOST] [IPU2 ] 95.677148 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 95.677362 s: DISPLAY: Start in progress !!!
    [HOST] [IPU2 ] 95.677453 s: DISPLAY: Start Done !!!
    [HOST] [IPU2 ] 95.678399 s: DISPLAY: Start in progress !!!
    [HOST] [IPU2 ] 95.678490 s: DISPLAY: Start Done !!!
    [HOST] [IPU2 ] 95.683431 s: ISSCAPTURE: Start in progress !!!
    [HOST] [IPU2 ] 95.683614 s: ISSCAPTURE: Start Done !!!
    [HOST] [IPU2 ] 95.684895 s: Setting BspUtils_enableUb960CsiOutput!!!!
    [HOST] [IPU2 ] 95.742115 s: PrevLinkID: 150994983
    [HOST] [IPU2 ] 95.742237 s: FrameIdx:0
    [HOST] [IPU2 ] 95.746019 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 95.746141 s: FrameIdx:0
    [HOST] [IPU2 ] 95.746202 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 95.773683 s: PrevLinkID: 150994983
    [HOST] [IPU2 ] 95.773836 s: FrameIdx:0
    [HOST] [IPU2 ] 95.776916 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 95.777008 s: FrameIdx:0
    [HOST] [IPU2 ] 95.777069 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 95.806075 s: PrevLinkID: 150994983
    [HOST] [IPU2 ] 95.806167 s: FrameIdx:0
    [HOST] [IPU2 ] 95.809034 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 95.809125 s: FrameIdx:0
    [HOST] [IPU2 ] 95.809186 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 95.839352 s: PrevLinkID: 150994983
    [HOST] [IPU2 ] 95.839443 s: FrameIdx:0
    [HOST] [IPU2 ] 95.842310 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 95.842402 s: FrameIdx:0
    [HOST] [IPU2 ] 95.842463 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 96.037577 s: PrevLinkID: 150994983
    [HOST] [IPU2 ] 96.037668 s: FrameIdx:0
    [HOST] [IPU2 ] 96.037790 s: pBuffer->bufType:2
    [HOST] [IPU2 ] 96.037851 s: Assertion @ Line: 576 in utils_buf.c: (pBuffer->bufType == SYSTEM_BUFFER_TYPE_VIDEO_FRAME) || (pBuffer->bufType == SYSTEM_BUFFER_TYPE_EGLPIXMAP_VIDEO_FRAME) : failed !!!
    [HOST] [HOST ] 96.085402 s:
    [HOST] [HOST ]
    [HOST] [HOST ] ====================
    [HOST] [HOST ] Chains Run-time Menu
    [HOST] [HOST ] ====================
    [HOST] [HOST ]
    [HOST] [HOST ] 0: Stop Chain
    [HOST] [HOST ]
    [HOST] [HOST ] p: Print Performance Statistics
    [HOST] [HOST ]
    [HOST] [HOST ] Enter Choice:
    [HOST] [HOST ]
    [HOST] [IPU2 ] 96.108613 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 96.108765 s: FrameIdx:0
    [HOST] [IPU2 ] 96.108826 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 96.151040 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 96.151131 s: FrameIdx:0
    [HOST] [IPU2 ] 96.151284 s: pBuffer->bufType:0
    [HOST] [IPU2 ] 96.174220 s: PrevLinkID: 150994993
    [HOST] [IPU2 ] 96.174342 s: FrameIdx:0
    [HOST] [IPU2 ] 96.174403 s: pBuffer->bufType:0

    The ID 150994983 is Merge_StereoOut link and this buffer type is meta data buffer.
    (The ID 150994993 is Alg_DmaSwMsLinkID)
    The display link from Alg_DmaSwMsLink runs the display.
    But, the display link from Merge_StereoOutLink has the meta data buffer.

    I think that the sicne merge link from (Disparity algorithm+Dup_Census link) has the meta data buffer, the error is shown.

    How can I do?

    Thanks
    Best regards,
    Heechang
  • Hi all,

    I found that the Disparity algorithm use the meta data buffers. (disparityHamDistLink_algPlugin.c)
    (pOutChInfo->flags = System_Link_Ch_Info_Set_Flag_Buf_Type(pOutChInfo->flags,SYSTEM_BUFFER_TYPE_METADATA);)

    I'd like to check this algorithm run well or not.
    Is it impossible?

    Should I connect the StereoPostProceses algorithm?

    Thanks
    Best regards,
    Heechang
  • Hi Kim,

    I would suggest you to go through one of existing usecase where stereo is used. This will give idea as how difference algorithms can be used, what is their data types and how they can be connected and displayed. one of the examples is, network_stereo_display usease..

    Rgds,
    Brijesh
  • Hi Brijesh,

    Yes, I also see the usecase example, iss_mult_capture_isp_simcop_stereo_tda3xx, which is my final purpose in HLOS.
    I understood the buffer type.
    The "Stereo Post Processing Link" should be used for stereo case.
    But, I'm faced with a problem which is StereoPostProcess Link memory error.

    Thanks
    Rgds,
    Heechang