Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Contributor
bezineb
Posts: 17
Registered: ‎01-08-2012
My Device: BlackBerry Playbook - developer

Bug when switching back to an Android OpenGL application

Hello,

 

I noticed an issue in my OpenGL application converted from android. The scenario is simple:

1. I start my OpenGL application

2. I switch to another application

3. I switch back to my application

 

Then it stops with the following error:

02-01 00:04:05.425: E/EglHelper(10330256): eglSwapBuffers returned EGL_BAD_NATIVE_WINDOW. tid=11

It's easy to reproduce: the same error happens with the simplest OpenGL example of the Android SDK ( http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/GLSurf... )

 

I checked, and the methods onSurfaceCreated, onSurfaceChanged, onDrawFrame are correctly called in that order when restoring the application but then it crashes.

 

I'm using BlackBerry OS 2.0.0.7111.

 

Any idea?

 

Thanks!

Please use plain text.
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: Bug when switching back to an Android OpenGL application

I don't have a solution, but you could check in the Issue Tracker whether there is a work-around, whether the problem has already been reported and - if not - create a new issue:

 

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Please use plain text.