[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Rooted_Ansh:
[MENTION=4063475]derf elot[/MENTION] can you check in with the memory leaks caused by camera ?

I saw these in the logs....

640 640 E /system/bin/hw/android.hidl.allocator@1.0-service: Failed to get IAshmemDeviceService.

892 10439 I Adreno : RetainBuffer: GRALLOC1_FUNCTION_RETAIN failed
892 10439 E qdgralloc: Invalid gralloc handle (at 0xcb609c80): ver(12/12) ints(25/24) fds(2/2)
892 10439 E qdgralloc: Gralloc Error : device= 0xe9725780, buffer-handle=0xcb609c80
892 10439 I Adreno : PerformGetConsumerUsage: GRALLOC1_FUNCTION_GET_CONSUMER_USAGE failed with error 2
892 10439 E qdgralloc: Invalid gralloc handle (at 0xcb609c80): ver(12/12) ints(25/24) fds(2/2)
892 10439 E qdgralloc: Gralloc Error : device= 0xe9725780, buffer-handle=0xcb609c80

892 10439 I Adreno : PerformGetLayerCount: GRALLOC1_FUNCTION_GET_LAYER_COUNT failed with 2
892 10439 E qdgralloc: Invalid gralloc handle (at 0xcb609c80): ver(12/12) ints(25/24) fds(2/2)
892 10439 I Adreno : PerformGetRgbDataAddress: GRALLOC1_PFN_PERFORM GRALLOC_MODULE_PERFORM_GET_RGB_DATA_ADDRESS failed
892 10439 E qdgralloc: Invalid gralloc handle (at 0xcb609c80): ver(12/12) ints(25/24) fds(2/2)
892 10439 I Adreno : PerformGetUbwcFlag: GRALLOC1_PFN_PERFORM GRALLOC_MODULE_PERFORM_GET_UBWC_FLAG failed
892 10439 E qdgralloc: Invalid gralloc handle (at 0xcb609c80): ver(12/12) ints(25/24) fds(2/2)
892 10439 E qdgralloc: Gralloc Error : device= 0xe9725780, buffer-handle=0xcb609c80
892 10439 I Adreno : PerformGetLayerCount: GRALLOC1_FUNCTION_GET_LAYER_COUNT failed with 2

608 608 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@3.0::IMapper/default in either framework or device manifest.
1100 10574 W Gralloc3: mapper 3.x is not supported

892 10456 I cald : 116566097912 excal_buf_mgr.cpp (459) 10456 I [EXC] [COMP] [BufMgr 005] E AllocBufID:29,fmt=0x00020001,img_sz=1280x720,n=8,dataSpace=3
10385 10413 I CameraApp: [CameraDeviceHandler] Error caused by evicted:false deviceError:false otherError:false
892 10456 I cald : 116569485829 excal_buf_mgr.cpp (462) 10456 I [EXC] [COMP] [BufMgr 005] X AllocBufID:29, bufSize= 1.384 MB x 1(8)
892 10456 I cald : 116569548225 excal_buf_mgr.cpp (468) 10456 I [EXC] [COMP] [BufMgr 005] AllocBufID:29,fmt=0x00020001,img_sz=1280x720,n=8,buf_sz=1.32MB,uc=0x00000003,dataSpace=3
892 10456 I cald : 116569562027 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[0] = 0xd66c0a00
892 10456 I cald : 116569570568 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[1] = 0x0
892 10456 I cald : 116569578329 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[2] = 0x0
892 10456 I cald : 116569585933 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[3] = 0x0
892 10456 I cald : 116569592860 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[4] = 0x0
892 10456 I cald : 116569599318 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[5] = 0x0
892 10456 I cald : 116569606297 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[6] = 0x0
892 10456 I cald : 116569612704 excal_buf_mgr.cpp (470) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[7] = 0x0
892 10456 I cald : 116569642600 excal_buf_mgr.cpp (520) 10456 I [EXC] [COMP] [BufMgr 005] RegisterBufID:0,fmt=0x00020001,img_sz=1280x720,n=1,buf_sz=1.32MB,dataSpace=3
892 10456 I cald : 116569653016 excal_buf_mgr.cpp (522) 10456 I [EXC] [COMP] [BufMgr 005] Buffer[0] = 0xd66c0a00
892 10456 I cald : 116569667704 excal_req_ctrl.cpp (4731) 10456 I [EXC] [COMP] [ReqCtrl 025] start stream preview: base = 1280x720, preview = 1280x720
892 10436 I cald : 116569974162 cacao_process_ctrl.cpp (918) 10436 I [INF] CACAO [-->]setConfig configId=0 mClimax=1

It's these set of logs (errors and warning) that keep repeating.. And...

06-02 18:09:51.076 892 10515 E qdgralloc: Could not find handle: 0xe1e22280 id: 0
06-02 18:09:51.076 892 10515 E qdgralloc: Could not find handle: 0xe1e22280 id: 0
06-02 18:09:51.076 892 10515 I Adreno : ReleaseBuffer: GRALLOC1_FUNCTION_RELEASE failed

Above seem to the reason of leaked memory not being dumped.

Thanks in advance (it seems pretty critical :( )