NativoPlatform / NativoSDK-iOS-SampleApps

NativoSDK iOS Sample Apps
0 stars 3 forks source link

Numerous memory leaks and 250MiB allocation to NativoSDK #4

Open p-canniff opened 1 week ago

p-canniff commented 1 week ago
Screenshot 2024-09-03 at 8 58 35 AM Screenshot 2024-09-03 at 8 58 49 AM

While working with the new 7.2.0 SDK (previously on 6.0) I noticed a large allocation spike on load of the NativoSDK. While at first I thought it may be a symptom of our implementation, it is now clear this is happening in your KMP rewrite.

I have provided above screenshots from the Leaks profiler in Xcode of your TableView Swift SampleApp where the leak can also be observed without any other dependencies.

I can only provide a hunch, but I would use care in how the sharedInstance of the SDK is being handled around coroutines and review memory diffs as your proceed with 7.2.1.

Thanks

MattMur commented 1 week ago

Thanks for reporting this. Can you describe the steps within the app you took to arrive at this leak? What did you click, how far down did you scroll, etc.

p-canniff commented 1 week ago

I simply turned it on and ran it on a real device.

iPad Pro on iPad OS 16.6 iPhone 11 Pro on iOS 17.5.1

The images above are directly from the Nativo Sample App, CMD+i to open instruments, select leaks, and begin.