Closed alouanemed closed 4 years ago
hi @alouanemed , can you provide a sample project to reproduce the issue ?
OKay, let me create one.
@alouanemed any progress ?
@wddwycc I tried to reproduce the issue but couldn't. Most leaks are related to RxSwift (including RxTheme). I created this repo https://github.com/alouanemed/leakTest that resembles my project but haven't yet able to reproduce. let me give another try.
I would close this one since it's not reproducable.
When profiling the app with instruments' Leaks, it shows that rxtheme leaked somewhere. I couldn't find the place exact, so I went and started generating memory graph using Xcode, and it shows this leak:
instrument output
checking some of those issues revealed that are linked to RxTheme. like this one below: taken from a Button class:
As I am navigating through the other screens, the number pop's up to 100 Swift closure context leaked. Anyway to solve this? Thanks.