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.

DisplayHndl is null while creation of DisplayLink

Other Parts Discussed in Thread: DM385

Hi All,

I was working on customized DM385 som with IPNC RDK 3.5 version.

My usecase is like

Camera -> deiId -> dupId -> display

From dupId.numOutQUe is 2. one output i was using to displayLink and another one I was using to encLink.


In my usecase, when I am trying to create the displayLink, I was getting as assertion issue as the below logs

logs

================================================================================

 [m3vpss ]  10240: DISPLAY: Create in progress !!!
 [m3video]  10226: ENCODE: All CH Create ... DONE !!!
 [m3vpss ] DisplayId = 1,DataFormat = 7
 [m3vpss ] SC2 displayInstId = 6
 [m3vpss ] KOLANCHI : DisplayLink_drvDisplayCreate 1027, displayHndl is null
 [m3video] ENCLINK:HEAPID:0     USED:26040
 [m3vpss ]  10242: Assertion @ Line: 1029 in links_m3vpss/display/displayLink_drv.c: pObj->displayHndl != NULL : failed !!!
 [m3video]  10229: ENCODE: Create ... DONE !!!
 [m3video]  10230: IPC_BITS_OUT   : Create in progress !!!
 [m3video]  10233: IPC_BITS_OUT   : Create Done !!!

================================================================================

I have attached the complete log.

can you figure it out my mistake.  Any advise will be highly appreciated!

Regards,

Kolanchi.

