hi, this is my forst post. If i'm doing anything wrong please correct me. Issue: in cameraservice handlepreview for a specific feature we need to unregister and register buffers(ISurface::BufferHeap) for preview LayerBuffer.
i am trying to unregister the buffers for a copule of milliseconds(30) and re-register the same buffers(heap).I have added few logs for debugging. step 1: cameraservice registerbuffers for first time process 85:mediaserver. E/CameraService(85): --------------- CameraService::Client::registerPreviewBuffers before msurface- >registerbuffers heap id =41 base =0x41547000 size =3702784 and from systemserver process(951) E/IMemory ( 951): -----------mmap with base(0x498a5000) size(3702784) and fd(213) and acess(1) . step 2: camera service unregister buffers for first time:(donot delete/ destroy pmem from mediaserver process E/CameraService( 85): ------------ CameraService::Client::handlePreviewData unregisterBuffers E/IMemory ( 951): -----------m-unmap with base(0x498a5000) size(3702784) and fd(213) step3: register preview buffers again E/CameraService(85): --------------- CameraService::Client::registerPreviewBuffers before msurface- >registerbuffers heap id =41 base =0x41547000 size =3702784 E/IMemory ( 951): cannot map BpMemoryHeap (binder=0x308b78), size=3702784, fd=206 (Invalid argument). I've verified size and offset are proper. I'm not sure of the restriction of pmem mapping accross processes. I have verified /proc/pid/fd from mediaserver fd looks fine. from systemserver process i could see fd(213) which is unmapped still exists. is it expected behaviour?? and when we mmap second time it's getting new fd(206)...is it an error?. Please ask me if more information is required. -- 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