IOSurface gradually increases memory in iOS 12 and above
Asked Answered
P

1

12

I am facing memory issue in my app for iOS 12 and above versions. IOSurface gradually increases simultaneously in iOS 12.1.1 where as it works fine in iOS 11 versions. I have attached the issue screenshot below,

enter image description here

Why this issue happens in iOS 12 versions? Can someone help me how to solve this? I cross checked in iOS 11 versions and it works fine.

Polity answered 3/1, 2019 at 12:44 Comment(0)
C
0

Do you use camera ?

It may depends on camera.

enter image description here Size of IOSurface bock: 8372224 bytes = 1960*1080*4

Compendious answered 28/1, 2019 at 19:21 Comment(3)
Yes am using that. But for me it shows on CoreUI components(_csiCompressImageProviderCopyIOSurfaceWithOptions). Did you know any solution for this please let us know. Thanks.Polity
I found the issue, UIImage(imageNamed:"bgImg") is the cause of IOSurface increase. So I tried alternate way by using Image(data:"data") and it works stable.Polity
@Polity Do you mean to say UIImage(data:)?Wingding

© 2022 - 2024 — McMap. All rights reserved.