ca-archived / iOS-NBUImagePicker

Modular image picker with Simulator-compatible AVFondation camera, assets library, filters and more.
http://cyberagent.github.io/iOS-NBUImagePicker
Apache License 2.0
193 stars 48 forks source link

memory not release #12

Closed jobpassion closed 9 years ago

jobpassion commented 9 years ago

before open picker, the app use memory 30m then open the picker, select one image,then the view push to the filter view memory use increase to 110m then click cancel button on the left navigation to dismiss controller view memory use 100m

the 70m(100m - 30m) memory use will never release. did some one also had this problem?

rivera-ernesto commented 9 years ago

Could you try launching the picker more than once to see if it just keeps growing. Ideally profiling with Instruments.

During the first launch is normal that some internal SDK caching/initialization takes place, thus consuming more memory. This may get released later or on low memory conditions automatically.

As for memory leaks or circular retentions, I think I have checked many times in the past.

jobpassion commented 9 years ago

I tried launching the picker more than once, it didn't keep growing. Because of I'm new to iOS developing, I may try profiling with Instruments as soon as possible. I'll try to see that if memory get released later.If I find some useful, I'll contract you.

Thanks for your replying. The ImagePicker is wonderful ! Thanks for your effort for that.

2015-01-22 9:21 GMT+08:00 Ernesto Rivera notifications@github.com:

Could you try launching the picker more than once to see if it just keeps growing. Ideally profiling with Instruments.

During the first launch is normal that some internal SDK caching/initialization takes place, thus consuming more memory. This may get released later or on low memory conditions automatically.

As for memory leaks or circular retentions, I think I have checked many times in the past.

— Reply to this email directly or view it on GitHub https://github.com/CyberAgent/iOS-NBUImagePicker/issues/12#issuecomment-70955579 .

jobpassion commented 9 years ago

image

as the screenshot above, is the profiling with Instruments. may be as you said, internal SDK caching/initialization took the place

rivera-ernesto commented 9 years ago

What I usually try is to: