Closed juliensagot closed 7 months ago
Hi @juliensagot, this most likely will be fixed when this PR of swift-perception is merged.
Could you help us verify this by adding an explicit dependency on swift-perception to your project and pinning it to the explicit-animation
branch?
@mbrandonw Done! Unfortunately, I'm experiencing the same leaks:
Hi @juliensagot, how exactly can I reproduce the problem? I've run the app, increment the counter, and I don't see any leaks:
Also, are you sure you are running the leaks instrument in DEBUG
? Because the object that is showing up in your screenshot, LockIsolated
, is only used in DEBUG
mode:
Oh no, you are right, I was somehow profiling the app in debug modeβ¦
There are indeed no leaks! I'll close the issue, sorry π
Description
Hi folks π It appears that the
observe
method is leaking, even whenself
is properly weakified inside the trailing closure, unless I'm doing some silly things.I've attached a sample macOS project where you can easily repro the issue: TCAPerceptionLeakSampleProject.zip
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Steps to reproduce
Increment
buttonThe Composable Architecture version information
1.9.2
Destination operating system
14.4 (23E214)
Xcode version information
Version 15.3 (15E204a)
Swift Compiler version information