i.MX6q eglCreateWindowSurface returns EGL_BAD_ALLOC

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

i.MX6q eglCreateWindowSurface returns EGL_BAD_ALLOC

2,234 Views
ikshwaku_chauha
Contributor III

Hi Team,

 

This is regarding our project TOYOTA_MEUCY17 based on i.MX6 Quad and based on L3.10.17_1.0.2 release. This project uses X11.

In one of our use case browser application is crashing when Coyote app is running and it crashes only when eglCreateWindowSurface returns EGL_BAD_ALLOC. This is sometime issue and not reproducible each time. Looking at the callstack from coredump file it points towards the GPU driver. Please check the attached complete call stack and snapshot from it below.

In logs we are observing following logs:

meucy17-t101-a0 [ 3] ERR_BREAK: status=-1(gcvSTATUS_INVALID_ARGUMENT) @ _CreateSurfaceObjects(584)
meucy17-t101-a0 [0411/063012:ERROR:gl_surface_egl.cc(410)] eglCreateWindowSurface failed with error EGL_BAD_ALLOC
meucy17-t101-a0 [0411/063012:ERROR:command_buffer_proxy_impl.cc(155)] Failed to initialize command buffer service.
meucy17-t101-a0 [0411/063012:ERROR:webgraphicscontext3d_command_buffer_impl.cc(213)] CommandBufferProxy::Initialize failed.
meucy17-t101-a0 [0411/063012:ERROR:webgraphicscontext3d_command_buffer_impl.cc(230)] Failed to initialize command buffer

Could you please help us in resolving this issue.

Regards,

Ikshwaku

Labels (3)
0 Kudos
10 Replies

1,704 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 L3.10.17_1.0.2 release is very old bsp,  using gpu 4.x.  Gpu is 6.x now. Our team no longer support it.  The support request should go to NXP professional software service.

Professional Support for Processors and Microcontrollers | NXP 

Regards

0 Kudos

1,704 Views
kunalkotecha1
Senior Contributor II

Hi ikshwaku.chauhan,

Are you using Linux system based on Yocto BSP L3.10.17_1.0.2? If yes, can you let us know how did you integrated coyote application in Yocto?

Regards,

Kunal

0 Kudos

1,704 Views
ikshwaku_chauha
Contributor III

Hello Kunal, 

Any update for this..??

Regards,

Ikshwaku

0 Kudos

1,704 Views
ikshwaku_chauha
Contributor III

Hello Kunal, 

Yes we are using Yocto BSP L3.10.17_1.0.2 and coyote app is a HTML based java script that uses Chromium Browser provided apis. And browser internally calling all X11 and graphics specific calls.

So, here coyote app is just a script.

Regards,

Ikshwaku

0 Kudos

1,704 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Ikshwaku,

Set default bpp to 16, Similar issue was solved at:

EGL eglCreateWindowSurface issue 3.14.28

 You have to update your bsp a lot of bugs are fixed in latest release L4.14.88 .

0 Kudos

1,704 Views
ikshwaku_chauha
Contributor III

Hello Bio, 

In our system default_bbp is set to 16 only.

And at this stage it not possible for us to update to latest release.

Regards,

Ikshwaku

0 Kudos

1,704 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

eglCreateWindowSurface returns EGL_BAD_ALLOC in following condition:

 If there is already an EGLSurface associated with native_window

Or

implementation cannot allocate resources for the new EGL window

 

We explored about this error and found that this seems to be application specific issue.

This error occurs when the application try to create eglWindowSurface but the previous window has not been destroyed yet. In application side we can keep error check that will verify if previous eglWindowSurface has been destroyed and only after that call to eglCreateWindowSurface is execute.

 

Let us know in case the issue persist even after changing the application

Regards

0 Kudos

1,704 Views
ikshwaku_chauha
Contributor III

Hello Team,

 

Any Update for this issue..???

 

Regards,

Ikshwaku

0 Kudos

1,704 Views
ikshwaku_chauha
Contributor III

Hello, 

We have checked in our application and all eglCreateWindowSurface and eglDestroySurface are in sync.. 

Could you please help us in further debug this issue?

Regards,

Ikshwaku

0 Kudos

1,704 Views
ikshwaku_chauha
Contributor III

Hello Team,

Any Update for this issue..???

Regards,

Ikshwaku

0 Kudos