Has anyone found or posted any information on this problem ? I'm having the same problem. I can't see that I'm doing anything different then the examples which do not have assertion or crash. I found too that, in at least one example, the assertion doesn't occur when the allocation is part of a structure on the renderscript side, and thus in a FieldBase generated class on the Java side.
On Saturday, February 11, 2012 3:02:20 PM UTC-5, Frustaci wrote: > > 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 [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

