YPImagePicker icon indicating copy to clipboard operation
YPImagePicker copied to clipboard

Memory still increasing if cancelling the picker

Open calaforrai opened this issue 3 years ago • 8 comments

When I open the picker, I choose a photo, on the filter screen I don't use any filter and I click on the back button, I click on the cancel button to close the picker, each new opening of the picker the memory increases by 30mb

Any Help please ?

Environment :

  • Device: Iphone 11
  • OS: IOS 13.3
  • Xcode Version 12.0
  • Swift Version 5.0 - Project in ObjC

Installation Type

  • Cocoapods :
  • pod 'YPImagePicker', '~> 5.2'

calaforrai avatar Mar 04 '22 10:03 calaforrai

Is this project still maintained ? can someone give me some help ? thank @NikKovIos

calaforrai avatar Mar 08 '22 08:03 calaforrai

Hello @calaforrai ! I can't reproduce this behavior with the leak using the default example project YPImagePickerExample. Please, explore it and I hope it would help you understand what creates the leak in you case. Tip: To make it work on Xcode 13 you have add the dependencies using SPM.

heitara avatar Apr 01 '22 10:04 heitara

@heitara Thank for your answer but the example project seems to not work on xcode 12 I'm getting this errors

Type 'ExampleViewController' does not conform to protocol 'YPImagePickerDelegate'

Cannot infer contextual base in reference to member 'ypSystemBackground'

calaforrai avatar Apr 01 '22 17:04 calaforrai

Which branch are you using? Master?

I can try tomorrow with a completely new checkout and I'll let you know what I see.

heitara avatar Apr 01 '22 18:04 heitara

Yes I try with the master

calaforrai avatar Apr 01 '22 19:04 calaforrai

Right now I've tried the last commit in master branch and it build well. Xcode 13.2.1 (13C100)

NikKovIos avatar Apr 01 '22 23:04 NikKovIos

Ok but the example project seems to not work with xcode 12, I can't update my macbook (Catalina max) so I can't install xcode 13 too, the master branch can be compatible with xcode 12 ?

calaforrai avatar Apr 02 '22 08:04 calaforrai

I don't know. Try to fix this error and make a PR.

NikKovIos avatar Apr 02 '22 08:04 NikKovIos