Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble with Native OpenGL Renderer

I am using Native code to render OpenGL in Android and I get periodic errors that look like this:

ERROR/IMGSRV(1435): frameresource.c:610: WaitUntilResourceIsNotNeeded: PVRSRVEventObjectWait failed

ERROR/IMGSRV(1018): sgxif.c:124: WaitForRender: PVRSRVEventObjectWait failed

ERROR/IMGSRV(1435): osfunc_um.c:318: PVRSRVEventObjectWait: Error 13 returned

Once these errors come up I have to restart the phone or the rendering won't start again correctly. I have done a lot of web searching and I can't find out what could be the cause of these errors. Does anyone else have any suggestions?

like image 724
CaseyB Avatar asked Jan 11 '10 16:01

CaseyB


1 Answers

Well, it is hard to tell without looking at your code, it can either be a driver issue, or something wrong in your code.

Try the following:

  • Make sure that your GL calls are on the same thread.
  • Try commenting out all your rendering code and start adding lines back, till you see the problem appears again.
  • Check for memory leaks
like image 147
Oren Bengigi Avatar answered Nov 08 '22 11:11

Oren Bengigi