fishlab / angle

Automatically exported from code.google.com/p/angle
0 stars 0 forks source link

Exiting demo causes java.lang.IllegalArgumentException #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start any demo
2. Press back to return to the menu
3. Problem occurs

E/AndroidRuntime( 9071): FATAL EXCEPTION: RenderThread
E/AndroidRuntime( 9071): java.lang.IllegalArgumentException: Make sure the 
SurfaceView or associated SurfaceHolder has a valid Surface
E/AndroidRuntime( 9071):    at 
com.google.android.gles_jni.EGLImpl._eglCreateWindowSurface(Native Method)
E/AndroidRuntime( 9071):    at 
com.google.android.gles_jni.EGLImpl.eglCreateWindowSurface(EGLImpl.java:87)
E/AndroidRuntime( 9071):    at 
com.android.angle.EglHelper.createSurface(EGLHelper.java:89)
E/AndroidRuntime( 9071):    at 
com.android.angle.RenderThread.guardedRun(RenderThread.java:149)
E/AndroidRuntime( 9071):    at 
com.android.angle.RenderThread.run(RenderThread.java:53)
W/ActivityManager(  106):   Force finishing activity 
com.android.tutorial/.AngleTutorials

This is running on a HTC Hero with Android 2.2.

Original issue reported on code.google.com by gpear...@gmail.com on 1 Sep 2010 at 7:23

GoogleCodeExporter commented 9 years ago
Yes. I noticed there are some noticeable changes on Froyo's GLES1.

I'm working on this issue.

Original comment by ipaju...@gmail.com on 6 Sep 2010 at 2:08

GoogleCodeExporter commented 9 years ago
Cool, nice one.

Original comment by mark%mub...@gtempaccount.com on 6 Sep 2010 at 2:21

GoogleCodeExporter commented 9 years ago
This issue is caused by a bug on Android previous versions.
I fixed this bug on application exit but this fix is not compatible with Froyo.

Already fixed.

Original comment by ipaju...@gmail.com on 19 Sep 2010 at 9:18

GoogleCodeExporter commented 9 years ago
Does that mean that this bug is still present when using Angle with Froyo?

Original comment by gpear...@gmail.com on 19 Sep 2010 at 11:46

GoogleCodeExporter commented 9 years ago
No. I already fixed it.
Use te SVN version.
It was caused because on previous Android versions I must create a new EGL 
context before close.
Now with froyo is not necessary.
I hope my new fix works with all versions.

Original comment by ipaju...@gmail.com on 19 Sep 2010 at 10:54

GoogleCodeExporter commented 9 years ago
Indeed it is fixed.

Thanks for all your hard work on Angle!

Original comment by gpear...@gmail.com on 20 Sep 2010 at 4:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also met this issue,it can work with api 7 but not api 8 and above.
If you fixed it,How can I get the right version?

Original comment by hongchan...@gmail.com on 17 Mar 2012 at 12:38