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.

An CMEM error in DM365

I did a little modification on the program. it seem to need more CMEM , so cause the CMEM error as below:

Creating ALG_vidDec (codec=0, width=704, height=576) for(704,480)
Creating ALG_vidDec (codec=0, width=704, height=576) for(352,240)
Creating ALG_vidDec (codec=0, width=704, height=576) for(704,576)
CMEMK Error: ioctl: failed to allocate heap buffer of size 0x1bf690
Creating ALG_vidDec (codec=0, width=704, height=576) for(352,288)
CMEM Error: allocHeap: ioctl CMEM_IOCALLOCHEAP failed: -1
 ERROR  (alg_vidDec.c|ALG_vidDecCreate|102): Failed to open video decode algorithm (h264dec)

 ASSERT (decode_tsk.c|DECODE_tskCreateAlg|67)

cat /proc/cmem:
Block 1: Pool 0: 1 bufs size 28672 (28672 requested)

Pool 0 busy bufs:
id 0: phys addr 0x1000 (noncached)

Pool -999922849 free bufs:

there is no CMEM error in normal case , and status of CMEM as below:
cat /proc/cmem:
Block 1: Pool 0: 1 bufs size 28672 (28672 requested)

Pool 0 busy bufs:
id 0: phys addr 0x1000 (noncached)

Pool -999892129 free bufs:


I tried going to change the size of CMEM heap_size in linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
but it show error message as below:

CMEMK Error: Failed to find a big enough free block
CMEMK Error: alloc_pool failed to get contiguous area of size 45154304
CMEMK Error: Failed to alloc heap of size 0x2b10000

Dose anyone know how to solve this problem , or give a program-solving orientation

Thanks a lot

PS: i use dvsdk_2_10_01_18