cruisediary / Pastel

🎨 Gradient animation effect like Instagram
MIT License
3.5k stars 185 forks source link

Question: memory seems to be leaked #24

Open creaaa opened 7 years ago

creaaa commented 7 years ago

Dear Community,

Hello, I'm Masa. Pardon my stupid question. I was trying Pastel with Memory Graph Debug, and it seemed to cause memory leak. I also confirmed Passcode which used Pastel, and I confirmed same phenomenon. (It seems to cause when initializing colors property and inside PastelView#currentGradientSet() method.)

I've been searching and thinking the reason and solution, but I've not found a solution yet... (I found some articles which say objects included "core" framework originally aren't be located under ARC, so I suspect this relates to memory leak but I've not found a perfect solution.)

So, Can I use Pastel ignoring this phenomenon? Is that not a big problem?

I'm sorry to bother you.

Thanks, Masa

2017-08-19 10 38 42 2017-08-19 10 37 52

thereal1 commented 7 years ago

I seem to have the same issue.

paulocoutinhox commented 7 years ago

This was solved? I want use in our project :(

czater commented 7 years ago

Any news?

laferil commented 7 years ago

Running into the same problem. Was debugging my app due to +100% CPU after transitioning away from a view controller with a PastelView. Tried removing, stopping, and weak referencing through an IBOutlet as well.

sxcore commented 6 years ago

Maybe it's a long not-touched thread, but I will try to fix it in one of the upcoming maintenance fixes.