ObjectCaptureView presents a memory leak

I have an app which shows a screen using ObjectCaptureView and each time that the view appears and disappears the memory increases around 400-500Mb.

After check the memory graph I found that I was related to the SwiftUI's view which is creating the ARKit view under the hood.

To be sure that the ObjectCaptureView was which has the memory leak I only commented in the view the line to create the ObjectCaptureView keeping the rest of the logic to handle the session state, feedback, etc.

Post not yet marked as solved Up vote post of asam139 Down vote post of asam139
404 views

Replies

same problem here. if later in code everywhere use [weak appModel] and never tap on "start again" ( at coaching overlay) - if will consume (after exit from that screen) approx 250mb. And it tap on "start again" - looks like ARKit view or caching overlay - makes strong ref. =(