Hello,

I'm testing a few ideas of mine using the nexus wallpaper source code as 
base.

In my test, I need to handle several textures. In order to do that i have a 
structure like this in rs.

*rs_allocation gTextures[13];*

Plus also some rs_allocation references inside structures like the 
following.

*ball->tex = gTextures[rsRand(13)];*

in Java I have:

*Allocation[] textures = new Allocation[13];
textures [0] = loadTextureARGB(R.drawable.tex0);
textures [1] = loadTextureARGB(R.drawable.tex1);
...
...
textures [12] = loadTextureARGB(R.drawable.tex2);        
mScript.set_gTextures(textures);*


What happens in run time is really weird.. sometimes I get the following 
error and the program crashes.
*
02-11 17:47:27.303: E/SurfaceTextureClient(27453): queueBuffer: error 
queuing buffer to SurfaceTexture, -19*

Eventually it works fine, but it always crash when closing the app with the 
following.
*02-11 17:47:27.854: E/RenderScript(27453): rsAssert failed: mSysRefCount > 
0, in frameworks/base/libs/rs/rsObjectBase.cpp at 139*

It seems to be related with the texture dealocation. This is driving me 
nuts, tried about everything, and nothing solves the problem. Am I doing 
something wrong?

Thanks for the help.



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to