OpenVG 0.5.0 MQX: eglDestroySurface, eglDestroyContext issue

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

OpenVG 0.5.0 MQX: eglDestroySurface, eglDestroyContext issue

Jump to solution
1,748 Views
ioseph_martinez
NXP Employee
NXP Employee

Hi Wayne Feng

 

We are trying to review how to destroy surfaces (and context) in OpenVG-MQX Vybrid and having some issues to get it working. I reproduced the issues on my side so not really sure if we are not following the procedure appropiately or there is some bug in the egl layer.

 

This are the test I have done:

  1. Tiger, fbws (added code to destroy all paths)
    • create contex, create window sureface, make current/ make current (no context), destroy surface, destroy context
    • fails after a single iteration with:

      gcmERR_BREAK: status=-2(gcvSTATUS_INVALID_OBJECT) @ veglSetContext(585)

      gErrorExit at ../../ovgmain.c:100:EGL_ERR_CHK

  2. Tiger, no fbws (added code to destroy all paths)
    • create contex, create pbuffer surface, make current/ destroy surface, destroy context
    • after two iterations fails, of course there is a message before the failure:
    • _DereferenceObjectCache (184): object cache 4 still has objects in it.

      _DereferenceObjectCache (184): object cache 4 still has objects in it.

  3. Tiger, no fbws (added code to destroy all paths)

 

    • create context
    • create p buffer surface/ destroy pbuffer surface
    • after three itearions with BUS error on a abort handler.

      EventHandler_BusError(1223): **** BUS ERROR ENCOUNTERED ****

 

I have attached the code which I am using for to reproduce the failure.

Do you have some ideas?

 

Thanks,

Ioseph

 

Manoj E.S.

Original Attachment has been moved to: src_fail2-3.zip

Original Attachment has been moved to: src_fail1.zip

Labels (1)
Tags (4)
0 Kudos
1 Solution
1,001 Views
ioseph_martinez
NXP Employee
NXP Employee

Thanks Feng Wei for checking this.

Hi manoje.s. and vijayasarathyt the problem on the no fbws version will be solved for the 0.6.0 release of OpenVG which tentative release is the end of this month.

View solution in original post

0 Kudos
4 Replies
1,001 Views
fengwei
NXP Employee
NXP Employee

Hi Ioseph,

I had found same issues you mentioned, and fixed them in our git tree. Please see attachments for the patch.

Issue 1: There's a bug in eglMakeCurrent with argument EGL_NO_CONTEXT.

Issue 2: There's some memory leakage in the library, and that was detected by memory management.

Issue 3: There's a bug in gcoOS_DestroySignal, lwevent was not properly destroyed.

Please tell me if that patch works.

Regards,

Feng Wei

1,001 Views
ioseph_martinez
NXP Employee
NXP Employee

Hello Feng Wei,

Thanks for checking this. I am still seeing problems with non FBWS use cases...

To test this I did a clean install of openvg 0.5.0 src and applied the following patches you provided from before:

0001-Destroy-context-issues

0001-Disable-FBWS-to-be-compatible-with-0.4.0

not sure if I am missing some patches?

Issue 1:

  • Seems resolved,
  • I will let it run all night, let you know the results
  • I get messages some times after creating/destroying, although everything seems to be running fine:
    • _EventHandler_TSOverflow(1204): **** TS OVERFLOW ENCOUNTERED ****

      _EventHandler_TSOverflow(1204): **** TS OVERFLOW ENCOUNTERED ****

      _EventHandler_TSOverflow(1204): **** TS OVERFLOW ENCOUNTERED ****

Issue 2: The tiger rotates for about two create destroy cylces and then fails, the following message appears:

    • EventHandler_BusError(1223): **** BUS ERROR ENCOUNTERED ****

Issue 2: The tiger rotates for about two create destroy cylces and then fails, the following message appears:

    • EventHandler_BusError(1223): **** BUS ERROR ENCOUNTERED ****

Thanks,

Ioseph

0 Kudos
1,001 Views
fengwei
NXP Employee
NXP Employee

I also found "TS OVERFLOW ENCOUNTERED", which had no impact on the result. I asked vivante for that but no response yet.

I didn't find "BUS ERROR ENCOUNTERED" issue, and will try it with clean environment.

0 Kudos
1,002 Views
ioseph_martinez
NXP Employee
NXP Employee

Thanks Feng Wei for checking this.

Hi manoje.s. and vijayasarathyt the problem on the no fbws version will be solved for the 0.6.0 release of OpenVG which tentative release is the end of this month.

0 Kudos