我的页面中有一个RecyclerView,并且填充了TextureViews:
Activity page capture in my demo 我使用eglCreateWindowSurface()为每个TextureViews(SurfaceTexture)创建EGLSurface,并使用eglDestroySurface()来销毁它们 活动不可见(已停止)。
当我发起这样的几个活动时,我得到如下例外:
E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E BufferQueueProducer: [SurfaceTexture-0-9639-1066] dequeueBuffer: createGraphicBuffer failed
....
E Surface : dequeueBuffer: error duping fence: 24
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
E Parcel : dup() failed in Parcel::read, i is 1, fds[i] is -1, fd_count is 2, error: Too many open files
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
E Parcel : dup() failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646
E GLConsumer: [SurfaceTexture-0-9639-1084] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1085] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1086] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1087] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1088] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1089] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1090] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
E GLConsumer: [SurfaceTexture-0-9639-1091] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
E OpenGLRenderer: Failed to detach SurfaceTexture from context -2147483648
有没有人有解决这个问题的建议?
感谢。