Well I figured out what is was.  My fault, of course.  I messed up on
one of the texture re-inits and skipped it, causing the bind call to
bind to -1, which apparently crashes OpenGL well :)

The moral of the story - Don't bind to textureId -1.  :)

The other moral - debug more before assuming it may be a problem with
the platform and posting questions here.

On Sep 13, 12:24 am, CraigsRace <[email protected]> wrote:
> Not too sure about GLSurfaceView (I'm still using EGLContext.getEGL
> () ... ).
>
> However, I use the surfaceDestroyed and surfaceCreated methods to flag
> a cleanup or reload of the textures.  This works ok (Ie: If a phone
> call occurs during the game, the user can continue after the call),
> however, I have a noticed a lower FPS when it does reload the
> textures.
>
> On Sep 13, 2:28 pm, Robert Green <[email protected]> wrote:
>
> > On my G1 running standard 1.5.
>
> > I'm using an activity with the content view being a GLSurfaceView.
>
> > When the activity onPause is called, it calls onPause on the
> > glsurfaceview
> > When the activity onResume is called, it calls onResume on the
> > glsurfaceview
>
> > When the renderer's onSurfaceChanged is called, I set a flag to tell
> > it to load resources on the next frame draw.
> > When the next frame draw happens, it draws an ortho quad w/a "loading"
> > graphic on it, which always works correctly.  It then uploads textures
> > again, just like the first initialization.
>
> > I'm working off of the knowledge that any time onSurfaceChanged is
> > called, VRAM has been wiped and your texture IDs are invalid so you
> > must reload everything.  That's correct, no?
>
> > I thought maybe my VBOs were the problem but after disabling them, I
> > still had the same issue so it's something else.
>
> > I added some glGetError() calls anywhere I thought it might help, like
> > after loading a texture, but it's always GL_NO_ERROR.
>
> > Any ideas?
>
> > Here's my nasty stack trace:
>
> > I/DEBUG   (   32): *** *** *** *** *** *** *** *** *** *** *** *** ***
> > *** *** ***
> > I/DEBUG   (   32): Build fingerprint: 'tmobile/kila/dream/trout:1.5/
> > CRC1/150275:user/ota-rel-keys,release-keys'
> > I/DEBUG   (   32): pid: 605, tid: 617  >>> net.rbgrn.mytestglapp <<<
> > I/DEBUG   (   32): signal 7 (SIGBUS), fault addr 00000000
> > I/DEBUG   (   32):  r0 6a6a6a6a  r1 0021f450  r2 00000001  r3 00000000
> > I/DEBUG   (   32):  r4 454cbdc0  r5 00220450  r6 0021f450  r7 00000000
> > I/DEBUG   (   32):  r8 fffffffe  r9 ffffffff  10 00000001  fp deadbeef
> > I/DEBUG   (   32):  ip 00000000  sp 454cbd70  lr 80433bf8  pc
> > 804280b8  cpsr 20000010
> > I/DEBUG   (   32):          #00  pc 000280b8  /system/lib/libhgl.so
> > I/DEBUG   (   32):          #01  lr 80433bf8  /system/lib/libhgl.so
> > I/DEBUG   (   32): stack:
> > I/DEBUG   (   32):     454cbd30  002bc4a0  [heap]
> > I/DEBUG   (   32):     454cbd34  afe39dd0
> > I/DEBUG   (   32):     454cbd38  00239028  [heap]
> > I/DEBUG   (   32):     454cbd3c  00220c18  [heap]
> > I/DEBUG   (   32):     454cbd40  ffffffeb
> > I/DEBUG   (   32):     454cbd44  00000000
> > I/DEBUG   (   32):     454cbd48  00000000
> > I/DEBUG   (   32):     454cbd4c  80433bf8  /system/lib/libhgl.so
> > I/DEBUG   (   32):     454cbd50  00220c18  [heap]
> > I/DEBUG   (   32):     454cbd54  80433b4c  /system/lib/libhgl.so
> > I/DEBUG   (   32):     454cbd58  454cbdc0
> > I/DEBUG   (   32):     454cbd5c  00220450  [heap]
> > I/DEBUG   (   32):     454cbd60  0021f450  [heap]
> > I/DEBUG   (   32):     454cbd64  00000000
> > I/DEBUG   (   32):     454cbd68  df002777
> > I/DEBUG   (   32):     454cbd6c  e3a070ad
> > I/DEBUG   (   32): #00 454cbd70  454cbdc0
> > I/DEBUG   (   32):     454cbd74  00000000
> > I/DEBUG   (   32):     454cbd78  ad31af9c  /system/lib/
> > libandroid_runtime.so
> > I/DEBUG   (   32):     454cbd7c  4104beb0
> > I/DEBUG   (   32):     454cbd80  454cbda0
> > I/DEBUG   (   32):     454cbd84  4104bea8
> > I/DEBUG   (   32):     454cbd88  4104be94
> > I/DEBUG   (   32):     454cbd8c  00000001
> > I/DEBUG   (   32):     454cbd90  ac708c9c
> > I/DEBUG   (   32):     454cbd94  804527c0  /system/lib/libhgl.so
> > I/DEBUG   (   32):     454cbd98  454cbdc0
> > I/DEBUG   (   32):     454cbd9c  ad00e3b8  /system/lib/libdvm.so
> > I/DEBUG   (   32):     454cbda0  4109bc20
> > I/DEBUG   (   32):     454cbda4  002014f0  [heap]
> > I/DEBUG   (   32):     454cbda8  ad31af9c  /system/lib/
> > libandroid_runtime.so
> > I/DEBUG   (   32):     454cbdac  00000000
> > I/DEBUG   (   32):     454cbdb0  00003072
> > I/DEBUG   (   32):     454cbdb4  002014f0  [heap]
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to