8446.display_case.txt

  • Hi All,

    displayLink returning a null in below file.

    displayLink_drv.c

    --------------------------------------------------------------------------------------------------------------------------------

        pObj->displayHndl = FVID2_create(FVID2_VPS_DISP_DRV,
                                         pObj->displayInstId,
                                         &pObj->displayCreateArgs,
                                         &pObj->displayCreateStatus, &cbParams);
            if(pObj->displayHndl != NULL)
            {
                    Vps_printf("KOLANCHI : %s %d, displayHndl is not null\n",__func__,__LINE__);
            }
            else
            {
                    Vps_printf("KOLANCHI : %s %d, displayHndl is null\n",__func__,__LINE__);
            }


        UTILS_assert(pObj->displayHndl != NULL);


        pObj->maxQueueCount = pObj->displayCreateStatus.maxReqInQueue;

    --------------------------------------------------------------------------------------------------------------------------

    my display link creation is below

    UInt32 gDisplayId;

     DisplayLink_CreateParams displayPrm;

    gDisplayId        = SYSTEM_LINK_ID_DISPLAY_0;

     dupPrm[MJPEG_DUP_LINK_IDX].numOutQue = 2;

     dupPrm[MJPEG_DUP_LINK_IDX].outQueParams[0].nextLink = gDisplayId;                                    

    dupPrm[MJPEG_DUP_LINK_IDX].outQueParams[1].nextLink =  mergeId[CAM_STREAM_MERGE_IDX];
    dupPrm[MJPEG_DUP_LINK_IDX].notifyNextLink = TRUE ;

     MULTICH_INIT_STRUCT(DisplayLink_CreateParams,displayPrm);
    displayPrm.inQueParams[0].prevLinkId = dupId[MJPEG_DUP_LINK_IDX];
    displayPrm.inQueParams[0].prevLinkQueId = 0;                       
    displayPrm.displayRes = gVdisModuleContext.vdisConfig.deviceParams[VDIS_DEV_HDMI].resolution;
    displayPrm.displayId  = DISPLAY_LINK_DISPLAY_SC2;

    /* display link */

    System_linkCreate(gDisplayId, &displayPrm,sizeof(displayPrm));

    FVID2_create is return value is null, so it throwing as assertion. I couldn't find out the problem. can you any one point to where was the problem.

    Regards,

    Kolanchi.

  • hi,i meet the same problem on 8127,have you finished the probelm?looking forward to your reply,thanks
  • Hello,

    Were either of you able to find the solution to this problem? I am having the same issue.

    I found that my issue occurs when I change the resolution on on the LCD (DVO2) from anything other than 320x240 on my nsketch Car Black Box RDK I get the following error:

    077: Assertion @ Line: 1152 in links_m3vpss/display/displayLink_drv.c: pObj->displayHndl != NULL : failed !!!

    I am trying to add a higher resolution LCD so I changed the timing parameters in the system_dctrl_modeInfo.c file as follows:

    //Below were the original settings
    System_CustomModeInfo systemCustomModeInfo[] = {
        {VSYS_STD_SVGA_60, 800, 600, FVID2_SF_PROGRESSIVE,
            40000, 60, 40, 88, 128, 1, 23, 4},
        {FVID2_STD_CUSTOM, 320, 240, FVID2_SF_PROGRESSIVE,
            6500, 60, 20, 38, 30, 4, 15, 3}      
    };

    //When I change the resolution to anything other than  320 x 240 as an example 321x240:

    //Below were the original settings
    System_CustomModeInfo systemCustomModeInfo[] = {
        {VSYS_STD_SVGA_60, 800, 600, FVID2_SF_PROGRESSIVE,
            40000, 60, 40, 88, 128, 1, 23, 4},
        {FVID2_STD_CUSTOM, 321, 240, FVID2_SF_PROGRESSIVE,
            6500, 60, 20, 38, 30, 4, 15, 3}      
    };

    This produces the error listed above.

    Can anyone assist with this error?

    077: Assertion @ Line: 1152 in links_m3vpss/display/displayLink_drv.c: pObj->displayHndl != NULL : failed !!!

    Thanks Mark

  • Here is the log:
    [m3vpss ] ENCLINK:HEAPID:0 USED:14056
    [m3vpss ] 1756: ENCODE: Create ... DONE !!!
    [m3vpss ] 1757: IPC_BITS_OUT : Create in progress !!!
    [m3vpss ] 1760: IPC_BITS_OUT : Create Done !!!
    [m3vpss ] 1822: IPC_BITS_IN : Create in progress !!!
    [m3vpss ] 1822: SYSTEM: Opening ListMP [HOST_IPC_OUT_29] ...
    [m3vpss ] 1823: SYSTEM: Opening ListMP [HOST_IPC_IN_29] ...
    [m3vpss ] 1824: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
    [m3vpss ] 1826: IPC_BITS_IN : Create Done !!!
    [m3vpss ] 1827: DECODE: Create in progress ... !!!
    [m3vpss ] 1965: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED ],target bitrate

    = 8000 Kbps ...
    [m3vpss ] DECLINK_H264:HEAPID:0 USED:2368
    [m3vpss ] 2003: DECODE: All CH Create ... DONE !!!
    [m3vpss ] DECLINK:HEAPID:0 USED:2408
    [m3vpss ] 2004: DECODE: Create ... DONE !!!
    [m3vpss ] 2005: MERGE : Create Done !!!
    [m3vpss ] 2006: SWMS: Create in progress !!!
    [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 37 (37)
    [m3vpss ] SWMS: instance 0, sc id 5, start win 0 end win 15
    [m3vpss ] 2048: SWMS : Loading Up-scaling Co-effs ...
    [m3vpss ] 2048: SWMS : Co-effs Loading ... DONE !!!
    [m3vpss ] 2048: SWMS : ******* Configuring clock 30 secs...
    [m3vpss ]
    [m3vpss ] *** [SWMS1] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ] Output FPS: 30
    [m3vpss ]
    [m3vpss ] Win | Ch | Input | Input | Input | Input | Output |

    Output | Output | Output | Low Cost | SWMS | Data |
    [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y |

    Width x Height | Pitch Y / C | Memory Type | ON / OFF | Inst | Format|
    [m3vpss ]

    -------------------------------------------------------------------------------------------------

    -------------------------------------------------------------
    [m3vpss ] 0 | 0 | 0, 0 | 720 x 480 | 720 / 720 | NON-TILED | 0, 0 |

    720 x 480 | 1472 / 0 | NON-TILED | OFF | 0 | 420SP |
    [m3vpss ]
    [m3vpss ] 2052: SWMS: Create Done !!!
    [m3vpss ] 2059: DUP : Create Done !!!
    [m3vpss ] 2060: SELECT: OUT QUE0: OUT CH0: IN CH0: 720 x 480, pitch = (1472, 0) [PROGRESSIVE]

    [NON-TILED ]
    [m3vpss ] 2061: SELECT: OUT QUE1: OUT CH0: IN CH0: 720 x 480, pitch = (1472, 0) [PROGRESSIVE]

    [NON-TILED ]
    [m3vpss ] 2062: SELECT : Create Done !!!
    [m3vpss ] 2062: SELECT: OUT QUE0: OUT CH0: IN CH0: 720 x 480, pitch = (1472, 0) [PROGRESSIVE]

    [NON-TILED ]
    [m3vpss ] 2063: NULL : Create Done !!!
    [m3vpss ] 2064: DISPLAY: Create in progress !!!
    [m3vpss ] DisplayId = 3,DataFormat = 1
    [m3vpss ] BP1 displayInstId = 1
    [m3vpss ] 2065: DISPLAY: Create Done !!!
    [m3vpss ] 2066: SCLR: Create in progress !!!
    [m3vpss ] SCLR:!!WARNING.FORCIBLY DISABLING TILER since tiler is disabled at build time
    [m3vpss ] 2073: SCLR : Loading Up-scaling Co-effs ...
    [m3vpss ] 2073: SCLR : Co-effs Loading ... DONE !!!
    [m3vpss ] SCLR:HEAPID:0 USED:64
    [m3vpss ] SCLR:HEAPID:1 USED:5952
    [m3vpss ] 2074: SCLR: Create Done !!!
    [m3vpss ] 2075: DISPLAY: Create in progress !!!
    [m3vpss ] DisplayId = 1,DataFormat = 7
    [m3vpss ] SC2 displayInstId = 6
    [m3vpss ] 2077: Assertion @ Line: 1152 in links_m3vpss/display/displayLink_drv.c: pObj-

    >displayHndl != NULL : failed !!!