Open xzeroplus opened 2 years ago
@xzeroplus
I cloned your repo but don't see xcworkspace
file in ios
folder which we'll need to for automatic signing.
Also does this happen in debug mode or in release mode ? Can you also provide steps to replicate this behavior ?
@xzeroplus I cloned your repo but don't see
xcworkspace
file inios
folder which we'll need to for automatic signing. Also does this happen in debug mode or in release mode ? Can you also provide steps to replicate this behavior ?
flutter pub get
pod update
xcworkspace
will auto generate when you finish run pod update
@darshankawar This happen both in debug mode and release mode. steps: 1.run my demo 2.click the Increment button in the main page, it will push in a page which has an UIKitView. There is also a Increment button in the new page. Click the Increment button repeatly. (This step will create a lots of UIKitViews.) 3.pop all page.(This step will dispose all the UIKitViews.)
Memory Increment when created UIKitView. But it isnot descend when UIKitViews is disposed. Analyse by instruments ,I found lots of IOSurfaces didnot dealloc.
Thanks for the update. Using the code sample provided and running it in debug as well as in release mode on iOS device shows that the memory allocation still remains intact after disposing UIkitView:
Any update on this issue? How to fix it? @darshankawar
cc @jmagman
Details
I found create UIKitView, when UIKitViews is disposed, IOSurface didnot dealloc, they use lagre memory.
Here is the instruments shapshot with my Demo: I push a lot of page which has an UIKitView, then pop all of them. All UIKitViews is disposed. Even not UIKitView exist, I found the IOSExternalViewEmbedder create many IOSurface, and they not dealloc.
Here is my demo: https://github.com/xzeroplus/UIKitView_Demo
Logs