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:
gcmERR_BREAK: status=-2(gcvSTATUS_INVALID_OBJECT) @ veglSetContext(585)
gErrorExit at ../../ovgmain.c:100:EGL_ERR_CHK
_DereferenceObjectCache (184): object cache 4 still has objects in it.
_DereferenceObjectCache (184): object cache 4 still has objects in it.
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
Original Attachment has been moved to: src_fail2-3.zip
Original Attachment has been moved to: src_fail1.zip
Solved! Go to Solution.
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.
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
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:
_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
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.
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.