I tried removing that line but I get the same crash...
I get this problem both on my Galaxy Nexus and on my tablet (with 4.0.3).
The tablet throws this error to LogCat constantly (although it seems to be working exactly the same as the nexus):
01-21 17:29:29.409: E/SurfaceTexture(2074): [unnamed-2074-3] dequeueBuffer: no available buffer slots
I get this problem both on my Galaxy Nexus and on my tablet (with 4.0.3).
The tablet throws this error to LogCat constantly (although it seems to be working exactly the same as the nexus):
01-21 17:29:29.409: E/SurfaceTexture(2074): [unnamed-2074-3] dequeueBuffer: no available buffer slots