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.

TDA4VL-Q1: Memory Issues in custom kernel

Part Number: TDA4VL-Q1
Other Parts Discussed in Thread: TDA4VM

Tool/software:

Dear Sir,

I am working on the pipeline

PSDK : 9.2(J721S2)

OS: QNX + RTOS

Camera -> LDC(Custom Kernel C7x) -> Pre-processing -> TIDL -> Post-processing(Custom Kernel C7x) -> ....

I am facing below error in post-processing 

 40.963509 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:34] size is 0
 40.963552 s:  VX_ZONE_ERROR:[ownAllocReferenceBufferGeneric:349] Memory allocation failed
 40.963574 s:  VX_ZONE_ERROR:[ownGraphAllocateDataObject:979] Memory allocation for replicated parameter parent object failed
 40.963598 s:  VX_ZONE_ERROR:[vxVerifyGraph:2104] Memory alloc for data objects failed
 40.963619 s:  VX_ZONE_ERROR:[vxVerifyGraph:2213] Graph verify failed
 41.064440 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... !!!
 41.064613 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... Done !!!
 41.479506 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
 41.487395 s:  VX_ZONE_INIT:[tivxDeInitLocal:204] De-Initialization Done !!!

I am allocating memory in custom kernel using tivxMemAlloc.

Not able to understand , what could be the possible reason for the same.

Note: This custom kernel was working with J721E (PSDK 7), I am porting it to J721S2 (9.2), where custom kernel is generated from  PSDK 9.2 and the logic is integrated.

Thanks and Regards,

