• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM814x and AM387x Processors Forum » DM 8148 OMX Scalar component hungs when OMX_UseBuffer or OMX_AllocBuffer or OMX_TunnelBuffer is called
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Forums

DM 8148 OMX Scalar component hungs when OMX_UseBuffer or OMX_AllocBuffer or OMX_TunnelBuffer is called

This question is not answered
Pradeep Acharya
Posted by Pradeep Acharya
on May 17 2012 08:07 AM
Intellectual930 points

Hi,

I'm using DM 8148 evm and sdk version is dvsdk_5_03_01_15. I want the o/p of the omx decoder component to give i/p to the scalar component. I'm successful in getting the omx handle, configure the i/p and o/p ports and enabling them.

since the o/p buffers are allocated by the decoder, i used the OMX_UseBuffer macro to give i/p to the scalar component. The first call to OMX_USEbuffer itself hangs the component and the macro does not return. I tried by using OMX_AllocBuffer. with this macro also, the component hangs. Then i tried by using OMX_SetupTunnel macro i,,e

         /* Tunnel the o/p and i/p port of the components components */
            if(OMX_ErrorNone != (eOmxRetVal = OMX_SetupTunnel(pSrcCompInfo->pComponentHandle,
                                            pSrcCompInfo->sOmxOutPortDef.nPortIndex,
                                            pCompInfo->pComponentHandle,
                                            pCompInfo->sOmxInPortDef.nPortIndex)))
            {   
                LOG(LOG_ERR,"Failed to Tunnell the o/p and i/p ports of the components err: 0x%x",eOmxRetVal);
                return eOmxRetVal;
            }   

The OMX_SetupTunnel macro also does not return and gets hung.

Observation:

I'm able to allocate buffers for the o/p port of the scalar component where as allocation of buffers results in hung for i/p port.

Question:

The OMX_SetupTunnel macro , OMX_Alloc or OMX_Usebuffer  macros  should gracefully return with an error. why should it get hung ?? When i went through the logs , i came to know that is is hanging in between

Before calling RcmClient_exec

and

After calling RcmClient_exec

[1321019476-DEBG src/OpenMAX_Render.c:480] -Tunnelling the o/p: 1 and i/p port: 10 of the components
Entered: OMX_SetupTunnel (0x668800, 1, 0x66c838, 10)
Module<ti.omx> Entering<DomxTunnelMgr_mapTunnelComponentPeerHandles> @line<943>
Entered: DomxTunnelMgr_mapTunnelComponentPeerHandles (0x668800, 0x66c838, 0xbef0c0f8, 0xbef0c0f4)
Module<ti.omx> Entering<domxtmgr_get_component_connection_info> @line<470>
Module<ti.omx> Entering<domxtmgr_get_component_registry_index> @line<282>
Module<ti.omx> Leaving<domxtmgr_get_component_registry_index> @line<293> with error<0:ErrorNone>
Entered: omxproxy_get_config(0x668800, 2130706523, 0xbef0bfa0)
Leaving: omxproxy_get_config, retVal: 0
Module<ti.omx> Entering<domxtmgr_get_component_registry_index> @line<282>
Module<ti.omx> Leaving<domxtmgr_get_component_registry_index> @line<293> with error<0:ErrorNone>
Module<ti.omx> Leaving<domxtmgr_get_component_connection_info> @line<498> with error<0:ErrorNone>
eOutCompCoreId: 1

Module<ti.omx> Entering<domxtmgr_get_component_connection_info> @line<470>
Module<ti.omx> Entering<domxtmgr_get_component_registry_index> @line<282>
Module<ti.omx> Leaving<domxtmgr_get_component_registry_index> @line<293> with error<0:ErrorNone>
Entered: omxproxy_get_config(0x66c838, 2130706523, 0xbef0be8c)
Leaving: omxproxy_get_config, retVal: 0
Module<ti.omx> Entering<domxtmgr_get_component_registry_index> @line<282>
Module<ti.omx> Leaving<domxtmgr_get_component_registry_index> @line<293> with error<0:ErrorNone>
Module<ti.omx> Leaving<domxtmgr_get_component_connection_info> @line<498> with error<0:ErrorNone>
eInCompCoreId: 2

Module<ti.omx> Entering<domxtmgr_map_connection_handle> @line<705>
Entered: domxtmgr_map_connection_handle (0, 2, 0x66ccd8, 0xbef0c0f4, 0xbef0be4c)
Module<ti.omx> Entering<domxtmgr_get_connection_handle> @line<516>
Module<ti.omx> Leaving<domxtmgr_get_connection_handle> @line<529> with error<0:ErrorNone>
Module<ti.omx> Entering<domxtmgr_create_connection> @line<623>
Entered :domxtmgr_create_connection (0, 2, 0x66ccd8, 0xbef0be14, 0xbef0be4c)
Module<ti.omx> Entering<OmxRpc_stubCreateProxyLite> @line<1941>
Module<ti.omx> Entering<OmxRpc_rcmMsgAlloc> @line<113>
Module<ti.omx> @<OmxRpc_rcmMsgAlloc> @line<117> msg<Before RcmClient_alloc>
Module<ti.omx> @<OmxRpc_rcmMsgAlloc> @line<119> msg<After RcmClient_alloc>
Module<ti.omx> Leaving<OmxRpc_rcmMsgAlloc> @line<124> with error<0:ErrorNone>
Module<ti.omx> Entering<OmxRpc_msgMarshallCommonStub> @line<185>
Module<ti.omx> Leaving<OmxRpc_msgMarshallCommonStub> @line<191> with error<0:ErrorNone>
Module<ti.omx> Entering<OmxRpc_rcmExec> @line<141>
Rcm_Exec for fxnId: 0x7fd01002
Module<ti.omx> @<OmxRpc_rcmExec> @line<148> msg<Before calling RcmClient_exec>


I could not further debug as there are no debugging logs in between

Before calling RcmClient_exec and After calling RcmClient_exec....

How to debug the problem ???




Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Vimal Jain
    Posted by Vimal Jain
    on May 17 2012 21:37 PM
    Expert6535 points

    Pradeep,

    Have a look at decode-scale-display example. It does exactly same you are looking for.

    Regards

    Vimal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pradeep Acharya
    Posted by Pradeep Acharya
    on May 18 2012 01:43 AM
    Intellectual930 points

    i've looked at the example. It does not call OMX_Setuptunnel. it calls omx_usebuffer. There it succeeds and i double checked the parameters that i'm passing. I don't understand why it should hung. It should return error. how to enable more logs so that i can debug  into rcmClient

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vimal Jain
    Posted by Vimal Jain
    on Jun 04 2012 03:35 AM
    Expert6535 points

    Pradeep,

    SetupTunnel API is for proprietary mode tunneling in OMX. It is not supported in EZSDK, so It is not supposed to be used. please use APIs as given in examples.

    Regards

    Vimal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use