OMXPlayer memory allocation failed.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OMXPlayer memory allocation failed.

2,269 Views
saurabh206
Senior Contributor III

Hi,

I am using jb4.2.2_1.1.0. Hardware IMX6q.

I want to decode HD (1280x720) H264, and file format is mkv.

I am getting following error while want to play that file using Gallery.

I/OMXPlayer( 4219): Link result: [OMX.Freescale.std.parser.fsl.sw-based:3:16384].

I/OMXPlayer( 4219): Link result: [OMX.Freescale.std.audio_decoder.aac.sw-based:3:16384].

I/OMXPlayer( 4219): Loading component audio_render.android ...

I/OMXPlayer( 4219): Link result: [OMX.Freescale.std.audio_decoder.aac.sw-based:3:49152].

I/OMXPlayer( 4219): Link result: [OMX.Freescale.std.audio_render.android.sw-based:3:49152].

I/OMXPlayer( 4219): Loading component video_decoder.avc ...

I/vpu-lib ( 4219): Product Info: i.MX6Q/D/S

I/OMXPlayer( 4219): Link result: [OMX.Freescale.std.parser.fsl.sw-based:5:1048576].

I/OMXPlayer( 4219): Link result: [OMX.Freescale.std.video_decoder.avc.v3.hw-based:5:1048576].

I/OMXPlayer( 4219): LEVEL: 1 FUNCTION: DoAllocateBuffer LINE: 1120

I/OMXPlayer( 4219): Allocate memory failed, size: 1048576

I/OMXPlayer( 4219): LEVEL: 1 FUNCTION: DoAllocateBuffer LINE: 1144

I/OMXPlayer( 4219): LEVEL: 1 FUNCTION: AllocateBuffer LINE: 368

I/OMXPlayer( 4219): Failed to allocate buffer resource for port #1

I/OMXPlayer( 4219): LEVEL: 1 FUNCTION: PortAllocateBuffers LINE: 1222

I/OMXPlayer( 4219): LEVEL: 1 FUNCTION: SysEventHandler LINE: 1566

I/OMXPlayer( 4219): OMX.Freescale.std.parser.fsl.sw-based allocate buffer for port 1 failed. buffer size 1048576 , index 0

I/OMXPlayer( 4219): OMX.Freescale.std.parser.fsl.sw-based report Error 80001000.

Any suggestions, Why this memory allocation fails.

0 Kudos
Reply
8 Replies

1,338 Views
saurabh206
Senior Contributor III

Hi,

Is there any update for this issue?

0 Kudos
Reply

1,338 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Employee

are you using the recommended kernel command line?

0 Kudos
Reply

1,338 Views
saurabh206
Senior Contributor III

Hi

Karina

I am not able to access the link.

I am using following kernel command line

console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M video=mxcfb0:dev=ldb,LDB-1080P50-rbt-w432,if=RGB24,bpp=32 ldb=spl0 fbmem=24M fb0base=0x27b00000 enable_wait_mode=off root=/dev/mmcblk0p1 init=/init androidboot.hardware=freescale ldo_active=off pmem=64M lvds=spwg

0 Kudos
Reply

1,338 Views
daiane_angolini
NXP Employee
NXP Employee

Ok. You should be using a custom board.

Was you able to reproduce the same issue using imx6qsabresd?

0 Kudos
Reply

1,338 Views
saurabh206
Senior Contributor III

Hi,

Daiane Angolini

Yes, I am using custom board.

I have prepared a simple application which is running in a for loop and doing memory allocation, This test is able to allocate memory.

I have verified that this is not memory fragmentation issue.

I will check this on SabareSD board.

Thanks

Saurabh

0 Kudos
Reply

1,338 Views
daiane_angolini
NXP Employee
NXP Employee

Thanks for your reply.

Please, let us know when you have been reproduced it on SabreSD board.

0 Kudos
Reply

1,338 Views
saurabh206
Senior Contributor III

Hi,

This issue is not reproduce in SabreSD board.

What could be the possible reason to failed on my case?

Thanks

Saurabh

0 Kudos
Reply

1,338 Views
karina_valencia
NXP Apps Support
NXP Apps Support

DaianeAngolini please continue with the follow up.

0 Kudos
Reply