Vyom Mishra

  • Hi Vyom,

    Could you please share the full logs?

    Regards,

    Nikhil

  • Dear Sir,

    Please find the full logs;

    J721S2-EVM@QNX:/# cd /ti_fs/vision_apps/
    J721S2-EVM@QNX:/ti_fs/vision_apps# 
    J721S2-EVM@QNX:/ti_fs/vision_apps# 
    J721S2-EVM@QNX:/ti_fs/vision_apps# 
    J721S2-EVM@QNX:/ti_fs/vision_apps# ./vision_apps_init.sh 
    J721S2-EVM@QNX:/ti_fs/vision_apps# [MCU2_0]      4.447368 s: CIO: Init ... Done !!!
    [MCU2_0]      4.447418 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]      4.447442 s: CPU is running FreeRTOS
    [MCU2_0]      4.447458 s: APP: Init ... !!!
    [MCU2_0]      4.447489 s: SCICLIENT: Init ... !!!
    [MCU2_0]      4.447607 s: SCICLIENT: DMSC FW version [9.2.4--v09.02.04 (Kool Koala)]
    [MCU2_0]      4.447633 s: SCICLIENT: DMSC FW revision 0x9  
    [MCU2_0]      4.447652 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_0]      4.447672 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]      4.447689 s: UDMA: Init ... !!!
    [MCU2_0]      4.448526 s: UDMA: Init ... Done !!!
    [MCU2_0]      4.448554 s: UDMA: Init for CSITX/CSIRX ... !!!
    [MCU2_0]      4.448972 s: UDMA: Init for CSITX/CSIRX ... Done !!!
    [MCU2_0]      4.449000 s: MEM: Init ... !!!
    [MCU2_0]      4.449020 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ b9000000 of size 14680064 bytes !!!
    [MCU2_0]      4.449061 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 60000000 of size 524288 bytes !!!
    [MCU2_0]      4.449097 s: MEM: Created heap (DDR_CACHE_WT_MEM, id=7, flags=0x00000000) @ b9e00000 of size 2097152 bytes !!!
    [MCU2_0]      4.449132 s: MEM: Init ... Done !!!
    [MCU2_0]      4.449147 s: IPC: Init ... !!!
    [MCU2_0]      4.449176 s: IPC: 5 CPUs participating in IPC !!!
    [MCU2_0]      4.451767 s: IPC: Init ... Done !!!
    [MCU2_0]      4.451793 s: APP: Syncing with 4 CPUs ... !!!
    [MCU2_0]      4.679902 s: APP: Syncing with 4 CPUs ... Done !!!
    [MCU2_0]      4.679925 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_0]      4.680116 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_0]      4.680178 s: FVID2: Init ... !!!
    [MCU2_0]      4.680233 s: FVID2: Init ... Done !!!
    [MCU2_0]      4.680252 s: SCICLIENT: Sciclient_pmSetModuleState module=219 state=2
    [MCU2_0]      4.680330 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.680362 s: DSS: Init ... !!!
    [MCU2_0]      4.680379 s: DSS: Display type is eDP !!!
    [MCU2_0]      4.680396 s: DSS: M2M Path is enabled !!!
    [MCU2_0]      4.680413 s: DSS: SoC init ... !!!
    [MCU2_0]      4.680427 s: SCICLIENT: Sciclient_pmSetModuleState module=158 state=0
    [MCU2_0]      4.680490 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.680510 s: SCICLIENT: Sciclient_pmSetModuleState module=365 state=2
    [MCU2_0]      4.680614 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.680634 s: SCICLIENT: Sciclient_pmSetModuleState module=156 state=2
    [MCU2_0]      4.680779 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.680799 s: SCICLIENT: Sciclient_pmSetModuleState module=365 state=2
    [MCU2_0]      4.680891 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.680910 s: SCICLIENT: Sciclient_pmSetModuleState module=156 state=2
    [MCU2_0]      4.680993 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.681012 s: SCICLIENT: Sciclient_pmSetModuleState module=158 state=0
    [MCU2_0]      4.681184 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.681245 s: SCICLIENT: Sciclient_pmSetModuleClkFreq module=158 clk=3 freq=148500000
    [MCU2_0]      4.681495 s: SCICLIENT: Sciclient_pmSetModuleClkFreq success
    [MCU2_0]      4.681517 s: SCICLIENT: Sciclient_pmModuleClkRequest module=158 clk=3 state=2 flag=2
    [MCU2_0]      4.681695 s: SCICLIENT: Sciclient_pmModuleClkRequest success
    [MCU2_0]      4.681716 s: SCICLIENT: Sciclient_pmSetModuleState module=158 state=2
    [MCU2_0]      4.681876 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      4.681895 s: DSS: SoC init ... Done !!!
    [MCU2_0]      4.681912 s: DSS: Board init ... !!!
    [MCU2_0]      4.681927 s: DSS: Turning on DP_PWR pin for eDP adapters ... !!!
    [MCU2_0]      5.227227 s: DSS: Turning on DP_PWR pin for eDP adapters ... Done!!!
    [MCU2_0]      5.227262 s: DSS: Board init ... Done !!!
    [MCU2_0]      5.304283 s: DSS: Init ... Done !!!
    [MCU2_0]      5.304340 s: VHWA: VPAC Init ... !!!
    [MCU2_0]      5.304361 s: SCICLIENT: Sciclient_pmSetModuleState module=361 state=2
    [MCU2_0]      5.304471 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.304493 s: VHWA: LDC Init ... !!!
    [MCU2_0]      5.306120 s: VHWA: LDC Init ... Done !!!
    [MCU2_0]      5.306158 s: VHWA: MSC Init ... !!!
    [MCU2_0]      5.311895 s: VHWA: MSC Init ... Done !!!
    [MCU2_0]      5.311927 s: VHWA: NF Init ... !!!
    [MCU2_0]      5.312743 s: VHWA: NF Init ... Done !!!
    [MCU2_0]      5.312771 s: VHWA: VISS Init ... !!!
    [MCU2_0]      5.318067 s: VHWA: VISS Init ... Done !!!
    [MCU2_0]      5.318105 s: VHWA: VPAC Init ... Done !!!
    [MCU2_0]      5.318141 s:  VX_ZONE_INIT:Enabled
    [MCU2_0]      5.318161 s:  VX_ZONE_ERROR:Enabled
    [MCU2_0]      5.318178 s:  VX_ZONE_WARNING:Enabled
    [MCU2_0]      5.319437 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MCU2-0 
    [MCU2_0]      5.319534 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_NF 
    [MCU2_0]      5.319629 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_LDC1 
    [MCU2_0]      5.319705 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_MSC1 
    [MCU2_0]      5.319795 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_MSC2 
    [MCU2_0]      5.319934 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_VISS1 
    [MCU2_0]      5.320040 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE1 
    [MCU2_0]      5.320135 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE2 
    [MCU2_0]      5.320220 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE3 
    [MCU2_0]      5.320315 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE4 
    [MCU2_0]      5.320415 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE5 
    [MCU2_0]      5.320515 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE6 
    [MCU2_0]      5.320602 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE7 
    [MCU2_0]      5.320699 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE8 
    [MCU2_0]      5.320794 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DISPLAY1 
    [MCU2_0]      5.320890 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DISPLAY2 
    [MCU2_0]      5.320992 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CSITX 
    [MCU2_0]      5.321080 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CSITX2 
    [MCU2_0]      5.321168 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M1 
    [MCU2_0]      5.321280 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M2 
    [MCU2_0]      5.321370 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M3 
    [MCU2_0]      5.321455 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M4 
    [MCU2_0]      5.321495 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [MCU2_0]      5.321519 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_0]      5.329155 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_0]      5.329196 s: CSI2RX: Init ... !!!
    [MCU2_0]      5.329215 s: SCICLIENT: Sciclient_pmSetModuleState module=136 state=2
    [MCU2_0]      5.329298 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.329322 s: SCICLIENT: Sciclient_pmSetModuleState module=38 state=2
    [MCU2_0]      5.329410 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.329431 s: SCICLIENT: Sciclient_pmSetModuleState module=39 state=2
    [MCU2_0]      5.329506 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.329527 s: SCICLIENT: Sciclient_pmSetModuleState module=152 state=2
    [MCU2_0]      5.329585 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.329605 s: SCICLIENT: Sciclient_pmSetModuleState module=153 state=2
    [MCU2_0]      5.329658 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.329812 s: CSI2RX: Init ... Done !!!
    [MCU2_0]      5.329833 s: CSI2TX: Init ... !!!
    [MCU2_0]      5.329849 s: SCICLIENT: Sciclient_pmSetModuleState module=136 state=2
    [MCU2_0]      5.329901 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.329923 s: SCICLIENT: Sciclient_pmSetModuleState module=40 state=2
    [MCU2_0]      5.330002 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.330024 s: SCICLIENT: Sciclient_pmSetModuleState module=41 state=2
    [MCU2_0]      5.330092 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.330112 s: SCICLIENT: Sciclient_pmSetModuleState module=363 state=2
    [MCU2_0]      5.330175 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.330195 s: SCICLIENT: Sciclient_pmSetModuleState module=364 state=2
    [MCU2_0]      5.330257 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      5.330327 s: CSI2TX: Init ... Done !!!
    [MCU2_0]      5.330349 s: ISS: Init ... !!!
    [MCU2_0]      5.330380 s: IssSensor_Init ... Done !!!
    [MCU2_0]      5.330435 s: IttRemoteServer_Init ... Done !!!
    [MCU2_0]      5.330456 s: ISS: Init ... Done !!!
    [MCU2_0]      5.330475 s: VISS REMOTE SERVICE: Init ... !!!
    [MCU2_0]      5.330522 s: VISS REMOTE SERVICE: Init ... Done !!!
    [MCU2_0]      5.330543 s: UDMA Copy: Init ... !!!
    [MCU2_0]      5.331411 s: UDMA Copy: Init ... Done !!!
    [MCU2_0]      5.331447 s: APP: Init ... Done !!!
    [MCU2_0]      5.331466 s: APP: Run ... !!!
    [MCU2_0]      5.331482 s: IPC: Starting echo test ...
    [MCU2_0]      5.331605 s: APP: Run ... Done !!!
    [MCU2_0]      5.332305 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C7X_1[.] C7X_2[.] 
    [MCU2_0]      5.332363 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C7X_1[P] C7X_2[.] 
    [MCU2_0]      5.332405 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C7X_1[P] C7X_2[P] 
    [MCU2_1]      4.468136 s: CIO: Init ... Done !!!
    [MCU2_1]      4.468185 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_1]      4.468206 s: CPU is running FreeRTOS
    [MCU2_1]      4.468222 s: APP: Init ... !!!
    [MCU2_1]      4.468252 s: SCICLIENT: Init ... !!!
    [MCU2_1]      4.468366 s: SCICLIENT: DMSC FW version [9.2.4--v09.02.04 (Kool Koala)]
    [MCU2_1]      4.468393 s: SCICLIENT: DMSC FW revision 0x9  
    [MCU2_1]      4.468411 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_1]      4.468431 s: SCICLIENT: Init ... Done !!!
    [MCU2_1]      4.468448 s: UDMA: Init ... !!!
    [MCU2_1]      4.469272 s: UDMA: Init ... Done !!!
    [MCU2_1]      4.469299 s: MEM: Init ... !!!
    [MCU2_1]      4.469323 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ ba000000 of size 16777216 bytes !!!
    [MCU2_1]      4.469363 s: MEM: Init ... Done !!!
    [MCU2_1]      4.469380 s: IPC: Init ... !!!
    [MCU2_1]      4.469410 s: IPC: 5 CPUs participating in IPC !!!
    [MCU2_1]      4.471999 s: IPC: Init ... Done !!!
    [MCU2_1]      4.472032 s: APP: Syncing with 4 CPUs ... !!!
    [MCU2_1]      4.679902 s: APP: Syncing with 4 CPUs ... Done !!!
    [MCU2_1]      4.679922 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_1]      4.680113 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_1]      4.680170 s: FVID2: Init ... !!!
    [MCU2_1]      4.680222 s: FVID2: Init ... Done !!!
    [MCU2_1]      4.680243 s: VHWA: DMPAC: Init ... !!!
    [MCU2_1]      4.680260 s: SCICLIENT: Sciclient_pmSetModuleState module=58 state=2
    [MCU2_1]      4.680385 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]      4.680409 s: SCICLIENT: Sciclient_pmSetModuleState module=62 state=2
    [MCU2_1]      4.680471 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]      4.680491 s: VHWA: DOF Init ... !!!
    [MCU2_1]      4.684123 s: VHWA: DOF Init ... Done !!!
    [MCU2_1]      4.684158 s: VHWA: SDE Init ... !!!
    [MCU2_1]      4.685285 s: VHWA: SDE Init ... Done !!!
    [MCU2_1]      4.685312 s: VHWA: DMPAC: Init ... Done !!!
    [MCU2_1]      4.685340 s:  VX_ZONE_INIT:Enabled
    [MCU2_1]      4.685357 s:  VX_ZONE_ERROR:Enabled
    [MCU2_1]      4.685373 s:  VX_ZONE_WARNING:Enabled
    [MCU2_1]      4.686484 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MCU2-1 
    [MCU2_1]      4.686577 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DMPAC_SDE 
    [MCU2_1]      4.686653 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DMPAC_DOF 
    [MCU2_1]      4.686686 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [MCU2_1]      4.686710 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_1]      4.686842 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_1]      4.686867 s: UDMA Copy: Init ... !!!
    [MCU2_1]      4.687687 s: UDMA Copy: Init ... Done !!!
    [MCU2_1]      4.687720 s: APP: Init ... Done !!!
    [MCU2_1]      4.687738 s: APP: Run ... !!!
    [MCU2_1]      4.687753 s: IPC: Starting echo test ...
    [MCU2_1]      4.687837 s: APP: Run ... Done !!!
    [MCU2_1]      4.688243 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C7X_1[P] C7X_2[.] 
    [MCU2_1]      4.688303 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C7X_1[P] C7X_2[P] 
    [MCU2_1]      5.332182 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[s] C7X_1[P] C7X_2[P] 
    [C7x_1 ]      4.627956 s: CIO: Init ... Done !!!
    [C7x_1 ]      4.627972 s: ### CPU Frequency = 1000000000 Hz
    [C7x_1 ]      4.627984 s: CPU is running FreeRTOS
    [C7x_1 ]      4.627993 s: APP: Init ... !!!
    [C7x_1 ]      4.628000 s: SCICLIENT: Init ... !!!
    [C7x_1 ]      4.628101 s: SCICLIENT: DMSC FW version [9.2.4--v09.02.04 (Kool Koala)]
    [C7x_1 ]      4.628114 s: SCICLIENT: DMSC FW revision 0x9  
    [C7x_1 ]      4.628125 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C7x_1 ]      4.628136 s: SCICLIENT: Init ... Done !!!
    [C7x_1 ]      4.628145 s: UDMA: Init ... !!!
    [C7x_1 ]      4.628914 s: UDMA: Init ... Done !!!
    [C7x_1 ]      4.628927 s: MEM: Init ... !!!
    [C7x_1 ]      4.628938 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ 117000000 of size 268435456 bytes !!!
    [C7x_1 ]      4.628959 s: MEM: Init ... Done !!!
    [C7x_1 ]      4.628969 s: IPC: Init ... !!!
    [C7x_1 ]      4.628985 s: IPC: 5 CPUs participating in IPC !!!
    [C7x_1 ]      4.630202 s: IPC: Init ... Done !!!
    [C7x_1 ]      4.630215 s: APP: Syncing with 4 CPUs ... !!!
    [C7x_1 ]      4.679903 s: APP: Syncing with 4 CPUs ... Done !!!
    [C7x_1 ]      4.679919 s: REMOTE_SERVICE: Init ... !!!
    [C7x_1 ]      4.680079 s: REMOTE_SERVICE: Init ... Done !!!
    [C7x_1 ]      4.680100 s:  VX_ZONE_INIT:Enabled
    [C7x_1 ]      4.680112 s:  VX_ZONE_ERROR:Enabled
    [C7x_1 ]      4.680124 s:  VX_ZONE_WARNING:Enabled
    [C7x_1 ]      4.680327 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1 
    [C7x_1 ]      4.680392 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_2 
    [C7x_1 ]      4.680459 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_3 
    [C7x_1 ]      4.680523 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_4 
    [C7x_1 ]      4.680590 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_5 
    [C7x_1 ]      4.680655 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_6 
    [C7x_1 ]      4.680719 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_7 
    [C7x_1 ]      4.680786 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP_C7-1_PRI_8 
    [C7x_1 ]      4.680809 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [C7x_1 ]      4.680821 s: APP: OpenVX Target kernel init ... !!!
    [C7x_1 ]      4.681015 s: APP: OpenVX Target kernel init ... Done !!!
    [C7x_1 ]      4.681029 s: APP: Init ... Done !!!
    [C7x_1 ]      4.681038 s: APP: Run ... !!!
    [C7x_1 ]      4.681047 s: IPC: Starting echo test ...
    [C7x_1 ]      4.681124 s: APP: Run ... Done !!!
    [C7x_1 ]      4.682470 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C7X_1[s] C7X_2[P] 
    [C7x_1 ]      4.688221 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C7X_1[s] C7X_2[P] 
    [C7x_1 ]      5.332215 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C7X_1[s] C7X_2[P] 
    [C7x_2 ]      4.677490 s: CIO: Init ... Done !!!
    [C7x_2 ]      4.677506 s: ### CPU Frequency = 1000000000 Hz
    [C7x_2 ]      4.677517 s: CPU is running FreeRTOS
    [C7x_2 ]      4.677526 s: APP: Init ... !!!
    [C7x_2 ]      4.677533 s: SCICLIENT: Init ... !!!
    [C7x_2 ]      4.677630 s: SCICLIENT: DMSC FW version [9.2.4--v09.02.04 (Kool Koala)]
    [C7x_2 ]      4.677644 s: SCICLIENT: DMSC FW revision 0x9  
    [C7x_2 ]      4.677654 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C7x_2 ]      4.677665 s: SCICLIENT: Init ... Done !!!
    [C7x_2 ]      4.677674 s: UDMA: Init ... !!!
    [C7x_2 ]      4.678444 s: UDMA: Init ... Done !!!
    [C7x_2 ]      4.678456 s: MEM: Init ... !!!
    [C7x_2 ]      4.678468 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ 127000000 of size 16777216 bytes !!!
    [C7x_2 ]      4.678491 s: MEM: Init ... Done !!!
    [C7x_2 ]      4.678500 s: IPC: Init ... !!!
    [C7x_2 ]      4.678516 s: IPC: 5 CPUs participating in IPC !!!
    [C7x_2 ]      4.679874 s: IPC: Init ... Done !!!
    [C7x_2 ]      4.679888 s: APP: Syncing with 4 CPUs ... !!!
    [C7x_2 ]      4.679902 s: APP: Syncing with 4 CPUs ... Done !!!
    [C7x_2 ]      4.679913 s: REMOTE_SERVICE: Init ... !!!
    [C7x_2 ]      4.680022 s: REMOTE_SERVICE: Init ... Done !!!
    [C7x_2 ]      4.680081 s:  VX_ZONE_INIT:Enabled
    [C7x_2 ]      4.680094 s:  VX_ZONE_ERROR:Enabled
    [C7x_2 ]      4.680104 s:  VX_ZONE_WARNING:Enabled
    [C7x_2 ]      4.680631 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSP-1 
    [C7x_2 ]      4.680655 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [C7x_2 ]      4.680669 s: APP: OpenVX Target kernel init ... !!!
    
    [C7x_2 ]      4.680966 s: APP: OpenVX Target kernel init ... Done !!!
    [C7x_2 ]      4.680981 s: UDMA Copy: Init ... !!!
    [C7x_2 ]      4.682107 s: UDMA Copy: Init ... Done !!!
    [C7x_2 ]      4.682121 s: APP: Init ... Done !!!
    [C7x_2 ]      4.682131 s: APP: Run ... !!!
    [C7x_2 ]      4.682140 s: IPC: Starting echo test ...
    [C7x_2 ]      4.682217 s: APP: Run ... Done !!!
    [C7x_2 ]      4.682465 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C7X_1[P] C7X_2[s] 
    [C7x_2 ]      4.688232 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C7X_1[P] C7X_2[s] 
    [C7x_2 ]      5.332228 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C7X_1[P] C7X_2[s] 
    J721S2-EVM@QNX:/ti_fs/vision_apps# 
    J721S2-EVM@QNX:/ti_fs/vision_apps# 
    J721S2-EVM@QNX:/ti_fs/vision_apps# 
    J721S2-EVM@QNX:/ti_fs/vision_apps# ./klk_tidl_od_cam.out --cfg klk_od.
    klk_od.cfg   klk_od.out   
    J721S2-EVM@QNX:/ti_fs/vision_apps# ./klk_tidl_od_cam.out --cfg klk_od. 
    klk_od.cfg   klk_od.out   
    J721S2-EVM@QNX:/ti_fs/vision_apps# ./klk_tidl_od_cam.out --cfg klk_od.cfg 
    APP: Init QNX ... !!!
    appIpcInit: IPC: Init QNX ... !!!
    appIpcInit: IPC: Init ... Done !!!
        30.638628 s: REMOTE_SERVICE: Init ... !!!
        30.638782 s: REMOTE_SERVICE: Init ... Done !!!
        30.638818 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
        30.638848 s:  VX_ZONE_INIT:Enabled
        30.638861 s:  VX_ZONE_ERROR:Enabled
        30.638874 s:  VX_ZONE_WARNING:Enabled
        30.639072 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-0 
        30.639142 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-1 
        30.639200 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-2 
        30.639254 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-3 
        30.639278 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
        30.639317 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
        30.642649 s: ISS: Enumerating sensors ... !!!
        36.718704 s: ISS: Enumerating sensors ... found 0 : ISX016-UB913A_Q1
        36.718797 s: ISS: Enumerating sensors ... found 1 : IMX390-UB953_D3
        36.718814 s: ISS: Enumerating sensors ... found 2 : IMX390-UB953-DISCOVERY-NARROW
        36.718832 s: ISS: Enumerating sensors ... found 3 : IMX390-UB953-DISCOVERY-MID
        36.718850 s: ISS: Enumerating sensors ... found 4 : IMX390-UB953-DISCOVERY-WIDE
        36.718867 s: ISS: Enumerating sensors ... found 5 : AR0233-UB953_MARS
        36.718883 s: ISS: Enumerating sensors ... found 6 : AR0820-UB953_LI
        36.718899 s: ISS: Enumerating sensors ... found 7 : UB9xxx_RAW12_TESTPATTERN
        36.718915 s: ISS: Enumerating sensors ... found 8 : UB96x_UYVY_TESTPATTERN
        36.718932 s: ISS: Enumerating sensors ... found 9 : GW_AR0233_UYVY
    10 sensor(s) found 
    Supported sensor list: 
    a : ISX016-UB913A_Q1 
    b : IMX390-UB953_D3 
    c : IMX390-UB953-DISCOVERY-NARROW 
    d : IMX390-UB953-DISCOVERY-MID 
    e : IMX390-UB953-DISCOVERY-WIDE 
    f : AR0233-UB953_MARS 
    g : AR0820-UB953_LI 
    h : UB9xxx_RAW12_TESTPATTERN 
    i : UB96x_UYVY_TESTPATTERN 
    j : GW_AR0233_UYVY 
    Select a sensor above or press '0' to autodetect the sensor 
    [MCU2_0]     36.718546 s: Error writing 0x2 to UB960 register 0x1 
    [MCU2_0]     36.718586 s:  UB960 Error: Reg Write Failed for regAddr 1, cnt = 0
    [MCU2_0]     36.718621 s: Error :  returned -1 while configuring DES 1 
    a
    Sensor selected : ISX016-UB913A_Q1
    Querying ISX016-UB913A_Q1 
        39.336003 s: ISS: Querying sensor [ISX016-UB913A_Q1] ... !!!
        39.336101 s: ISS: Querying sensor [ISX016-UB913A_Q1] ... Done !!!
    LDC Selection Yes(1)/No(0)
    Invalid selection 
    . Try again 
    LDC Selection Yes(1)/No(0)
    0
    Max number of cameras supported by sensor ISX016-UB913A_Q1 = 4 
    Please enter number of cameras to be enabled 
    1
        43.050946 s: ISS: Initializing sensor [ISX016-UB913A_Q1], doing IM_SENSOR_CMD_PWRON ... !!!
        43.051156 s: ISS: Initializing sensor [ISX016-UB913A_Q1], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0]     43.051091 s: ISX016_PowerOn : chId = 0x0 
    [MCU2_0]     43.307365 s: Error writing 0x1 to UB960 register 0x4c 
    [MCU2_0]     43.307401 s:  UB960 Error: Reg Write Failed for regAddr 4c, cnt = 0
    [MCU2_0]     43.732372 s:  Configuring ISX016 imager 0x40.. Please wait till it finishes 
        43.832265 s: ISS: Initializing sensor [ISX016-UB913A_Q1] ... Done !!!
    Scaler output1 width   = 512
    Scaler output1 height  = 320
    Scaler output2 width   = 512
    Scaler output2 height  = 320
    [UPDATE CEN POST PROC-MODULE] Exit! 
    [CEN POST PROC-MODULE-INIT] Exit! 
    Create LDC node, 5fcade5490, 3d2ea30ff8
    [LDC-MODULE-CREATE] Exit! 
        43.971935 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:34] size is 0
        43.971981 s:  VX_ZONE_ERROR:[ownAllocReferenceBufferGeneric:349] Memory allocation failed
        43.972003 s:  VX_ZONE_ERROR:[ownGraphAllocateDataObject:1003] Memory allocation for data reference failed
        43.972027 s:  VX_ZONE_ERROR:[vxVerifyGraph:2104] Memory alloc for data objects failed
        43.972046 s:  VX_ZONE_ERROR:[vxVerifyGraph:2213] Graph verify failed
        44.072696 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... !!!
        44.072865 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... Done !!!
        44.490002 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
        44.497665 s:  VX_ZONE_INIT:[tivxDeInitLocal:204] De-Initialization Done !!!
    APP: Deinit ... !!!
        44.497744 s: REMOTE_SERVICE: Deinit ... !!!
        44.497807 s: REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    IPC: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    

    Thanks and Regards,

    Vyom Mishra

  • Hi Vyom,

    May I know how much in the DDR_SHARED_MEM provided in your case?

    Regards,

    Nikhil

  • Dear Sir,

    I found this in PSDK generated 

    j721s2/ti-processor-sdk-rtos-j721s2-evm-09_02_00_05/vision_apps/platform/j721s2/rtos/system_memory_map.html

    DDR_SHARED_MEM 0xC0000000 0xDFFFFFFF 512.00 MB Memory for shared memory buffers in DDR

    From file "app_mem_map.h"

    /* Memory for shared memory buffers in DDR [ size 512.00 MB ] */
    #define DDR_SHARED_MEM_ADDR (0xC0000000u)
    #define DDR_SHARED_MEM_SIZE (0x20000000u)


    Thanks and Regards,

    Vyom Mishra

  • Hi,

    It seems that one of the object descripter is of size 0 as per this log 

    VX_ZONE_ERROR:[tivxMemBufferAlloc:34] size is 0

    Could you please identify which node is this? 

    The allocations are happening in vxVerifyGraph(), so you can put additional logs in this call stack and check which node and which data object is causing this issue.

    Regards,

    Nikhil

  • Dear Sir,

    It is happening in the post-proc custom node only.

      I am in VX_TYPE_ARRAY
    ownAllocReferenceBufferGeneric :: The size of mem_size 93996
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 46592
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 23296
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 23296
     I am in VX_TYPE_USER_DATA_OBJECT
    ownAllocReferenceBufferGeneric :: The size of mem_size 233808
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 0
    I am entering the tivxMemBufferAlloc for allocating the memory
         61.375417 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:34] size is 0
        61.375434 s:  VX_ZONE_ERROR:[ownAllocReferenceBufferGeneric:351] Memory allocation failed
        61.511356 s:  VX_ZONE_ERROR:[ownGraphAllocateDataObject:1003] Memory allocation for data reference failed
        61.511380 s:  VX_ZONE_ERROR:[vxVerifyGraph:2104] Memory alloc for data objects failed
        61.511400 s:  VX_ZONE_ERROR:[vxVerifyGraph:2213] Graph verify failed
        61.611783 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... !!!
        61.611949 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... Done !!!

    But I am not able to understand, what could be the possible reason for getting mem_size 0.

    Can you please let me know the possible reason for this? As this is the custom kernel already running on PSDK 7(TDA4VM)

    Thanks and Regards,

    Vyom Mishra

  • Hi Vyom,

    Could you please check what is the tensor and how it is created for post proc kernel?

    Regards,

    Nikhil

  • Dear Sir

    I ran the empty kernel, the issue is same.

    Please find the paramters:

    kernel.setParameter(Type.ARRAY, Direction.INPUT, ParamState.REQUIRED, "config")
    kernel.setParameter(Type.TENSOR, Direction.INPUT, ParamState.REQUIRED, "tensor0")
    kernel.setParameter(Type.TENSOR, Direction.INPUT, ParamState.REQUIRED, "tensor1")
    kernel.setParameter(Type.TENSOR, Direction.INPUT, ParamState.REQUIRED, "tensor2")
    kernel.setParameter(Type.USER_DATA_OBJECT, Direction.INPUT, ParamState.REQUIRED, "scale")
    kernel.setParameter(Type.TENSOR, Direction.OUTPUT, ParamState.REQUIRED, "output")

    kernel.setTarget(Target.DSP_C7_1)

    Note: I have tested this kernel on MPU(A72), it throw the same issue

    Note: Sir, how can I print the node/module name in verify graph?

    Thanks and Regards,

    Vyom Mishra

  • Hi Vyom,

    Note: Sir, how can I print the node/module name in verify graph?

    While creating a node, you could give a reference name for that node. You can see the vision_apps demos for the same.

    Inside vxVerifyGraph(), you have access to the graph object, which contains node object descriptors. In this node object descriptor, you can find the reference name you have set at the beginning.

    Regards,

    Nikhil

  • Dear Sir,

    Thanks for the response!

    It is quite clear that the post-processing node is creating issue.

    Please find the logs:

         42.281758 s:  VX_ZONE_ERROR:[ownGraphAllocateDataObjects:1028]I am in node PostProcNode
     I am in VX_TYPE_ARRAY
    ownAllocReferenceBufferGeneric :: The size of mem_size 93996
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 46592
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 23296
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 23296
     I am in VX_TYPE_USER_DATA_OBJECT
    ownAllocReferenceBufferGeneric :: The size of mem_size 233808
     I am in VX_TYPE_TENSOR
    ownAllocReferenceBufferGeneric :: The size of mem_size 0    <-- This is zero
    I am entering the tivxMemBufferAlloc for allocating the memory
         42.281922 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:34] size is 0
        42.281939 s:  VX_ZONE_ERROR:[ownAllocReferenceBufferGeneric:351] Memory allocation failed
        42.417136 s:  VX_ZONE_ERROR:[ownGraphAllocateDataObject:979] Memory allocation for replicated parameter parent object failed
        42.417160 s:  VX_ZONE_ERROR:[vxVerifyGraph:2115] Memory alloc for data objects failed
        42.417179 s:  VX_ZONE_ERROR:[vxVerifyGraph:2224] Graph verify failed
        42.517534 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... !!!
        42.517703 s: ISS: De-initializing sensor [ISX016-UB913A_Q1] ... Done !!!

    The output node i.e., VX_TYPE_TENSOR is causing the issue.

    Query: Output Tensor declaration is below

    vx_tensor keypoints_tensor = vxCreateTensor(context, 2, temp_size, VX_TYPE_FLOAT32, 0);

    Could you please confirm if 

    kernel.setParameter(Type.TENSOR, Direction.OUTPUT, ParamState.REQUIRED, "output")

    Is this correct for the requirement for data type FLOAT32?

    Because I have tried this but it dint work too

    kernel.setParameter(Type.TENSOR, Direction.OUTPUT, ParamState.REQUIRED, "output",['VX_TYPE_FLOAT32'])

    Thanks and Regards,

    Vyom Mishra

  • May I know what is temp_size here?

    Regards,

    Nikhil

  • Dear Sir,

    Temp size here is is two dimensional , no. of maximum detection and size of output structure.

    I gave the values manually and it works.

    Thanks and Regards,

    Vyom Mishra