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.
codec engine调试:
begin to test local video.
in function localvideotest---------
now before function alg_scalecreate..
in alg_scalecreate function beginning wyl.
alg_scalecreate function beginning -2.
wyl now ready for scale_create function *******************
@4,623,837us: [+0 T:0x00004000 S:0xbefff744] ti.sdo.extensions.scale.SCALE - SCALE_create> Enter (engine=0x113518, name='scale', params=0x1138c4)
@4,623,956us: [+0 T:0x00004000 S:0xbefff714] CV - VISA_create(0x113518, 'scale', 0x1138c4, 0x808, 'ti.sdo.extensions.scale.ISCALE')
@4,624,046us: [+0 T:0x00004000 S:0xbefff63c] CV - VISA_create2(0x113518, 'scale', 0x1138c4, 0x8, 0x808, 'ti.sdo.extensions.scale.ISCALE')
@4,624,141us: [+0 T:0x00004000 S:0xbefff624] OM - Memory_alloc> Enter(0x30)
@4,624,226us: [+0 T:0x00004000 S:0xbefff624] OM - Memory_alloc> return (0x113c00)
@4,624,302us: [+0 T:0x00004000 S:0xbefff5cc] CE - Engine_createNode(0x113518, 'scale', 808, 0x1138c4, 0x8, 0xbefff740)
@4,624,387us: [+0 T:0x00004000 S:0xbefff5b4] OM - Memory_alloc> Enter(0x20)
@4,624,467us: [+0 T:0x00004000 S:0xbefff5b4] OM - Memory_alloc> return (0x113c38)
@4,624,556us: [+0 T:0x00004000 S:0xbefff5a4] OC - Comm_create> Enter(queueName='gppfromnode_1', queue=0x113c40, attrs=0x0)
@4,624,638us: [+0 T:0x00004000 S:0xbefff58c] OM - Memory_alloc> Enter(0x4)
@4,624,718us: [+0 T:0x00004000 S:0xbefff58c] OM - Memory_alloc> return (0x113c60)
@4,624,984us: [+0 T:0x00004000 S:0xbefff5a4] OC - Comm_create> return (0x113c60)
@4,625,103us: [+0 T:0x00004000 S:0xbefff5ac] OC - Comm_put> Enter(queue=0x0, msg=0x4018f880)
@4,625,225us: [+0 T:0x00004000 S:0xbefff5ac] OC - Comm_put> return (0)
@4,625,313us: [+0 T:0x00004000 S:0xbefff5a4] OC - Comm_get> Enter(queue=0x10000, msg=0xbefff624, timeout=-1)
@4,718,036us: [+0 T:0x00004000 S:0xbefff5a4] OC - Comm_get> MSGQ_Get() status=0x8000, return (0)
@4,718,184us: [+0 T:0x00004000 S:0xbefff5ac] OC - Comm_put> Enter(queue=0x0, msg=0x4018f880)
@4,718,305us: [+0 T:0x00004000 S:0xbefff5ac] OC - Comm_put> return (0)
@4,718,436us: [+0 T:0x00004000 S:0xbefff5a4] OC - Comm_get> Enter(queue=0x10000, msg=0xbefff624, timeout=-1)
@4,718,538us: [+0 T:0x00004000 S:0xbefff5a4] OC - Comm_get> MSGQ_Get() status=0x8000, return (0)
@4,718,621us: [+4 T:0x00004000 S:0xbefff5cc] CE - Engine_createNode> created node(stdIn=0x2, stdOut=0x10001, msgq=0x113c60, algName='scale', rmsNode=0x8fc77d40, algHandle=0x8fc77e20)
@4,718,722us: [+0 T:0x00004000 S:0xbefff52c] OC - Comm_put> Enter(queue=0x0, msg=0x4018f880)
@4,718,829us: [+0 T:0x00004000 S:0xbefff52c] OC - Comm_put> return (0)
@4,718,952us: [+0 T:0x00004000 S:0xbefff524] OC - Comm_get> Enter(queue=0x10000, msg=0xbefff5b8, timeout=-1)
@4,719,057us: [+0 T:0x00004000 S:0xbefff524] OC - Comm_get> MSGQ_Get() status=0x8000, return (0)
[DSP] @13,485,290tk: [+0 T:0x8ba0006c S:0x8ba04024] CR - processRmsCmd(0x8fe038a8, 4056): cmd = 0
[DSP] @13,485,370tk: [+0 T:0x8ba0006c S:0x8ba03f14] OM - Memory_alloc> Enter(size=0x18)
[DSP] @13,485,430tk: [+0 T:0x8ba0006c S:0x8ba03f14] OM - Memory_alloc> return (0x8fc77d40)
[DSP] @13,485,492tk: [+0 T:0x8ba0006c S:0x8ba03f14] OM - Memory_alloc> Enter(size=0x8)
[DSP] @13,485,548tk: [+0 T:0x8ba0006c S:0x8ba03f14] OM - Memory_alloc> return (0x8fc77d58)
[DSP] @13,485,614tk: [+0 T:0x8ba0006c S:0x8ba03edc] OM - Memory_alloc> Enter(size=0x20)
[DSP] @13,485,671tk: [+0 T:0x8ba0006c S:0x8ba03edc] OM - Memory_alloc> return (0x8fc77d60)
[DSP] @13,485,732tk: [+0 T:0x8ba0006c S:0x8ba03eac] OM - Memory_alloc> Enter(size=0x24)
[DSP] @13,485,789tk: [+0 T:0x8ba0006c S:0x8ba03eac] OM - Memory_alloc> return (0x8fc77d80)
[DSP] @13,485,879tk: [+0 T:0x8ba0006c S:0x8ba03ebc] ti.sdo.extensions.scale.SCALE - now ready *** in scale_create function--
[DSP] @13,485,952tk: [+0 T:0x8ba0006c S:0x8ba03ebc] ti.sdo.extensions.scale.SCALE - wyl -----100000000000000000
[DSP] @13,486,019tk: [+0 T:0x8ba0006c S:0x8ba03ebc] ti.sdo.extensions.scale.SCALE - SCALE_create> Enter (engine=0x0, name='scale', params=0x8fe038c0)
[DSP] @13,486,107tk: [+0 T:0x8ba0006c S:0x8ba03ebc] ti.sdo.extensions.scale.SCALE - wyl now below ---------
[DSP] @13,486,182tk: [+0 T:0x8ba0006c S:0x8ba03e84] CV - VISA_create(0x0, 'scale', 0x8fe038c0, 0x808, 'ti.sdo.extensions.scale.ISCALE')
[DSP] @13,486,298tk: [+0 T:0x8ba0006c S:0x8ba03d74] CV - VISA_create2(0x0, 'scale', 0x8fe038c0, 0x8, 0x808, 'ti.sdo.extensions.scale.ISCALE')
[DSP] @13,486,399tk: [+0 T:0x8ba0006c S:0x8ba03d0c] CE - Engine_open> Enter('local', 0x8ba03d64, 0x328)
[DSP] @13,486,471tk: [+0 T:0x8ba0006c S:0x8ba03cec] OM - Memory_alloc> Enter(size=0x2c)
[DSP] @13,486,531tk: [+0 T:0x8ba0006c S:0x8ba03cec] OM - Memory_alloc> return (0x8fc77df0)
[DSP] @13,486,602tk: [+0 T:0x8ba0006c S:0x8ba03d0c] CE - Engine_open> return(-1882751504)
[DSP] @13,486,683tk: [+0 T:0x8ba0006c S:0x8ba03d54] OM - Memory_alloc> Enter(size=0x30)
[DSP] @13,486,741tk: [+0 T:0x8ba0006c S:0x8ba03d54] OM - Memory_alloc> return (0x8fc77e20)
[DSP] @13,486,804tk: [+0 T:0x8ba0006c S:0x8ba03d2c] ti.sdo.ce.alg.Algorithm - Algorithm_create> Enter(fxns=0x8fbff13c, idma3Fxns=0x0, params=0x8fe038c0, attrs=0x8ba03e78)
[DSP] @13,486,913tk: [+0 T:0x8ba0006c S:0x8ba03d0c] OM - Memory_alloc> Enter(size=0x10)
[DSP] @13,486,970tk: [+0 T:0x8ba0006c S:0x8ba03d0c] OM - Memory_alloc> return (0x8fc77e50)
[DSP] @13,487,126tk: [+4 T:0x8ba0006c S:0x8ba039ac] dspdemo - now in SCALE_TI_initObj wangyanlong
[DSP] @13,487,189tk: [+4 T:0x8ba0006c S:0x8ba039ac] dspdemo - SCALE_TI_initObj params->initialScaleFactor = 0
[DSP] @13,487,264tk: [+4 T:0x8ba0006c S:0x8ba039ac] dspdemo - now in SCALE_TI_initObj params
[DSP] @13,843,352tk: [+0 T:0x8ba0006c S:0x8ba03d2c] ti.sdo.ce.alg.Algorithm - Algorithm_create> return (0x8fc77e50)
[DSP] @13,843,445tk: [+0 T:0x8ba0006c S:0x8ba03ebc] ti.sdo.extensions.scale.SCALE - wyl -----3
[DSP] @13,843,505tk: [+0 T:0x8ba0006c S:0x8ba03ebc] ti.sdo.extensions.scale.SCALE - SCALE_create> return (0x8fc77e20)
[DSP] @13,843,598tk: [+4 T:0x8ba0006c S:0x8ba03e84] OT - Thread_create > name: "scale#0", pri: -1, stack size: 10024, stack seg: 0
[DSP] @13,845,260tk: [+0 T:0x8ba0006c S:0x8ba04024] CR - processRmsCmd(0x8fe038a8, 4056): cmd = 1
[DSP] @13,847,265tk: [+0 T:0x8ba0006c S:0x8ba04024] CR - processRmsCmd(0x8fe038a8, 4056): cmd = 5
[DSP] @13,847,333tk: [+0 T:0x8ba0006c S:0x8ba04024] CR - remote time = 0x0, trace buffer size = 4032
@4,727,668us: [+0 T:0x00004000 S:0xbefff55c] CE - Engine_fwriteTrace> returning count [3551]
@4,727,766us: [+2 T:0x00004000 S:0xbefff5cc] CE - Engine_createNode> Returning 0x113c38
@4,727,849us: [+0 T:0x00004000 S:0xbefff624] OM - Memory_alloc> Enter(0x4)
@4,727,935us: [+0 T:0x00004000 S:0xbefff624] OM - Memory_alloc> return (0x113c70)
@4,728,014us: [+0 T:0x00004000 S:0xbefff61c] OC - Comm_alloc> Enter(poolId=0x0, msg=0x113c70, size=808)
@4,728,119us: [+0 T:0x00004000 S:0xbefff61c] OC - Comm_alloc> msg=0x40190880, returning (0)
@4,728,213us: [+5 T:0x00004000 S:0xbefff63c] CV - VISA_create> remote codec created (name='scale', localQueueID=0x10001, remoteQueueID=0x0002)
@4,728,300us: [+0 T:0x00004000 S:0xbefff744] ti.sdo.extensions.scale.SCALE - SCALE_create> return (0x113c00)
-----------------------------------
@4,728,393us: [+0 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> Enter(size=1024, align=-1, cached=FALSE, heap=FALSE)
@4,728,526us: [+4 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> CMEM_alloc(1024) = 0x4001d000.
@4,728,622us: [+4 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> CMEM_getPhys(0x4001d000) = 0x8b9ff000.
@4,728,701us: [+1 T:0x00004000 S:0xbefff6bc] OM - Memory__addContigBuf> Enter(virtAddr=0x4001d000, size=1024, physAddr=0x8b9ff000)
@4,728,778us: [+1 T:0x00004000 S:0xbefff6bc] OM - Memory__addContigBuf> creating new contigBuf object
@4,728,843us: [+0 T:0x00004000 S:0xbefff6a4] OM - Memory_alloc> Enter(0x10)
@4,728,921us: [+0 T:0x00004000 S:0xbefff6a4] OM - Memory_alloc> return (0x113c80)
@4,728,992us: [+1 T:0x00004000 S:0xbefff6bc] OM - Memory__addContigBuf> returning: cb->phys=0x8b9ff000, cb->size=1024, cb->virt=0x4001d000
@4,729,065us: [+0 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> return (0x4001d000)
@4,729,136us: [+0 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> Enter(size=1024, align=-1, cached=FALSE, heap=FALSE)
@4,729,264us: [+4 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> CMEM_alloc(1024) = 0x401ff000.
@4,729,383us: [+4 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> CMEM_getPhys(0x401ff000) = 0x8b9fe000.
@4,729,466us: [+1 T:0x00004000 S:0xbefff6bc] OM - Memory__addContigBuf> Enter(virtAddr=0x401ff000, size=1024, physAddr=0x8b9fe000)
@4,729,644us: [+1 T:0x00004000 S:0xbefff6bc] OM - Memory__addContigBuf> creating new contigBuf object
@4,729,736us: [+0 T:0x00004000 S:0xbefff6a4] OM - Memory_alloc> Enter(0x10)
@4,729,822us: [+0 T:0x00004000 S:0xbefff6a4] OM - Memory_alloc> return (0x113c98)
@4,729,896us: [+1 T:0x00004000 S:0xbefff6bc] OM - Memory__addContigBuf> returning: cb->phys=0x8b9fe000, cb->size=1024, cb->virt=0x401ff000
@4,729,971us: [+0 T:0x00004000 S:0xbefff714] OM - Memory_contigAlloc> return (0x401ff000)
-+++++++++++++++- pObj ?= NULL jie
@4,731,443us: [+0 T:0x00004000 S:0xbefff67c] OG - Global_exit> enter
@4,731,541us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x20348()...
@4,731,654us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x27830()...
@4,731,745us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x28ce0()...
@4,731,835us: [+0 T:0x00004000 S:0xbefff644] OM - Memory_free> Enter(0x113458, 0x18)
@4,731,920us: [+0 T:0x00004000 S:0xbefff644] OM - Memory_free> return (0x1)
@4,731,991us: [+0 T:0x00004000 S:0xbefff644] OM - Memory_free> Enter(0x113478, 0x18)
@4,732,064us: [+0 T:0x00004000 S:0xbefff644] OM - Memory_free> return (0x1)
@4,732,156us: [+0 T:0x00004000 S:0xbefff644] OM - Memory_free> Enter(0x113498, 0x18)
@4,732,233us: [+0 T:0x00004000 S:0xbefff644] OM - Memory_free> return (0x1)
@4,732,306us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x30f28()...
@4,732,378us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x2b95c()...
@4,732,453us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x2bebc()...
@4,733,075us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x2ea68()...
@4,733,170us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x2c974()...
@4,733,243us: [+0 T:0x00004000 S:0xbefff644] OP - doCmd> Enter (cmdId=3, proc=0x0)
@4,733,315us: [+0 T:0x00004000 S:0xbefff634] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x111208]
@4,733,401us: [+0 T:0x00004000 S:0xbefff644] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x111208]
@4,733,477us: [+0 T:0x00004000 S:0xbefff624] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x111220] timeout[0xffffffff]
@4,733,669us: [+0 T:0x00004002 S:0xbe7ffa54] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x111208] status[0]
@4,733,775us: [+0 T:0x00004002 S:0xbe7ffa74] OP - getCmd_d> Exit (result=3)
@4,733,853us: [+0 T:0x00004002 S:0xbe7ffa64] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x111220]
@4,733,947us: [+0 T:0x00004002 S:0xbe7ffa74] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x111220]
@4,734,229us: [+0 T:0x00004000 S:0xbefff624] ti.sdo.ce.osal.Sem - Leaving Sem_pend> sem[0x111220] status[0]
@4,734,336us: [+0 T:0x00004000 S:0xbefff644] OP - doCmd> Exit (result=1)
@4,734,409us: [+0 T:0x00004000 S:0xbefff64c] OT - Thread_delete> Enter (task=0x111258)
@4,734,508us: [+4 T:0x00004000 S:0xbefff64c] OT - Thread_delete> pthread_cancel (0x3)
@4,734,610us: [+4 T:0x00004000 S:0xbefff64c] OT - Thread_delete> pthread_join (0x0)
@4,734,690us: [+0 T:0x00004000 S:0xbefff624] OM - Memory_free> Enter(0x111258, 0x64)
@4,734,771us: [+0 T:0x00004000 S:0xbefff624] OM - Memory_free> return (0x1)
@4,734,845us: [+0 T:0x00004000 S:0xbefff664] OT - Thread_delete> Exit (task=0x111258)
@4,734,916us: [+0 T:0x00004000 S:0xbefff654] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x111208]
@4,735,025us: [+0 T:0x00004000 S:0xbefff62c] OM - Memory_free> Enter(0x111208, 0x14)
@4,735,107us: [+0 T:0x00004000 S:0xbefff62c] OM - Memory_free> return (0x1)
@4,735,177us: [+0 T:0x00004000 S:0xbefff664] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
@4,735,242us: [+0 T:0x00004000 S:0xbefff654] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0x111220]
@4,735,310us: [+0 T:0x00004000 S:0xbefff62c] OM - Memory_free> Enter(0x111220, 0x14)
@4,735,383us: [+0 T:0x00004000 S:0xbefff62c] OM - Memory_free> return (0x1)
@4,735,451us: [+0 T:0x00004000 S:0xbefff664] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
@4,735,515us: [+0 T:0x00004000 S:0xbefff63c] OM - Memory_free> Enter(0x111238, 0x18)
@4,735,587us: [+0 T:0x00004000 S:0xbefff63c] OM - Memory_free> return (0x1)
@4,735,659us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x30dc4()...
@4,739,798us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x2dc74()...
@4,739,903us: [+0 T:0x00004000 S:0xbefff654] OM - Memory_free> Enter(0x111188, 0x18)
@4,739,986us: [+0 T:0x00004000 S:0xbefff654] OM - Memory_free> return (0x1)
@4,740,060us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x30028()...
@4,740,132us: [+0 T:0x00004000 S:0xbefff63c] OM - Memory_free> Enter(0x111138, 0x18)
@4,740,205us: [+0 T:0x00004000 S:0xbefff63c] OM - Memory_free> return (0x1)
@4,740,279us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x31740()...
@4,740,352us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x322a8()...
@4,740,422us: [+2 T:0x00004000 S:0xbefff67c] OG - Global_exit> calling function *0x3114c()...
启动CE_DEBUG调试后,跑到上面就停止了,我现在不明白为什么直接create后,就开始exit了。我跟踪到 alg_create函数代码里面,没发现任何异常,但是调试发现在主函数中,根本就没有执行对alg_create函数返回值的判断,而是在函数内部直接跳到了exit,我不知道怎么考虑这个问题,没思路,谢谢大家点拨!
@4,731,443us: [+0 T:0x00004000 S:0xbefff67c] OG - Global_exit> enter ,具体见上面调试信息的红色部分。