AnsweredAssumed Answered

OpenVG 0.5.0 MQX: eglDestroySurface, eglDestroyContext issue

Question asked by Ioseph Martinez Pelayo Employee on Jul 1, 2013
Latest reply on Jul 12, 2013 by Ioseph Martinez Pelayo

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

Outcomes