ROKT / rokt-sdk-ios

The Rokt iOS SDK enables you to integrate Rokt into your native iOS mobile apps to drive more value from—and for—your customers.
Other
4 stars 0 forks source link

Possible Memory Leak in RoktHTTPClient.init(sessionConfiguration:encoders) #45

Open RGG-jayoung opened 2 months ago

RGG-jayoung commented 2 months ago

We've been profiling our app for memory leaks and see this issue pretty consistently:

This occurs when we call the Rokt SDK set up code from the default documentation.

image

We are seeing this in all versions of the SDK between 4.3.0 and 4.4.0.

Steps to reproduce:

  1. Follow the Rokt documentation to set up your SDK.
  2. Profile your app using Instruments, choosing the Leaks template
  3. Run your app through its standard startup process, you don't need show Rokt UI, just to call the SDK set up methods.
  4. Filter the memory leaks by the word session. A few may appear.
image
jamesnrokt commented 1 week ago

Hey @RGG-jayoung!

Thanks for reaching out and providing info on this potential memory leak and giving reproduce steps, really appreciate it.

One of our iOS engineers triaged this by profiling the SDK directly, but unfortunately they were unable to reproduce.

Wondering if you can provide a little more information / confirm the assumptions below: